:root {
  --bm-purple: #2F138A;
  --bm-green: #005047;
  --bm-green-light: #007461;
  --bm-gold: #D29600;
  --bm-ink: #253134;
  --bm-ink-soft: #46504f;
  --bm-muted: #697372;
  --bm-white: #ffffff;
  --bm-surface-soft: #f8fbfc;
  --bm-line: rgba(47, 19, 138, .12);
  --bm-hover-line: #e4e4e6;
  --bm-hover-bg: #f7f8fa;
  --bm-focus-ring: rgba(37, 49, 52, .08);
  --bm-max: 1280px;
  --bm-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--bm-ink);
  background: var(--bm-white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bm-container {
  width: min(var(--bm-max), calc(100% - 48px));
  margin: 0 auto;
}

.bm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bm-white);
  border-bottom: 1px solid var(--bm-line);
}

.bm-header__top {
  min-height: 96px;
  display: grid;
  grid-template-columns: 330px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.bm-header__brand img {
  width: 100%;
  max-width: 330px;
  height: auto;
  object-fit: contain;
  padding: 20px 0;
}

.bm-header__search {
  position: relative;
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
}

.bm-header__search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--bm-line);
  background: var(--bm-surface-soft);
  border-radius: 999px;
  padding: 0 54px 0 22px;
  outline: none;
  color: var(--bm-ink);
  font-size: 14px;
  font-weight: 300;
  transition: border-color .22s var(--bm-ease), background .22s var(--bm-ease), box-shadow .22s var(--bm-ease);
}

.bm-header__search input:focus {
  background: var(--bm-white);
  border-color: var(--bm-hover-line);
  box-shadow: 0 0 0 4px var(--bm-focus-ring);
}

.bm-header__search button {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bm-green-light);
  display: grid;
  place-items: center;
  transition: background .22s var(--bm-ease);
}

.bm-header__search button:hover,
.bm-header__search button:focus-visible {
  background: var(--bm-green);
}

.bm-header__search button img {
  width: 18px;
  height: 18px;
}

.bm-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-header__action,
.bm-header__account {
  min-height: 48px;
  border: 1px solid var(--bm-line);
  background: var(--bm-white);
  border-radius: 999px;
  color: var(--bm-ink-soft);
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .22s var(--bm-ease), border-color .22s var(--bm-ease), background .22s var(--bm-ease);
}

.bm-header__action {
  padding: 0 20px 0 14px;
}

.bm-header__action img {
  width: 19px;
  height: 19px;
}

.bm-header__account {
  padding: 6px 15px 6px 7px;
}

.bm-header__action:hover,
.bm-header__account:hover,
.bm-header__action:focus-visible,
.bm-header__account:focus-visible {
  color: var(--bm-green-light);
  border-color: var(--bm-hover-line);
  background: var(--bm-hover-bg);
}

.bm-header__account-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 80, 71, .08);
  flex: 0 0 auto;
}

.bm-header__account-icon img {
  width: 18px;
  height: 18px;
}

.bm-header__account-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
  text-align: left;
}

.bm-header__account-text strong {
  font-size: 13px;
  font-weight: 500;
}

.bm-header__account-text small {
  color: var(--bm-muted);
  font-size: 11px;
  font-weight: 300;
}

.bm-header__nav {
  min-height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(47, 19, 138, .08);
}

.bm-header__nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  margin: 0;
}

.bm-header__nav ul a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--bm-ink-soft);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  transition: color .22s var(--bm-ease);
}

.bm-header__nav ul a:hover,
.bm-header__nav ul a:focus-visible,
.bm-header__nav ul a.is-active {
  color: var(--bm-green-light);
}

.bm-header__nav ul a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--bm-gold);
}

.bm-header__lang {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 26px;
  padding: 5px 20px;
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  background: var(--bm-surface-soft);
}

.bm-header__lang-item {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--bm-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: .72;
  transition: color .22s var(--bm-ease), opacity .22s var(--bm-ease), border-color .22s var(--bm-ease), background-color .22s var(--bm-ease);
}

.bm-header__lang-item img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.bm-header__lang-item:hover,
.bm-header__lang-item:focus-visible {
  color: var(--bm-green-light);
  opacity: 1;
  background: var(--bm-hover-bg);
  border-color: var(--bm-hover-line);
}

.bm-header__lang-item.is-active {
  color: var(--bm-green-light);
  opacity: 1;
  background: var(--bm-white);
  border-color: var(--bm-green-light);
}

.bm-header__mobile-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bm-line);
  border-radius: 50%;
  background: var(--bm-white);
  display: none;
  place-items: center;
  gap: 4px;
  padding: 11px;
  transition: border-color .22s var(--bm-ease), background .22s var(--bm-ease);
}

.bm-header__mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--bm-ink);
  border-radius: 999px;
  display: block;
}

.bm-header__mobile-toggle:hover {
  border-color: var(--bm-hover-line);
  background: var(--bm-hover-bg);
}

@media (max-width: 1080px) {
  .bm-header__top {
    grid-template-columns: 1fr auto;
  }

  .bm-header__brand img {
    width: 244px;
  }

  .bm-header__search {
    grid-column: 1 / -1;
    max-width: none;
    order: 3;
    margin-bottom: 16px;
  }

  .bm-header__nav ul {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 760px) {
  .bm-container {
    width: min(100% - 32px, var(--bm-max));
  }

  .bm-header__top {
    min-height: 82px;
    gap: 14px;
  }

  .bm-header__brand img {
    width: 205px;
    padding: 14px 0;
  }

  .bm-header__action span,
  .bm-header__account-text {
    display: none;
  }

  .bm-header__action,
  .bm-header__account {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .bm-header__account-icon {
    background: transparent;
  }

  .bm-header__mobile-toggle {
    display: grid;
  }

  .bm-header__nav {
    display: none;
    padding: 14px 0 18px;
    align-items: flex-start;
    gap: 18px;
  }

  .bm-header__nav.is-open {
    display: grid;
  }

  .bm-header__nav ul {
    width: 100%;
    display: grid;
    gap: 0;
  }

  .bm-header__nav ul a {
    min-height: 44px;
    width: 100%;
  }

  .bm-header__lang {
    justify-self: start;
  }
}
