/**
 * EXFM header component.
 *
 * The selector order is intentional: the initial component rules establish
 * the shape, while later home-page and breakpoint blocks override legacy
 * theme/plugin rules without changing the PHP markup or menu hooks.
 */
@layer fm.components {
  /* Component baseline. */
  .fm-header {
    position: relative;
    z-index: 30;
  }
}

.fm-header.desktop-header {
  display: block;
  width: 100%;
  background: rgba(6, 9, 14, 0.72);
}

.fm-header__inner {
  min-height: var(--fm-header-height);
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.75rem);
}

.fm-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--fm-text);
  text-decoration: none;
}

.fm-header__brand img {
  display: block;
  width: 75px;
  max-width: none;
  height: auto;
}

.fm-header__nav {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.fm-header__menu,
.fm-header__menu ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-header__menu > li {
  position: relative;
}

.fm-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -0.75rem;
  z-index: 40;
  display: none;
  min-width: 12rem;
  padding: 0.75rem;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-md);
  background: #10151e;
}

.fm-header__menu > li:hover > .sub-menu,
.fm-header__menu > li:focus-within > .sub-menu {
  display: grid;
  gap: 0.5rem;
}

.fm-header__menu .sub-menu a {
  white-space: nowrap;
}

.fm-header__menu a {
  color: rgba(247, 248, 251, 0.82);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease;
}

.fm-header__menu a:hover,
.fm-header__menu a:focus-visible {
  color: var(--fm-text);
}

.fm-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.fm-header__locale {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--fm-radius-control);
  background: rgba(31, 36, 47, 0.72);
}

.fm-header__locale .langlist_div,
.fm-header__locale .langlist_ul {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fm-header__locale .langlist_title {
  display: none;
}

.fm-header__locale .langlist_li {
  color: var(--fm-text-muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.fm-header__locale .langlist_li:hover,
.fm-header__locale .langlist_li:focus-visible {
  color: var(--fm-text);
}

.fm-header__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--fm-radius-control);
  font-size: 0.75rem;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.fm-header__button--secondary {
  background: var(--fm-alpha-neutral-13);
  color: var(--fm-text);
}

.fm-header__button--primary {
  background: var(--fm-purple);
  color: var(--fm-neutral-0);
}

.fm-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(31, 36, 47, 0.86);
  cursor: pointer;
}

.fm-header__toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--fm-neutral-0);
}

