:root {
  --bm-pink: #ed145b;
  --bm-ink: #09090b;
  --bm-muted: #6b6b73;
  --bm-line: rgba(9, 9, 11, 0.11);
}

.bm-site-header {
  width: 100%;
  height: auto;
  min-height: 82px;
  display: block;
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--bm-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bm-header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--bm-ink);
}

.bm-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.bm-brand-copy {
  line-height: 1;
}

.bm-brand-name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.bm-brand-subtitle {
  display: block;
  margin-top: 6px;
  color: var(--bm-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.bm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.55vw, 25px);
  margin-left: auto;
}

.bm-nav a,
.bm-menu a {
  color: #242429;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.bm-nav a:hover,
.bm-nav a:focus-visible,
.bm-nav a[aria-current="page"] {
  color: var(--bm-pink);
}

.bm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bm-account-link,
.bm-register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.bm-account-link {
  color: var(--bm-ink);
  border: 1px solid var(--bm-line);
  background: #fff;
}

.bm-register-link {
  color: #fff;
  border: 1px solid var(--bm-pink);
  background: var(--bm-pink);
  box-shadow: 0 12px 25px rgba(237, 20, 91, 0.2);
}

.bm-account-link:hover,
.bm-register-link:hover {
  transform: translateY(-1px);
}

.bm-register-link:hover {
  color: #fff;
  background: var(--bm-ink);
  border-color: var(--bm-ink);
}

.bm-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bm-line);
  border-radius: 12px;
  color: var(--bm-ink);
  background: #fff;
  cursor: pointer;
}

.bm-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.bm-menu {
  display: none;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.bm-menu.is-open {
  display: block;
}

.bm-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--bm-line);
}

.bm-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
}

.bm-menu a:hover,
.bm-menu a:focus-visible,
.bm-menu a[aria-current="page"] {
  color: var(--bm-pink);
  background: #fff4f7;
}

.bm-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.bm-menu-actions a {
  text-align: center;
  border: 1px solid var(--bm-line);
}

.bm-menu-actions .bm-register-link {
  color: #fff;
  border-color: var(--bm-pink);
}

.bm-footer {
  display: block;
  padding: 0;
  color: #fff;
  background: #09090b;
}

.bm-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 26px;
}

.bm-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) 1fr 1fr;
  gap: 48px;
}

.bm-footer .bm-brand {
  color: #fff;
}

.bm-footer .bm-brand-subtitle,
.bm-footer-copy,
.bm-footer-links a,
.bm-footer-bottom {
  color: #a5a5ad;
}

.bm-footer-copy {
  max-width: 470px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.bm-footer-title {
  margin: 0 0 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bm-footer-links {
  display: grid;
  gap: 11px;
}

.bm-footer-links a {
  font-size: 14px;
  transition: color 180ms ease;
}

.bm-footer-links a:hover,
.bm-footer-links a:focus-visible {
  color: #fff;
}

.bm-footer-links .bm-footer-accent {
  color: #ff4d82;
  font-weight: 800;
}

.bm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .bm-nav {
    display: none;
  }

  .bm-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .bm-header-inner,
  .bm-menu,
  .bm-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .bm-brand-copy {
    display: none;
  }

  .bm-header-actions > .bm-account-link,
  .bm-header-actions > .bm-register-link {
    display: none;
  }

  .bm-menu-grid {
    grid-template-columns: 1fr;
  }

  .bm-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bm-footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-nav a,
  .bm-menu a,
  .bm-account-link,
  .bm-register-link {
    transition: none;
  }
}
