.blm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 21, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blm-header .blm-header__bar,
.blm-header__bar {
  min-height: 78px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  float: none;
}

.blm-header__bar > * {
  float: none !important;
  width: auto !important;
  clear: none !important;
}

.blm-header__panel {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 36px;
}

.blm-header__logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.blm-header__logo img {
  height: auto;
  max-height: 48px;
  max-width: 220px;
  width: auto;
  display: block;
}

.blm-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.blm-header__nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.blm-header__nav a:hover,
.blm-header__nav a:focus,
.blm-header__nav a[aria-current="page"] {
  border-bottom-color: var(--blm-amber);
}

@media (max-width: 1400px) and (min-width: 981px) {
  .blm-header__panel {
    gap: 18px;
  }

  .blm-header__nav {
    gap: 16px;
  }

  .blm-header__nav a {
    letter-spacing: 0.08em;
    font-size: 12px;
  }
}

.blm-header__cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blm-amber);
  color: var(--blm-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--blm-radius);
}

.blm-header__cta:hover,
.blm-header__cta:focus {
  background: var(--blm-ink);
  color: #fff;
}

.blm-header__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--blm-radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .blm-header__bar {
    position: relative;
    min-height: 68px;
    gap: 12px;
  }

  .blm-header__logo img {
    max-height: 40px;
    max-width: 168px;
  }

  .blm-header__toggle {
    display: inline-flex !important;
    flex: none;
    margin-left: auto;
    z-index: 2;
  }

  .blm-header__panel {
    display: none !important;
  }

  .blm-header.is-open .blm-header__panel {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    background: var(--blm-void);
    padding: 16px var(--blm-gutter) 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .blm-header.is-open .blm-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .blm-header.is-open .blm-header__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.08em;
  }

  .blm-header.is-open .blm-header__cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
  }
}