@media (max-width: 980px) {
  .fm-header__inner {
    gap: 1.25rem;
  }

  .fm-header__menu {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .fm-header.desktop-header {
    display: none;
  }
}
/* Responsive menu behavior: keep the existing menu button and drawer hooks. */
@media (max-width: 767px) {
  .mobile-header {
    display: block;
    background: transparent;
  }

  .mobile-header .user-bar,
  .mobile-header .header__contacts,
  .mobile-header .lang_auth_wrapper,
  .mobile-header .header__dark-mode {
    display: none !important;
  }

  .mobile-header .navigation {
    display: block;
    min-height: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
  }

  .mobile-header .navigation__container {
    display: flex;
    width: 100%;
    max-width: none;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
  }

  .mobile-header .logo_operator_wrapper {
    display: flex;
    min-width: 0;
    align-items: center;
  }

  .mobile-header .header__logo {
    display: inline-flex;
    width: auto;
    max-width: none;
    height: auto;
    align-items: center;
  }

  .mobile-header .header__logo img {
    display: block;
    width: 75px;
    height: auto;
    max-height: none;
  }

  .mobile-header .logo_operator_wrapper .html_oper {
    display: none;
  }

  .mobile-header .info_lang_menu_wrapper,
  .mobile-header .topmenu_wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .mobile-header .main-menu-btn {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-header .main-menu-btn img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
  }
}
/* Desktop Figma correction: isolate the header from legacy light-theme rules. */
body.home .fm-header.desktop-header,
body.fm-feedback-page-template .fm-header.desktop-header {
  display: block;
  width: 100%;
  min-height: 70px;
  background: rgba(6, 9, 14, 0.96) !important;
  border: 0 !important;
}

body.home .fm-header__inner,
body.fm-feedback-page-template .fm-header__inner {
  width: calc(100% - 64px);
  max-width: var(--fm-container);
  min-height: 70px;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

body.home .fm-header__brand img,
body.fm-feedback-page-template .fm-header__brand img {
  width: 75px;
  max-width: none;
}

body.home .fm-header__menu,
body.fm-feedback-page-template .fm-header__menu,
body.home .fm-header__menu ul,
body.fm-feedback-page-template .fm-header__menu ul {
  gap: clamp(20px, 2.2vw, 36px);
}

body.home .fm-header__menu > li,
body.fm-feedback-page-template .fm-header__menu > li {
  margin: 0 !important;
}

body.home .fm-header__menu a,
body.fm-feedback-page-template .fm-header__menu a {
  color: rgba(247, 248, 251, 0.86);
  font-size: 13px;
  line-height: 1.2;
}

body.home .fm-header__actions,
body.fm-feedback-page-template .fm-header__actions {
  gap: 10px;
}

body.home .fm-header__locale,
body.fm-feedback-page-template .fm-header__locale {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(31, 36, 47, 0.86);
}

body.home .fm-header__locale .langlist_div,
body.fm-feedback-page-template .fm-header__locale .langlist_div {
  display: block !important;
  width: auto !important;
  position: relative;
}

body.home .fm-header__locale .langlist_title,
body.fm-feedback-page-template .fm-header__locale .langlist_title {
  display: flex !important;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border: 0 !important;
  border-radius: var(--fm-button-s-radius);
  background: var(--fm-alpha-neutral-13) !important;
  color: var(--fm-text) !important;
  font-size: 12px;
  line-height: 1;
  text-transform: none;
}

body.home .fm-header__locale .langlist_title span,
body.fm-feedback-page-template .fm-header__locale .langlist_title span {
  display: inline-flex;
  width: auto;
  align-items: center;
  padding: 0 16px 0 0;
  color: inherit;
  font-size: inherit;
}

body.home .fm-header__locale .langlist_ul,
body.fm-feedback-page-template .fm-header__locale .langlist_ul {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 120px;
  flex-direction: column !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 5px;
  margin: 0;
  padding: 0;
  /* optionally disabled */
  border: 0px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #080b10;
}

body.home .fm-header__locale .langlist_div:hover .langlist_ul,
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_div:hover
  .langlist_ul,
body.home .fm-header__locale .langlist_div:focus-within .langlist_ul,
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_div:focus-within
  .langlist_ul {
  display: flex !important;
}

body.home .fm-header__locale .langlist_li,
body.fm-feedback-page-template .fm-header__locale .langlist_li {
  display: block !important;
  padding: 8px 10px;
  color: var(--fm-text-muted) !important;
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  body.home .fm-header__inner,
  body.fm-feedback-page-template .fm-header__inner {
    width: calc(100% - 30px);
    min-height: 60px;
  }
}
/* Shared typography and control reset. */
.fm-header,
.fm-header button,
.fm-header a,
.fm-header__locale {
  font-family: var(--fm-font);
}

.fm-header__menu a,
.fm-header__button,
.fm-header__locale .langlist_title,
.fm-header__locale .langlist_li {
  font: var(--fm-type-interface-nav) !important;
  letter-spacing: var(--fm-type-interface-nav-letter-spacing);
}

.fm-header__menu a {
  font-weight: 400;
}
/* Homepage visual contract: transparent header, flag-only locale, shared gutters. */
.fm-header.desktop-header {
  background: transparent !important;
}

.fm-header__inner {
  width: calc(100% - 64px);
  max-width: var(--fm-container);
  margin-inline: auto;
}

.fm-header__button,
.fm-header__locale,
.fm-header__locale .langlist_title {
  border-radius: var(--fm-button-s-radius);
}

.fm-header__locale .langlist_title {
  width: 36px;
  height: 36px;
  min-height: 36px;
  justify-content: center;
  padding: 0 !important;
}

.fm-header__locale .langlist_title span {
  display: inline-flex;
  width: 18px;
  height: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden;
  font-size: 0 !important;
  background: none !important;
}

.fm-header__locale .langlist_title span::after {
  display: none !important;
}

.fm-header__locale .fm-lang-current-flag {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  object-fit: cover;
}

@media (max-width: 767px) {
  .fm-header__inner {
    width: calc(100% - 26px);
  }
}
/* Scoped cascade win for the home-page transparent header. */
body.home .fm-header.desktop-header,
body.fm-feedback-page-template .fm-header.desktop-header {
  background: transparent !important;
}
/* The transparent header overlays the hero background instead of the white body. */
.fm-header.desktop-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
}

@media (max-width: 767px) {
  .mobile-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
  }
}
/* Hero-aware header flow: desktop reserves header space; mobile keeps the overlay header. */
@media (min-width: 768px) {
  .fm-header.desktop-header {
    position: relative;
  }
}
/* The original mobile header is retained for mobile behavior but must not sit beneath desktop. */
@media (min-width: 768px) {
  body.home .mobile-header,
  body.fm-feedback-page-template .mobile-header {
    display: none !important;
  }

  body.home .fm-header.desktop-header,
  body.fm-feedback-page-template .fm-header.desktop-header {
    background: transparent !important;
  }
}
/* Desktop header must overlay the hero so transparency reveals the dark hero background. */
@media (min-width: 768px) {
  .fm-header.desktop-header {
    position: absolute !important;
    top: 0;
    right: 0;
    left: 0;
    background: transparent !important;
  }

  .mobile-header {
    display: none !important;
  }
}
/* Final desktop overlay contract: transparent header over the hero, independent of body classes. */
@media (min-width: 768px) {
  .fm-header.desktop-header,
  .fm-header.desktop-header .fm-header__inner,
  .fm-header.desktop-header .fm-header__nav,
  .fm-header.desktop-header .main-menu {
    position: initial;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  .fm-header.desktop-header {
    position: absolute !important;
    top: 0;
    right: 0;
    left: 0;
  }
}

/* Desktop navigation alignment: neutralize legacy mobile `.main-menu` layout inside the new header. */
@media (min-width: 768px) {
  .fm-header.desktop-header .fm-header__inner {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    min-height: var(--fm-header-height);
    height: var(--fm-header-height);
  }

  .fm-header.desktop-header .fm-header__nav,
  .fm-header.desktop-header .fm-header__nav.main-menu,
  .fm-header.desktop-header .fm-header__nav.js_menu {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    visibility: visible !important;
  }

  .fm-header.desktop-header .fm-header__nav .menu-items-wrapper {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fm-header.desktop-header .fm-header__menu,
  .fm-header.desktop-header .fm-header__menu ul {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: auto !important;
    height: auto !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .fm-header.desktop-header .fm-header__actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
}
/* Figma button mapping: sign-in uses Secondary S; sign-up uses Primary S. */
body.home .fm-header__button,
body.fm-feedback-page-template .fm-header__button {
  width: auto;
  height: var(--fm-button-s-height);
  min-height: var(--fm-button-s-height);
  padding: 0 1rem;
  border-radius: var(--fm-button-s-radius) !important;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    outline-color 180ms ease;
  gap: 10px;
  padding: 6px 16px;
}

body.home .fm-header__button--secondary,
body.fm-feedback-page-template .fm-header__button--secondary {
  background: var(--fm-button-secondary-bg-default) !important;
  color: var(--fm-neutral-0) !important;
}

body.home .fm-header__button--secondary:hover,
body.fm-feedback-page-template .fm-header__button--secondary:hover,
body.home .fm-header__button--secondary:focus-visible,
body.fm-feedback-page-template .fm-header__button--secondary:focus-visible {
  background: var(--fm-button-secondary-bg-hover) !important;
}

body.home .fm-header__button--secondary:active,
body.fm-feedback-page-template .fm-header__button--secondary:active {
  background: var(--fm-button-secondary-bg-click) !important;
  transform: none;
}

body.home .fm-header__button--secondary:disabled,
body.fm-feedback-page-template .fm-header__button--secondary:disabled,
body.home .fm-header__button--secondary[aria-disabled='true'],
body.fm-feedback-page-template
  .fm-header__button--secondary[aria-disabled='true'] {
  background: var(--fm-button-secondary-bg-disabled) !important;
  color: var(--fm-neutral-400) !important;
  cursor: not-allowed;
  transform: none;
}

body.home .fm-header__button--primary,
body.fm-feedback-page-template .fm-header__button--primary {
  background: var(--fm-button-primary-bg-default) !important;
  color: var(--fm-neutral-0) !important;
}

body.home .fm-header__button--primary:hover,
body.fm-feedback-page-template .fm-header__button--primary:hover,
body.home .fm-header__button--primary:focus-visible,
body.fm-feedback-page-template .fm-header__button--primary:focus-visible {
  background: var(--fm-button-primary-bg-hover) !important;
}

body.home .fm-header__button--primary:active,
body.fm-feedback-page-template .fm-header__button--primary:active {
  background: var(--fm-button-primary-bg-click) !important;
  transform: none;
}

body.home .fm-header__button--primary:disabled,
body.fm-feedback-page-template .fm-header__button--primary:disabled,
body.home .fm-header__button--primary[aria-disabled='true'],
body.fm-feedback-page-template
  .fm-header__button--primary[aria-disabled='true'] {
  background: var(--fm-button-primary-bg-disabled) !important;
  color: var(--fm-neutral-400) !important;
  cursor: not-allowed;
  transform: none;
}

body.home .fm-header__button--secondary:focus-visible,
body.fm-feedback-page-template .fm-header__button--secondary:focus-visible,
body.home .fm-header__button--primary:focus-visible,
body.fm-feedback-page-template .fm-header__button--primary:focus-visible {
  outline: 2px solid var(--fm-primary-300) !important;
  outline-offset: 2px;
  transform: none;
}

/* Header button hover contract: preserve position while retaining visual states. */
body.home .fm-header__button,
body.fm-feedback-page-template .fm-header__button,
body.home .fm-header__button:hover,
body.fm-feedback-page-template .fm-header__button:hover,
body.home .fm-header__button:focus-visible,
body.fm-feedback-page-template .fm-header__button:focus-visible,
body.home .fm-header__button:active,
body.fm-feedback-page-template .fm-header__button:active {
  transform: none !important;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    outline-color 180ms ease !important;
}

/* Desktop locale trigger uses the same secondary-button interaction states as mobile. */
@media (min-width: 768px) {
  .fm-header.desktop-header .fm-header__locale,
  .fm-header.desktop-header .fm-header__locale .langlist_title {
    border: 1px solid transparent !important;
    transition:
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease,
      outline-color 180ms ease;
  }

  .fm-header.desktop-header .fm-header__locale:hover,
  .fm-header.desktop-header .fm-header__locale:focus-within,
  .fm-header.desktop-header .fm-header__locale .langlist_title:hover,
  .fm-header.desktop-header .fm-header__locale .langlist_title:focus-visible {
    background: var(--fm-button-secondary-bg-hover) !important;
    color: var(--fm-neutral-0) !important;
  }

  .fm-header.desktop-header .fm-header__locale:active,
  .fm-header.desktop-header .fm-header__locale .langlist_title:active,
  .fm-header.desktop-header .fm-header__locale.is-open .langlist_title {
    background: var(--fm-button-secondary-bg-click) !important;
    color: var(--fm-neutral-0) !important;
  }
}
/* Language switcher interaction and menu item alignment. */
body.home .fm-header__locale .langlist_div::after,
body.fm-feedback-page-template .fm-header__locale .langlist_div::after {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 49;
  display: block;
  width: max(100%, 120px);
  height: 8px;
  content: '';
}

body.home .fm-header__locale .langlist_li,
body.fm-feedback-page-template .fm-header__locale .langlist_li {
  display: flex !important;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font: var(--fm-type-interface-nav) !important;
  letter-spacing: var(--fm-type-interface-nav-letter-spacing);
  line-height: 130% !important;
  white-space: nowrap;
}

body.home .fm-header__locale .langlist_liimg,
body.fm-feedback-page-template .fm-header__locale .langlist_liimg {
  display: inline-flex;
  flex: 0 0 24px;
  width: 20px !important;
  height: 16px !important;
  align-items: center;
  margin: 0;
}

body.home .fm-header__locale .langlist_liimg img,
body.fm-feedback-page-template .fm-header__locale .langlist_liimg img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: cover;
}

/* Expanded language items use the Figma Dark button state contract. */
body.home .fm-header__locale .langlist_li,
body.fm-feedback-page-template .fm-header__locale .langlist_li {
  border: 0;
  border-radius: var(--fm-button-s-radius);
  background: #9CA6B021 !important;
  color: var(--fm-neutral-0) !important;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    outline-color 180ms ease;
}

/* body.home .fm-header__locale .langlist_li:hover,
body.fm-feedback-page-template .fm-header__locale .langlist_li:hover,
body.home .fm-header__locale .langlist_li:focus-visible,
body.fm-feedback-page-template .fm-header__locale .langlist_li:focus-visible {
  background: var(--fm-button-dark-bg-hover) !important;
  color: var(--fm-neutral-0) !important;
} */

body.home .fm-header__locale .langlist_li:active,
body.fm-feedback-page-template .fm-header__locale .langlist_li:active {
  background: var(--fm-button-dark-bg-click) !important;
}

body.home .fm-header__locale .langlist_li:focus-visible,
body.fm-feedback-page-template .fm-header__locale .langlist_li:focus-visible {
  outline: 2px solid var(--fm-primary-300) !important;
  outline-offset: 2px;
}

body.home .fm-header__locale .langlist_li[aria-disabled='true'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_li[aria-disabled='true'],
body.home .fm-header__locale .langlist_li.is-disabled,
body.fm-feedback-page-template .fm-header__locale .langlist_li.is-disabled {
  background: var(--fm-button-dark-bg-disabled) !important;
  color: var(--fm-neutral-400) !important;
  cursor: not-allowed;
}

/* Use the supplied Russian flag artwork for RU menu items. */

body.home .fm-header__locale .langlist_liimg img.ru,
body.fm-feedback-page-template .fm-header__locale .langlist_liimg img.ru,
body.home .fm-header__locale .langlist_liimg img[class~='ru'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[class~='ru'],
body.home .fm-header__locale .langlist_liimg img[class*='ru_RU'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[class*='ru_RU'],
body.home .fm-header__locale .langlist_liimg img[src*='/flags/ru_RU.png'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[src*='/flags/ru_RU.png'] {
  content: url('../images/flags/exfmpro_flag_ru_RU.svg') !important;
}

/* Use the supplied English flag artwork for EN trigger and menu items. */
body.home .fm-header__locale .fm-lang-current-flag[src*='flag_en_US.png'],
body.fm-feedback-page-template
  .fm-header__locale
  .fm-lang-current-flag[src*='flag_en_US.png'],
body.home .fm-header__locale .langlist_liimg img.en,
body.fm-feedback-page-template .fm-header__locale .langlist_liimg img.en,
body.home .fm-header__locale .langlist_liimg img[class~='en'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[class~='en'],
body.home .fm-header__locale .langlist_liimg img[class*='en_US'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[class*='en_US'],
body.home .fm-header__locale .langlist_liimg img[src*='/flags/flag_en_US.png'],
body.fm-feedback-page-template
  .fm-header__locale
  .langlist_liimg
  img[src*='/flags/flag_en_US.png'] {
  content: url('../images/flags/exfmpro_flag_en_GB.png') !important;
}

/* Mobile header contract: hide desktop navigation and keep a 60px header shell. */
@media (max-width: 767px) {
  body.home .fm-header.desktop-header,
  body.fm-feedback-page-template .fm-header.desktop-header {
    display: none !important;
  }

  body.home .mobile-header,
  body.fm-feedback-page-template .mobile-header,
  body.fm-account-dashboard-template .mobile-header {
    position: absolute !important;
    right: 0;
    left: 0;
    z-index: 30;
    display: block !important;
    height: 60px;
    min-height: 60px;
  }

  body.home .mobile-header .user-bar__container,
  body.fm-feedback-page-template .mobile-header .user-bar__container,
  body.home .mobile-header .container,
  body.fm-feedback-page-template .mobile-header .container {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    min-height: 60px;
    height: 60px;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
}

/* Mobile vertical rhythm: 60px above and below the header shell. */
@media (max-width: 767px) {
  body.home .mobile-header,
  body.fm-feedback-page-template .mobile-header,
  body.fm-account-dashboard-template .mobile-header {
    top: 60px;
  }
}

/* Keep the desktop header above the hero overlay while a currency menu is open. */
@media (min-width: 768px) {
  body.home:has(.fm-calculator-card .select_js.open) .fm-header.desktop-header,
  body.fm-feedback-page-template:has(.fm-calculator-card .select_js.open)
    .fm-header.desktop-header {
    position: relative !important;
    z-index: 2147483647 !important;
  }
}
/* The open white selector must not show through the transparent desktop header. */
@media (min-width: 768px) {
  body.home:has(.fm-calculator-card .select_js.open) .fm-header.desktop-header,
  body.fm-feedback-page-template:has(.fm-calculator-card .select_js.open)
    .fm-header.desktop-header {
    background: var(--fm-bg) !important;
  }
}
/* Keep desktop currency-menu open state transparent and out of normal document flow. */
@media (min-width: 768px) {
  body.home:has(.fm-calculator-card .select_js.open) .fm-header.desktop-header,
  body.fm-feedback-page-template:has(.fm-calculator-card .select_js.open)
    .fm-header.desktop-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    background: transparent !important;
  }
}

/* Shared mobile icon visibility. */

.header__account-icon header__account-icon--mobile,
.mobile-header .header__account-icon--mobile,
.mobile-header .header__contacts-icon--mobile {
  display: none !important;
}

/* Global locale asset normalization for desktop and mobile headers. */
.fm-header__locale .fm-lang-current-flag[src*='en_US'],
.fm-header__locale .fm-lang-current-flag[src*='flag_en_US'],
.fm-header__locale .langlist_liimg img[class~='en_US'],
.fm-header__locale .langlist_liimg img[src*='en_US'],
.fm-header__locale .langlist_liimg img[src*='flag_en_US'] {
  content: url('../images/flags/exfmpro_flag_en_GB.png') !important;
}

.fm-header__locale .fm-lang-current-flag[src*='ru_RU'],
.fm-header__locale .langlist_liimg img[class~='ru_RU'],
.fm-header__locale .langlist_liimg img[src*='ru_RU'] {
  content: url('../images/flags/exfmpro_flag_ru_RU.svg') !important;
}

/* Locale trigger contract: show the flag for the locale the user can switch to. */
.fm-header__locale .fm-lang-current-flag.fm-lang-target-en {
  content: url('../images/flags/exfmpro_flag_en_GB.png') !important;
}

.fm-header__locale .fm-lang-current-flag.fm-lang-target-ru {
  content: url('../images/flags/exfmpro_flag_ru_RU.svg') !important;
}
/* Account menu component. */
@media (min-width: 768px) {
  .fm-header__account-menu {
    position: relative;
    z-index: 60;
  }

  .fm-header__account-trigger {
    gap: 0.5rem;
    border: 0;
    cursor: pointer;
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing);
  }

  .fm-header__account-trigger:hover,
  .fm-header__account-trigger:focus-visible,
  .fm-header__account-menu.is-open .fm-header__account-trigger {
    transform: none !important;
  }

  .fm-header__account-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
  }

  .fm-header__account-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .fm-header__account-chevron {
    width: 0.45rem;
    height: 0.45rem;
    margin-inline-start: 0.2rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
  }

  .fm-header__account-menu.is-open .fm-header__account-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .fm-header__account-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 70;
    display: grid;
    min-width: 17.5rem;
    gap: 0.25rem;
    padding: 15px 20px;
    border: 1px solid var(--fm-alpha-white-07);
    border-radius: var(--fm-radius-lg);
    background: var(--fm-button-dark-bg-click);
  }

  .fm-header__account-panel::before {
    position: absolute;
    top: -0.85rem;
    right: 0;
    left: 0;
    height: 1rem;
    content: '';
  }

  .fm-header__account-panel[hidden] {
    display: none;
  }

  .fm-header__account-panel a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--fm-radius-sm);
    color: var(--fm-neutral-0);
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
    white-space: nowrap;
    text-decoration: none;
    transition:
      background-color 180ms ease,
      color 180ms ease;
  }

  .fm-header__account-panel a:hover,
  .fm-header__account-panel a:focus-visible {
    background: var(--fm-button-secondary-bg-hover);
    color: var(--fm-neutral-0);
    outline: none;
  }
}

/* Shared inner-page header surface. Homepage retains the dark hero header. */
@media (min-width: 768px) {
  body.fm-inner-page-template .fm-header.fm-header--inner {
    background: transparent !important;
    color: var(--fm-neutral-900);
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__brand
    img {
    content: url('../images/exfm-logo-dark.svg');
  }

  body.fm-inner-page-template .fm-header.fm-header--inner .fm-header__menu a,
  body.fm-inner-page-template .fm-header.fm-header--inner .fm-header__nav a {
    color: var(--fm-neutral-900);
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__menu
    a:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__menu
    a:focus-visible,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__nav
    a:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__nav
    a:focus-visible {
    color: var(--fm-neutral-700);
  }

  body.fm-inner-page-template .fm-header.fm-header--inner .fm-header__locale,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_title {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-800) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale:focus-within,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale:active,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale.is-open
    .langlist_title,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_title:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_title:focus-visible,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_title:active {
    background: var(--fm-neutral-200) !important;
    color: var(--fm-neutral-900) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_ul {
    background: var(--fm-neutral-0) !important;
    border: 1px solid var(--fm-neutral-200);
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_li {
    background: var(--fm-neutral-0) !important;
    color: var(--fm-neutral-800) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_li:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__locale
    .langlist_li:focus-visible {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-900) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__account-trigger {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-900) !important;
  }

  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__account-trigger:hover,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__account-trigger:focus-visible,
  body.fm-inner-page-template
    .fm-header.fm-header--inner
    .fm-header__account-menu.is-open
    .fm-header__account-trigger {
    background: var(--fm-neutral-200) !important;
    color: var(--fm-neutral-900) !important;
  }
}
/* Final account hover and inner locale contract. */
@media (min-width: 768px) {
  .fm-header__account-menu:hover .fm-header__account-panel,
  .fm-header__account-menu:focus-within .fm-header__account-panel {
    display: grid !important;
  }

  body.fm-inner-page-template .fm-header__locale .langlist_div::after {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 49;
    display: block;
    width: max(100%, 120px);
    height: 8px;
    content: '';
  }

  body.fm-inner-page-template .fm-header__locale .langlist_title span {
    display: inline-flex;
    width: auto;
    align-items: center;
    padding-right: 16px;
    color: inherit;
    font-size: inherit;
  }

  body.fm-inner-page-template .fm-header__locale .langlist_ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none !important;
    min-width: 120px;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px;
    margin: 0;
    padding: 0;
  }

  body.fm-inner-page-template
    .fm-header__locale
    .langlist_div:hover
    .langlist_ul,
  body.fm-inner-page-template
    .fm-header__locale
    .langlist_div:focus-within
    .langlist_ul {
    display: flex !important;
  }

  body.fm-inner-page-template .fm-header__locale .langlist_li {
    display: flex !important;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
    white-space: nowrap;
  }

  body.fm-inner-page-template .fm-header__locale .langlist_liimg {
    display: inline-flex;
    width: 20px !important;
    height: 16px !important;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
  }

  body.fm-inner-page-template .fm-header__locale .langlist_liimg img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
}
/* Global desktop locale contract: visible flag trigger with hover and click support. */
@media (min-width: 768px) {
  .fm-header__locale {
    position: relative;
    display: inline-flex !important;
    min-height: 36px;
    align-items: center;
    padding: 0 !important;
    border: 0;
    border-radius: var(--fm-button-s-radius);
    background: var(--fm-alpha-neutral-13) !important;
  }

  .fm-header__locale .langlist_div {
    position: relative;
    display: block !important;
    width: auto !important;
  }

  .fm-header__locale .langlist_title {
    display: flex !important;
    width: 36px !important;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--fm-button-s-radius);
    background: var(--fm-alpha-neutral-13) !important;
    color: var(--fm-text) !important;
    cursor: pointer;
  }

  .fm-header__locale .langlist_title span {
    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
    line-height: 0;
    background: none !important;
  }

  .fm-header__locale .langlist_title span::before,
  .fm-header__locale .langlist_title span::after {
    display: none !important;
    content: none !important;
  }

  .fm-header__locale .fm-lang-current-flag {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    object-fit: contain;
  }

  .fm-header__locale.is-open .langlist_ul,
  .fm-header__locale .langlist_div.is-open .langlist_ul {
    display: flex !important;
  }

  .fm-header__locale .langlist_ul {
    max-height: none;
  }
}

/* Global breadcrumb component. Matches the feedback-page design on every page. */
.breadcrumb {
  display: flex !important;
  align-items: center;
  gap: 1px;
  margin: 0 0 52px;
  padding: 0;
  color: var(--fm-neutral-500);
  list-style: none;
  line-height: 1;
}

.breadcrumb > .breadcrumb-item::before {
  display: none !important;
  background: none !important;
  content: none !important;
}

.breadcrumb > ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.breadcrumb > ul > .clear {
  display: none !important;
}

.breadcrumb li,
.breadcrumb li a,
.breadcrumb > .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--fm-neutral-500);
  font: var(--fm-type-interface-nav) !important;
  letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
  line-height: 1.3;
  text-decoration: none;
}

.breadcrumb > ul > li:first-child::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0 1px;
  background: url('../images/icons/exfmpro-icon-caret-right-sm.svg') center /
    24px 24px no-repeat;
  content: '';
}

.breadcrumb > .breadcrumb-item {
  color: var(--fm-neutral-900);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--fm-neutral-900);
  text-decoration: none;
}

@media (max-width: 767px) {
  .breadcrumb {
    gap: 8px;
    margin-bottom: 76px;
  }

  .breadcrumb > ul > li:first-child::after {
    margin-inline: 8px;
  }
}
/* Global desktop locale list: collapsed by default with a hover bridge. */
@media (min-width: 768px) {
  .fm-header__locale .langlist_ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none !important;
    min-width: 120px;
    box-sizing: border-box;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--fm-neutral-200);
    border-radius: var(--fm-radius-sm);
    background: var(--fm-neutral-0);
  }

  .fm-header__locale .langlist_div::after {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 49;
    display: block;
    width: max(100%, 120px);
    height: 8px;
    content: '';
  }

  .fm-header__locale .langlist_div:hover .langlist_ul,
  .fm-header__locale .langlist_div:focus-within .langlist_ul,
  .fm-header__locale.is-open .langlist_ul,
  .fm-header__locale .langlist_div.is-open .langlist_ul {
    display: flex !important;
  }

  .fm-header__locale .langlist_li {
    display: flex !important;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--fm-radius-md);
    color: var(--fm-neutral-800) !important;
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
    white-space: nowrap;
  }

  .fm-header__locale .langlist_li:hover,
  .fm-header__locale .langlist_li:focus-visible {
    background: var(--fm-neutral-100);
    color: var(--fm-primary-500) !important;
  }

  .fm-header__locale .langlist_liimg {
    display: inline-flex;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
  }

  .fm-header__locale .langlist_liimg img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
}

/* Inner-page desktop header buttons use the same interaction contract as the homepage. */
@media (min-width: 768px) {
  body:not(.home) .fm-header.desktop-header .fm-header__button {
    width: auto;
    height: var(--fm-button-s-height);
    min-height: var(--fm-button-s-height);
    padding: 6px 16px;
    border-radius: var(--fm-button-s-radius) !important;
    transition:
      background-color 180ms ease,
      color 180ms ease,
      outline-color 180ms ease !important;
    transform: none !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__button--secondary {
    background: var(--fm-button-secondary-bg-default) !important;
    color: var(--fm-neutral-0) !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__button--secondary:hover,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--secondary:focus-visible {
    background: var(--fm-button-secondary-bg-hover) !important;
  }

  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--secondary:active {
    background: var(--fm-button-secondary-bg-click) !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__button--primary {
    background: var(--fm-button-primary-bg-default) !important;
    color: var(--fm-neutral-0) !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__button--primary:hover,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--primary:focus-visible {
    background: var(--fm-button-primary-bg-hover) !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__button--primary:active {
    background: var(--fm-button-primary-bg-click) !important;
  }

  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--secondary:focus-visible,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--primary:focus-visible {
    outline: 2px solid var(--fm-primary-300) !important;
    outline-offset: 2px;
  }

  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--secondary:disabled,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--secondary[aria-disabled='true'] {
    background: var(--fm-button-secondary-bg-disabled) !important;
    color: var(--fm-neutral-400) !important;
    cursor: not-allowed;
  }

  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--primary:disabled,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__button--primary[aria-disabled='true'] {
    background: var(--fm-button-primary-bg-disabled) !important;
    color: var(--fm-neutral-400) !important;
    cursor: not-allowed;
  }
}
@media (min-width: 768px) {
  body:not(.home) .fm-header.desktop-header .fm-header__locale,
  body:not(.home) .fm-header.desktop-header .fm-header__locale .langlist_title {
    border: 0px solid transparent !important;
    background: var(--fm-button-secondary-bg-default) !important;
    color: var(--fm-neutral-0) !important;
    transition:
      background-color 180ms ease,
      color 180ms ease,
      border-color 180ms ease,
      outline-color 180ms ease;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__locale:hover,
  body:not(.home) .fm-header.desktop-header .fm-header__locale:focus-within,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__locale
    .langlist_title:hover,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__locale
    .langlist_title:focus-visible {
    background: var(--fm-button-secondary-bg-hover) !important;
    color: var(--fm-neutral-0) !important;
  }

  body:not(.home) .fm-header.desktop-header .fm-header__locale:active,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__locale
    .langlist_title:active,
  body:not(.home)
    .fm-header.desktop-header
    .fm-header__locale.is-open
    .langlist_title {
    background: var(--fm-button-secondary-bg-click) !important;
    color: var(--fm-neutral-0) !important;
  }

  body:not(.home)
    .fm-header.desktop-header
    .fm-header__locale
    .langlist_title:focus-visible {
    outline: 2px solid var(--fm-primary-300) !important;
    outline-offset: 2px;
  }
}

/* Explicit global desktop header variants.
 *
 * The homepage keeps the existing transparent/hero contract. Every other
 * desktop page uses the secondary contract: the homepage base geometry with
 * the light surfaces and dark text used by the feedback template.
 * Mobile header markup and behavior are intentionally outside this block.
 */
@media (min-width: 768px) {
  body .fm-header.desktop-header.fm-header--homepage {
    background: transparent !important;
  }

  body .fm-header.desktop-header.fm-header--secondary {
    background: transparent !important;
    color: var(--fm-neutral-900);
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__brand img {
    content: url('../images/exfm-logo-dark.svg') !important;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__menu a,
  body .fm-header.desktop-header.fm-header--secondary .fm-header__nav a {
    color: var(--fm-neutral-900);
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-interface-nav-letter-spacing) !important;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__menu a:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    a:focus-visible,
  body .fm-header.desktop-header.fm-header--secondary .fm-header__nav a:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__nav
    a:focus-visible {
    color: var(--fm-neutral-0);
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__button,
  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title {
    border-radius: var(--fm-button-s-radius) !important;
    transition:
      background-color 180ms ease,
      color 180ms ease,
      outline-color 180ms ease;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--primary {
    background: var(--fm-button-primary-bg-default) !important;
    color: var(--fm-neutral-0) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--primary:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--primary:focus-visible {
    background: var(--fm-button-primary-bg-hover) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--primary:active {
    background: var(--fm-button-primary-bg-click) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-900) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-menu.is-open
    .fm-header__account-trigger {
    background: var(--fm-neutral-200) !important;
    color: var(--fm-neutral-900) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:active,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:active {
    background: var(--fm-neutral-300) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--primary:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:focus-visible {
    outline: 2px solid var(--fm-primary-300) !important;
    outline-offset: 2px;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-900) !important;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale:focus-within,
  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale:active,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale.is-open
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:active {
    background: var(--fm-neutral-200) !important;
    color: var(--fm-neutral-900) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:focus-visible {
    outline: 2px solid var(--fm-primary-300) !important;
    outline-offset: 2px;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_ul {
    border: 1px solid var(--fm-neutral-200) !important;
    border-radius: var(--fm-radius-md) !important;
    background: var(--fm-neutral-0) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_li {
    background: var(--fm-neutral-0) !important;
    color: var(--fm-neutral-800) !important;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_li:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_li:focus-visible {
    background: var(--fm-neutral-100) !important;
    /* color: var(--fm-primary-500) !important; */
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-panel {
    border-color: var(--fm-neutral-200);
    background: var(--fm-neutral-0);
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-panel
    a {
    color: var(--fm-neutral-900);
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-panel
    a:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-panel
    a:focus-visible {
    background: var(--fm-neutral-100);
    color: var(--fm-neutral-900);
  }
}
/* Unified desktop header spacing contract. */
@media (min-width: 768px) {
  body .fm-header.desktop-header .fm-header__menu {
    gap: 32px;
  }

  body .fm-header.desktop-header .fm-header__account-trigger {
    gap: 10px;
  }

  body .fm-header.desktop-header .fm-header__actions {
    gap: 16px;
  }
}
/* Large-screen light-page header logo. */
@media (min-width: 768px) {
  body.fm-feedback-page-template
    .fm-header.desktop-header
    .fm-header__brand
    img,
  body.fm-news-page-template .fm-header.desktop-header .fm-header__brand img,
  body.fm-news-single-page-template
    .fm-header.desktop-header
    .fm-header__brand
    img,
  body.fm-reviews-page-template
    .fm-header.desktop-header
    .fm-header__brand
    img {
    content: url('../images/exfm-logo-monochrome.svg') !important;
  }
}

/* Figma language switcher: shared component contract. */
body .fm-header__locale {
  position: relative !important;
  z-index: 70;
  display: inline-flex !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--fm-button-s-radius) !important;
  background: #252b36 !important;
  color: var(--fm-neutral-0) !important;
}

body .fm-header__locale .langlist_div {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body .fm-header__locale .langlist_title {
  display: flex !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--fm-button-s-radius) !important;
  background: #252b36 !important;
  color: var(--fm-neutral-0) !important;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body .fm-header__locale .langlist_title span {
  display: inline-flex !important;
  width: 22px !important;
  height: 18px !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap;
}

body .fm-header__locale .langlist_title .fm-lang-current-flag {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  object-fit: contain;
}

body .fm-header__locale .langlist_title:hover,
body .fm-header__locale .langlist_title:focus-visible,
body .fm-header__locale:hover .langlist_title,
body .fm-header__locale:focus-within .langlist_title,
body .fm-header__locale.is-open .langlist_title {
  background: #303641 !important;
}

body .fm-header__locale .langlist_title:focus-visible {
  outline: 2px solid var(--fm-primary-300) !important;
  outline-offset: 2px;
}

body .fm-header__locale .langlist_ul {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  z-index: 80 !important;
  display: none !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  box-sizing: border-box;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #252b36 !important;
}

body .fm-header__locale .langlist_div:hover .langlist_ul,
body .fm-header__locale .langlist_div:focus-within .langlist_ul,
body .fm-header__locale.is-open .langlist_ul,
body .fm-header__locale .langlist_div.is-open .langlist_ul {
  display: flex !important;
}

body .fm-header__locale .langlist_li {
  display: flex !important;
  width: 72px !important;
  min-width: 72px !important;
  height: 48px !important;
  min-height: 48px !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px !important;
  background: #303641 !important;
  color: var(--fm-neutral-0) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  font-family: inherit;
  letter-spacing: 0 !important;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

body .fm-header__locale .langlist_li.active {
  background: var(--fm-neutral-0) !important;
  color: var(--fm-primary-500) !important;
}

body .fm-header__locale .langlist_li:hover,
body .fm-header__locale .langlist_li:focus-visible {
  background: #9CA6B033 !important;
  color: var(--fm-neutral-0) !important;
}

body .fm-header__locale .langlist_li.active:hover,
body .fm-header__locale .langlist_li.active:focus-visible {
  background: var(--fm-neutral-0) !important;
  color: var(--fm-primary-500) !important;
}

body .fm-header__locale .langlist_li:focus-visible {
  outline: 2px solid var(--fm-primary-300) !important;
  outline-offset: -2px;
}

body .fm-header__locale .langlist_liimg {
  display: inline-flex !important;
  width: 18px !important;
  height: 16px !important;
  flex: 0 0 18px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

body .fm-header__locale .langlist_liimg img {
  display: block !important;
  width: 18px !important;
  height: 16px !important;
  margin: 0 !important;
  object-fit: contain;
}

body .fm-header__locale .langlist_li:has(img[class~='ru_RU'])::after,
body .fm-header__locale .langlist_li:has(img[src*='ru_RU'])::after {
  content: 'RU';
}

body .fm-header__locale .langlist_li:has(img[class~='en_US'])::after,
body .fm-header__locale .langlist_li:has(img[src*='en_US'])::after {
  content: 'EN';
}

body .fm-header__locale .langlist_li::after {
  color: inherit;
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  line-height: 1;
}

/* Stable language-code labels: render short locale names. */
body .langlist_li_label {
  display: none !important;
}

body .langlist_li::after {
  content: none !important;
}

body .langlist_li--ru_RU::after,
body .langlist_li--en_US::after {
  color: inherit;
  font: var(--fm-type-body-s-regular);
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
  line-height: 1;
}

body .langlist_li--ru_RU::after {
  content: 'RU' !important;
}

body .langlist_li--en_US::after {
  content: 'EN' !important;
}

.info_lang_menu_wrapper
  .langlist_div
  .langlist_ul
  a.langlist_li
  .langlist_liimg {
  display: block !important;
}

/* Header News and Services megamenus. */
@media (min-width: 768px) {
  .fm-header__menu > li.fm-nav-item--news,
  .fm-header__menu > li.fm-nav-item--services {
    position: relative;
  }

  .fm-header__menu > li.fm-nav-item--news > a,
  .fm-header__menu > li.fm-nav-item--services > a {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
  }

  .fm-header__menu > li.fm-nav-item--news > a::after,
  .fm-header__menu > li.fm-nav-item--services > a::after {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    box-sizing: border-box;
    content: '';
    background: url('../images/icons/exfmpro-icon-arrow-down-lg.svg') center /
      24px 24px no-repeat;
    transform: none;
    transition: background-image 160ms ease;
  }

  .fm-header__menu > li.fm-nav-item--news:hover > a::after,
  .fm-header__menu > li.fm-nav-item--news:focus-within > a::after,
  .fm-header__menu > li.fm-nav-item--services:hover > a::after,
  .fm-header__menu > li.fm-nav-item--services:focus-within > a::after {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    background-image: url('../images/icons/exfmpro-icon-arrow-up.svg');
    background-size: 24px 24px;
    transform: none;
  }

  .fm-header__menu > li.fm-nav-item--news::before,
  .fm-header__menu > li.fm-nav-item--services::before {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99;
    display: block;
    width: 100%;
    height: 24px;
    content: '';
  }

  .fm-header__menu > li.fm-nav-item--news > .sub-menu,
  .fm-header__menu > li.fm-nav-item--services > .sub-menu {
    display: none !important;
  }

  .fm-header-megamenu {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    z-index: 100;
    display: block;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms ease;
    visibility: hidden;
  }

  .fm-header__menu > li.fm-nav-item--news:hover > .fm-header-megamenu,
  .fm-header__menu > li.fm-nav-item--news:focus-within > .fm-header-megamenu,
  .fm-header__menu > li.fm-nav-item--services:hover > .fm-header-megamenu,
  .fm-header__menu
    > li.fm-nav-item--services:focus-within
    > .fm-header-megamenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .fm-header-megamenu--news {
    width: 265px;
    padding: 20px 16px;
    border-radius: 20px;
    background: #1b1e25;
    color: var(--fm-neutral-0);
  }

  .fm-header-megamenu--services {
    width: 388px;
    padding: 30px;
    border-radius: 20px;
    background: var(--fm-neutral-0);
    color: var(--fm-neutral-900);
    box-shadow: 0px 4px 4px 0px #00000040;
  }

  .fm-header-megamenu__title {
    display: block;
    margin: 0;
    color: var(--fm-neutral-0) !important;
    font: var(--fm-type-body-l-medium);
    letter-spacing: var(--fm-type-body-l-medium-letter-spacing);
    text-decoration: none;
  }

  .fm-header-megamenu--news .fm-header-megamenu__title {
    margin-bottom: 12px;
    padding: 0 8px;
  }

  .fm-header-megamenu--services .fm-header-megamenu__title {
    margin-bottom: 12px;
    color: #66728b;
  }

  .fm-header-megamenu__divider {
    display: block;
    height: 1px;
    margin: 0 0 12px;
    background: rgba(140, 135, 150, 0.24);
  }

  .fm-header-megamenu__social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 30px;

    margin: 0 0 6px;
    color: var(--fm-neutral-0) !important;
    font: var(--fm-type-interface-nav) !important;
    letter-spacing: var(--fm-type-body-l-regular-letter-spacing);
    text-decoration: none;
    transition: opacity 160ms ease;
  }

  .fm-header-megamenu__social-link:last-child {
    margin-bottom: 0;
  }

  .fm-header-megamenu__social-link img {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .fm-header-megamenu__social-link:hover,
  .fm-header-megamenu__social-link:focus-visible {
    opacity: 1;
  }

  .fm-header-megamenu__service-link {
    display: block;
    margin: 0 0 8px;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-body-l-regular) !important;
    letter-spacing: var(--fm-type-body-l-regular-letter-spacing);
    line-height: 1.35;
    text-decoration: none;
    transition: color 160ms ease;
  }

  .fm-header-megamenu__service-link:last-child {
    margin-bottom: 0;
  }

  .fm-header-megamenu__service-link:hover,
  .fm-header-megamenu__service-link:focus-visible {
    color: var(--fm-primary-500) !important;
  }
}

/* Final megamenu typography and color contract. */
body .fm-header__menu > li.fm-nav-item--news .fm-header-megamenu__title,
body .fm-header__menu > li.fm-nav-item--services .fm-header-megamenu__title,
body .main-menu__list > li.fm-nav-item--services .fm-header-megamenu__title {
  font: var(--fm-type-body-s-regular) !important;
  letter-spacing: var(--fm-type-body-s-regular-letter-spacing) !important;
}

body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link,
body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:visited,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:visited {
  color: var(--fm-neutral-900);
}

body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:hover,
body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:focus-visible,
body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:active,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:hover,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:focus-visible,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:active {
  color: var(--fm-primary-500) !important;
}

body .fm-header__menu > li.fm-nav-item--news .fm-header-megamenu__social-link,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:visited {
  color: var(--fm-neutral-0) !important;
  opacity: 1;
}

body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:hover,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:focus-visible,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:active {
  color: var(--fm-primary-300) !important;
  opacity: 1;
}
/* Megamenu hover states: News stays white; Services uses the site gray hover color. */
body .fm-header__menu > li.fm-nav-item--news .fm-header-megamenu__social-link,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:visited,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:hover,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:focus-visible,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:active {
  box-sizing: border-box;
  color: var(--fm-neutral-0) !important;
  opacity: 1;
}

body .fm-header__menu > li.fm-nav-item--news .fm-header-megamenu__social-link {
  padding: 8px;
  border-radius: 12px;
  background: transparent;
  transition: background-color 160ms ease;
}

body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:hover,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:focus-visible,
body
  .fm-header__menu
  > li.fm-nav-item--news
  .fm-header-megamenu__social-link:active {
  background: var(--fm-button-secondary-bg-default);
}

body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:hover,
body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:focus-visible,
body
  .fm-header__menu
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:active,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:hover,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:focus-visible,
body
  .main-menu__list
  > li.fm-nav-item--services
  .fm-header-megamenu__service-link:active {
  color: var(--fm-neutral-500) !important;
}
/* Page shells can load after fm-header.css; keep News megamenu links white there too. */
body.fm-news-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link,
body.fm-news-single-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link,
body.fm-feedback-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link,
body.fm-reviews-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link,
body.fm-news-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:visited,
body.fm-news-single-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:visited,
body.fm-feedback-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:visited,
body.fm-reviews-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:visited,
body.fm-news-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:hover,
body.fm-news-single-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:hover,
body.fm-feedback-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:hover,
body.fm-reviews-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:hover,
body.fm-news-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:focus-visible,
body.fm-news-single-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:focus-visible,
body.fm-feedback-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:focus-visible,
body.fm-reviews-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:focus-visible,
body.fm-news-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:active,
body.fm-news-single-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:active,
body.fm-feedback-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:active,
body.fm-reviews-page-template
  .fm-header
  .fm-header-megamenu--news
  .fm-header-megamenu__social-link:active {
  color: var(--fm-neutral-0);
}
/* Secondary desktop header megamenu hover contract. */
@media (min-width: 768px) {
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li
    > a:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li
    > a:focus-visible {
    color: var(--fm-neutral-900) !important;
    opacity: 0.8;
  }

  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li.fm-nav-item--news
    .fm-header-megamenu__social-link,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li.fm-nav-item--news
    .fm-header-megamenu__social-link:visited,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li.fm-nav-item--news
    .fm-header-megamenu__social-link:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li.fm-nav-item--news
    .fm-header-megamenu__social-link:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__menu
    > li.fm-nav-item--news
    .fm-header-megamenu__social-link:active {
    color: var(--fm-neutral-0) !important;
    opacity: 1;
  }
}
/* Desktop header trigger hover color contract. */
@media (min-width: 768px) {
  /* Secondary headers use the Feedback-page hover surface. */
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale:hover
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale:focus-within
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale.is-open
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__locale
    .langlist_title:active,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__button--secondary:active,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:hover,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:focus-visible,
  body
    .fm-header.desktop-header.fm-header--secondary
    .fm-header__account-trigger:active {
    background: #303641 !important;
    color: var(--fm-neutral-0) !important;
  }

  /* Homepage and exchange main headers use the light primary hover state. */
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale:hover
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale:focus-within
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale.is-open
    .langlist_title,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale
    .langlist_title:hover,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale
    .langlist_title:focus-visible,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__locale
    .langlist_title:active,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__button--secondary:hover,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__button--secondary:focus-visible,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__button--secondary:active,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__account-trigger:hover,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__account-trigger:focus-visible,
  body
    .fm-header.desktop-header.fm-header--homepage
    .fm-header__account-trigger:active {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-primary-500) !important;
  }

  /* Keep the desktop locale dropdown radius consistent across all headers. */
  body .fm-header.desktop-header .fm-header__locale .langlist_ul {
    border-radius: 14px !important;
  }
}
.header_timetable {
  display: none;
}

/* Desktop account-panel borders follow the header variant. */
@media (min-width: 768px) {
  body .fm-header.desktop-header.fm-header--homepage .fm-header__account-panel {
    border: 1px solid transparent;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__account-panel {
    border: 1px solid var(--fm-neutral-200);
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale .langlist_li.active {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-primary-500) !important;
  }

  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale .langlist_li.active:hover,
  body .fm-header.desktop-header.fm-header--secondary .fm-header__locale .langlist_li.active:focus-visible {
    background: var(--fm-neutral-100) !important;
    color: var(--fm-neutral-900) !important;
  }
}

/* Authenticated mobile account trigger and dashboard navigation drawer. */
.fm-mobile-account,
.fm-mobile-account-menu {
  display: none;
}

@media (min-width: 768px) {
  .mobile-header .fm-mobile-account {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.fm-mobile-account-menu-open {
    overflow: hidden;
  }

  body.fm-mobile-account-menu-open .mobile-header {
    position: relative;
    z-index: 2147483101 !important;
  }

  .mobile-header .info_lang_menu_wrapper {
    gap: 20px;
  }

  .mobile-header .info_lang_menu_wrapper .topmenu_wrapper {
    margin-left: 0;
  }

  .mobile-header .fm-mobile-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
  }

  .mobile-header .fm-mobile-account__trigger {
    display: inline-flex;
    width: 52px;
    height: 28px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 ;
    padding: 0;
    background: transparent;
    box-shadow: none ;
    color: var(--fm-neutral-900);
    cursor: pointer;
    font-size: 0 ;
    line-height: 0;
    border: 0;
  }

  .mobile-header .fm-mobile-account__trigger:focus-visible {
    outline: 2px solid var(--fm-primary-300);
    outline-offset: 3px;
  }

  .mobile-header .fm-mobile-account__person {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
  }

  .mobile-header .fm-mobile-account__person-surface,
  .mobile-header .fm-mobile-account__person-glyph {
    position: absolute;
    display: block;
    object-fit: contain;
  }

  .mobile-header .fm-mobile-account__person-surface {
    inset: 0;
    width: 28px;
    height: 28px;
  }

  .mobile-header .fm-mobile-account__person-glyph {
    width: 16px;
    height: 16px;
  }

  .mobile-header .fm-mobile-account__arrow {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    transition: transform 180ms ease;
  }

  body.fm-mobile-account-menu-open .mobile-header .fm-mobile-account__arrow {
    transform: rotate(180deg);
  }

  .mobile-header .fm-mobile-account-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483100 !important;
    display: flex !important;
    width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh;
    box-sizing: border-box;
    flex-direction: column;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: max(40px, calc(env(safe-area-inset-top) + 32px))
      16px max(24px, env(safe-area-inset-bottom));
    background: var(--fm-neutral-0) !important;
    color: var(--fm-neutral-800);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) !important;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  body.fm-mobile-account-menu-open .mobile-header .fm-mobile-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
    transition-delay: 0s;
  }

  .mobile-header .fm-mobile-account-menu__inner {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
    flex-direction: column;
  }

  .mobile-header .fm-mobile-account-menu__close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .mobile-header .fm-mobile-account-menu__close:focus-visible {
    outline: 2px solid var(--fm-primary-300);
    outline-offset: 3px;
  }

  .mobile-header .fm-mobile-account-menu__close span {
    position: absolute;
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 0 !important;
    border-radius: 99px;
    background: var(--fm-neutral-400) !important;
    transform: rotate(45deg);
  }

  .mobile-header .fm-mobile-account-menu__close span + span {
    transform: rotate(-45deg);
  }

  .mobile-header .fm-mobile-account-menu__content {
    width: 100%;
    padding-top: 48px;
  }

  .mobile-header .fm-mobile-account-menu__widget {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-header .fm-mobile-account-menu__widget .fm-user-widget__inner {
    display: flex !important;
    gap: 24px;
    padding: 0 !important;
    flex-direction: column;
  }

  .mobile-header .fm-mobile-account-menu__widget .usve_widget,
  .mobile-header .fm-mobile-account-menu__widget .usve_widget_ins,
  .mobile-header .fm-mobile-account-menu__widget .user_widget_body,
  .mobile-header .fm-mobile-account-menu__widget .user_widget_body_ins,
  .mobile-header .fm-mobile-account-menu__widget .fm-user-widget__content,
  .mobile-header .fm-mobile-account-menu__widget .fm-user-widget__content-ins {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .usve_widget_link
    a {
    display: flex !important;
    height: 60px !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    padding: 0 12px !important;
    border-image-source: linear-gradient(180deg, #DFBEFF 0%, rgba(223, 190, 255, 0.7) 100%) !important;
    border-image-slice: 1;
    border-radius: 12px !important;
    background: radial-gradient(64.87% 326.13% at 40.3% 15.09%, #7B00FF 0%, #9341FF 50%, #3B00A8 100%) !important;
    box-shadow: 0px 0px 18px 0px #D59EFFE5 inset !important;
    color: var(--fm-neutral-0) !important;
    font: var(--fm-type-body-m-regular) !important;
    letter-spacing: var(--fm-type-interface-xs-letter-spacing);
    text-decoration: none;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .usve_widget_link
    a::before {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    content: '';
    background: url('../images/dashboard/exfmpro-dash-verification.svg') center /
      16px 16px no-repeat;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column;
    gap: 0 !important;
    list-style: none;
    background: transparent;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: var(--fm-neutral-50);
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item:first-child {
    border-radius: 12px 12px 0 0;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item:not(:last-child) {
    border-bottom: 1px solid var(--fm-neutral-150);
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item--support {
    margin-top: 8px !important;
    border-top: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item:has(
      + .fm-user-widget__menu-item--support
    ) {
    border-radius: 0 0 12px 12px;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: 0;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item--support:last-child {
    border-radius: 12px;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-link {
    display: flex !important;
    min-height: 52px !important;
    height: 52px !important;
    box-sizing: border-box;
    align-items: center;
    gap: 0px  !important;
    padding: 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-body-m-regular) !important;
    letter-spacing: normal;
    text-decoration: none;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit
    a{
      color: var(--fm-status-error) !important;
    }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-link::after,
  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit
    a::after {
    display: block;
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-left: auto;
    border-top: 1px solid var(--fm-neutral-400);
    border-right: 1px solid var(--fm-neutral-400);
    content: '';
    transform: rotate(45deg);
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-icon,
  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit
    a::before {
    display: none !important;
    content: none !important;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-item.is-current
    .fm-user-widget__menu-link,
  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-link:hover,
  .mobile-header
    .fm-mobile-account-menu__widget
    .fm-user-widget__menu-link:focus-visible,
  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit
    a:hover,
  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit
    a:focus-visible {
    color: var(--fm-primary-500) !important;
    outline: 0;
  }

  .mobile-header
    .fm-mobile-account-menu__widget
    .user_widget_exit {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 12px;
    background: var(--fm-neutral-50);
    overflow: hidden;
  }

  .mobile-header
    .fm-mobile-account-menu__support {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 12px;
    background: var(--fm-neutral-50);
    overflow: hidden;
  }

  .mobile-header .fm-mobile-account-menu__verified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 32px 0;
    color: var(--fm-neutral-500);
    font: var(--fm-type-body-s-regular);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
  }

  .mobile-header .fm-mobile-account-menu__verified img {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-header .fm-mobile-account__arrow,
  .mobile-header .main-menu,
  .mobile-header .fm-mobile-megamenu__top,
  .mobile-header .fm-header-megamenu,
  .mobile-header .fm-mobile-menu__language-panel,
  .mobile-header .fm-mobile-account-menu {
    transition: none !important;
  }
}

/* Mobile menu drawer. */
.fm-mobile-mega-toggle,
.fm-mobile-menu__language-trigger,
.fm-mobile-menu__language-panel,
.fm-mobile-megamenu__top,
.fm-mobile-menu__socials {
  display: none !important;
}

body .mobile-header .main-menu__top::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 767px) {
  body .mobile-header .main-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
    flex-direction: column;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: max(60px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) !important;
    background: var(--fm-neutral-0) !important;
    color: var(--fm-neutral-900) !important;
      opacity: 0 !important;
      pointer-events: none !important;
      transform: translateY(10px) !important;
      visibility: hidden !important;
      transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 0s linear 180ms;
    }

    body.menu-open .mobile-header .main-menu {
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: translateY(0) !important;
      visibility: visible !important;
      transition-delay: 0s;
    }

  body .mobile-header .main-menu__top {
    position: relative;
    display: flex !important;
    width: 100%;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body .mobile-header .main-menu__top > .fm-header__locale {
    display: none !important;
  }

  body .mobile-header .main-menu-btn-close {
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin-left: auto !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
    background-image: url('../images/exfmpro-close-md.svg') !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px !important;
  }

  body .mobile-header .main-menu-btn-close span {
    display: none !important;
  }

  body .mobile-header .main-menu-btn-close img {
    display: none !important;
  }

  body .mobile-header .fm-mobile-menu__eyebrow,
  body .mobile-header .hidden_timetable {
    display: none !important;
  }

  body .mobile-header .menu-items-wrapper {
    display: flex !important;
    width: 100%;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    flex-direction: column;
    border: 0 !important;
    background: transparent !important;
  }

  body .mobile-header .main-menu__list {
    display: flex !important;
    width: 100%;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  body .mobile-header .main-menu__list > li {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  body .mobile-header .main-menu__list > li > a {
    display: inline-flex !important;
    width: auto !important;
    height: 24px !important;
    min-height: 24px !important;
    align-items: center;
    margin-bottom: 22px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-heading-h3) !important;
    text-decoration: none;
  }

  body .mobile-header .main-menu__list > li > a::after {
    display: none !important;
    content: none !important;
  }

  body .mobile-header .main-menu__list > li.current-menu-item > a::before,
  body .mobile-header .main-menu__list > li.current-menu-ancestor > a::before {
    display: none !important;
    content: none !important;
  }

  body .mobile-header .main-menu__list > li.current-menu-item > a,
  body .mobile-header .main-menu__list > li.current-menu-ancestor > a {
    color: var(--fm-neutral-900) !important;
  }

  body .mobile-header .main-menu__list > li > a {
    justify-content: flex-start !important;
    text-transform: none !important;
    white-space: nowrap;
  }

  body .mobile-header .main-menu__list .sub-menu,
  body .mobile-header .main-menu__list .sub-menu-2 {
    display: none !important;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--news > a > .fm-mobile-menu__nav-arrow {
    display: block !important;
    flex: 0 0 24px;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    object-fit: contain;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services {
    display: flex !important;
    width: max-content !important;
    align-items: center;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services > .fm-mobile-mega-toggle {
    position: static !important;
    display: inline-flex !important;
    width: 16px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: transparent !important;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services > .fm-mobile-mega-toggle span {
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    border-top: 1px solid #7c8394;
    border-right: 1px solid #7c8394;
    background: none !important;
    transform: rotate(45deg);
  }

  body .mobile-header .fm-mobile-menu__socials {
    display: grid !important;
    width: 100%;
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto !important;
    padding: 0 !important;
  }

  body .mobile-header .hidden_contacts {
    display: none !important;
  }

  body .mobile-header .fm-mobile-menu__social-link {
    display: flex !important;
    height: 70px !important;
    min-height: 70px !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px !important;
    border: 1px solid var(--fm-primary-100) !important;
    border-radius: 20px !important;
    background: var(--fm-neutral-0) !important;
    color: var(--fm-primary-500) !important;
    font: var(--fm-type-body-s-regular) !important;
    letter-spacing: var(--fm-type-body-s-regular-letter-spacing);
    text-decoration: none;
  }

  body .mobile-header .fm-mobile-menu__social-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eee8ff;
  }

  body .mobile-header .fm-mobile-menu__social-icon img {
    display: block !important;
    width: 12px;
    height: 12px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(2648%) hue-rotate(256deg) brightness(89%) contrast(91%);
  }

  body .mobile-header .hidden_auth {
    display: block !important;
    width: 100%;
    order: 3;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body .mobile-header .hidden_auth .auth-wrapper {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 10px !important;
  }

  body .mobile-header .hidden_auth .user-bar__link {
    display: flex !important;
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f0eaff !important;
    color: var(--fm-primary-500) !important;
    font: var(--fm-type-body-l-medium) !important;
    letter-spacing: var(--fm-type-body-l-medium-letter-spacing);
    text-decoration: none;
  }

  body .mobile-header .hidden_auth .link-login {
    order: 1;
    background: var(--fm-primary-500) !important;
    color: var(--fm-neutral-0) !important;
  }

  body .mobile-header .hidden_auth .link-register {
    order: 2;
  }

  body .mobile-header .hidden_auth .link-account {
    display: none !important;
  }

  body .mobile-header .hidden_auth .link-logout {
    display: flex !important;
    order: 1;
  }

  body .mobile-header .hidden_auth .user-bar__link .header__account-icon--mobile {
    display: none !important;
  }
}
/* Mobile menu nested panels. */
@media (max-width: 767px) {
  body.logged-in .mobile-header .main-menu__top > .main-menu-btn-close {
    margin-left: auto !important;
  }

  body.logged-in .mobile-header .hidden_auth {
    margin-top: 0 !important;
  }
}
@media (max-width: 767px) {
  body .mobile-header .main-menu__list > li.fm-nav-item--services > .fm-mobile-megamenu__top,
  body .mobile-header .main-menu__list > li.fm-nav-item--news > .fm-mobile-megamenu__top {
    position: fixed !important;
    top: max(60px, env(safe-area-inset-top)) !important;
    right: 20px !important;
    left: 20px !important;
    z-index: 122 !important;
    display: flex !important;
    width: auto !important;
    height: 24px !important;
    min-height: 24px !important;
    align-items: center;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services.is-open > .fm-mobile-megamenu__top,
  body .mobile-header .main-menu__list > li.fm-nav-item--news.is-open > .fm-mobile-megamenu__top {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    transition-delay: 0s;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services > .fm-header-megamenu,
  body .mobile-header .main-menu__list > li.fm-nav-item--news > .fm-header-megamenu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: max(60px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) !important;
    flex-direction: column;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
    border-radius: 0 !important;
    background: var(--fm-neutral-0) !important;
    color: var(--fm-neutral-900) !important;
  }

  body .mobile-header .main-menu__list > li.fm-nav-item--services.is-open > .fm-header-megamenu,
  body .mobile-header .main-menu__list > li.fm-nav-item--news.is-open > .fm-header-megamenu {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    transition-delay: 0s;
  }

  body .mobile-header .fm-mobile-megamenu__back,
  body .mobile-header .fm-mobile-menu__back {
    display: inline-flex !important;
    height: 20px !important;
    min-height: 20px !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fm-neutral-700) !important;
    font: var(--fm-type-body-m-regular) !important;
    line-height: 1.4 !important;
  }

  body .mobile-header .fm-mobile-megamenu__back img,
  body .mobile-header .fm-mobile-menu__back img {
    display: block !important;
    width: 15px !important;
    height: 12px !important;
  }

  body .mobile-header .fm-mobile-megamenu__close {
    position: relative;
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    background: transparent !important;
  }

  body .mobile-header .fm-mobile-megamenu__close span {
    position: absolute;
    display: block;
    width: 18px;
    height: 1.5px;
    background: #687087 !important;
    transform: rotate(45deg);
  }

  body .mobile-header .fm-mobile-megamenu__close span + span {
    transform: rotate(-45deg);
  }

  body .mobile-header .fm-header-megamenu--services .fm-header-megamenu__title {
    display: none !important;
  }

  body .mobile-header .fm-header-megamenu--news .fm-header-megamenu__title {
    margin-top: 48px !important;
    padding: 0 !important;
    color: var(--fm-neutral-900) !important;
    padding-bottom: 22px !important;
  }

  body .mobile-header .fm-header-megamenu--news .fm-header-megamenu__social-link {
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: var(--fm-neutral-900) !important;
  }

  body .mobile-header .fm-header-megamenu--news .fm-header-megamenu__social-link:last-child {
    margin-bottom: 0 !important;
  }

  body .mobile-header .fm-header-megamenu--news .fm-header-megamenu__social-link img {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    background: var(--fm-primary-500);
    border-radius: 8px;
    margin-right: 2px;
  }

  body .mobile-header .fm-header-megamenu--services .fm-header-megamenu__service-link {
    display: flex !important;
    width: 100% !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 48px 0 24px 0 !important;
    align-items: center;
    padding: 0 !important;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-heading-h3) !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-decoration: none;
  }

  body .mobile-header .fm-header-megamenu--services .fm-header-megamenu__service-link + .fm-header-megamenu__service-link {
    margin-top: 0 !important;
  }

  body .mobile-header .fm-mobile-menu__language-trigger {
    display: inline-flex !important;
    width: max-content;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-heading-h3) !important;
    line-height: 44px !important;
    text-align: left;
  }

  body .mobile-header .fm-mobile-menu__language-trigger > span:first-child {
    display: inline-block !important;
  }

  body .mobile-header .fm-mobile-menu__row-arrow {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    background: none !important;
    object-fit: contain;
    transform: none !important;
    padding-bottom: 4px;
  }

  html[lang^='ru'] body .mobile-header .fm-mobile-menu__language-trigger > span:first-child,
  html[lang^='ru'] body .mobile-header .fm-mobile-menu__back > span,
  html[lang^='ru'] body .mobile-header .fm-mobile-megamenu__back > span {
    font-size: 0 !important;
  }

  html[lang^='ru'] body .mobile-header .fm-mobile-menu__language-trigger > span:first-child::before {
    font-size: 18px;
    content: 'Сменить язык';
  }

  html[lang^='ru'] body .mobile-header .fm-mobile-menu__back > span::before,
  html[lang^='ru'] body .mobile-header .fm-mobile-megamenu__back > span::before {
    font-size: 14px;
    content: '\041d\0430\0437\0430\0434';
  }

  body .mobile-header .fm-mobile-menu__language-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: 120 !important;
    display: flex !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
    flex-direction: column;
    padding: max(60px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) !important;
    background: var(--fm-neutral-0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  body .mobile-header .main-menu.fm-mobile-menu-language-open .fm-mobile-menu__language-panel {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    transition-delay: 0s;
  }

  body .mobile-header .fm-mobile-menu__submenu-top {
    display: flex !important;
    width: 100%;
    height: 24px;
    min-height: 24px;
    align-items: center;
  }

  body .mobile-header .fm-mobile-menu__language-list {
    display: block !important;
    width: 100%;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_div {
    display: block !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_title {
    display: none !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_ul {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_li {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    box-sizing: border-box;
    align-items: center;
    gap: 12px !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--fm-neutral-900) !important;
    font: var(--fm-type-heading-h3) !important;
    line-height: 24px !important;
    text-indent: 0 !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_li.active {
    color: var(--fm-primary-500) !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_liimg {
    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_liimg img {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    visibility: visible !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_li_label {
    display: inline-block !important;
    flex: 0 0 auto !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .fm-mobile-menu__language-checkmark {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    order: 3 !important;
    margin-left: auto !important;
    object-fit: contain;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_li::after {
    content: none !important;
  }

  body .mobile-header .fm-mobile-menu__language-list .langlist_li.active::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    content: none !important;
    transform: none !important;
  }

  body .mobile-header .fm-mobile-menu__language-panel .langlist_li::before,
  body .mobile-header .fm-mobile-menu__language-panel .langlist_li::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    content: none !important;
    transform: none !important;
  }

  body .mobile-header .main-menu.fm-mobile-menu-language-open .fm-mobile-menu__language-trigger {
    display: none !important;
  }
}

/* Final screenshot alignment and mobile Services submenu. */
@media (max-width: 767px) {
  body .mobile-header .menu-items-wrapper {
    margin-top: 29px !important;
  }

  body .mobile-header .main-menu__list > li > a {
    height: 45px !important;
    min-height: 45px !important;
    margin-bottom: 0 !important;
    line-height: 45px !important;
  }

  body .mobile-header .fm-mobile-menu__language-trigger {
    height: 45px !important;
    min-height: 45px !important;
    line-height: 45px !important;
  }

  body .mobile-header .hidden_auth .link-login,
  body .mobile-header .hidden_auth .link-register {
    width: 100% !important;
  }
}

/* Full-menu close uses the main drawer transition only. */
@media (max-width: 767px) {
  body:not(.menu-open) .mobile-header .fm-mobile-megamenu__top,
  body:not(.menu-open) .mobile-header .fm-header-megamenu,
  body:not(.menu-open) .mobile-header .fm-mobile-menu__language-panel {
    transition: none !important;
  }
}

/* The language panel must not inherit the trigger or legacy row chevrons. */
@media (max-width: 767px) {
  body .mobile-header .main-menu .fm-mobile-menu__language-trigger[aria-expanded='true'],
  body .mobile-header .main-menu.fm-mobile-menu-language-open .fm-mobile-menu__language-trigger,
  body .mobile-header .main-menu.fm-mobile-menu-language-open .fm-mobile-menu__language-trigger * {
    display: none !important;
  }

  body .mobile-header .fm-mobile-menu__language-panel .langlist_li {
    background-image: none !important;
  }

  body .mobile-header .fm-mobile-menu__language-panel .langlist_li::before,
  body .mobile-header .fm-mobile-menu__language-panel .langlist_li::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    content: none !important;
    transform: none !important;
  }
}
