:root {
  --bv-bg: rgba(255, 255, 255, 0.88);
  --bv-text: #15171a;
  --bv-muted: #5f6872;
  --bv-accent: #4f46e5;
  --bv-border: rgba(15, 23, 42, 0.09);
  --bv-shadow: 0 10px 35px rgba(15, 23, 42, 0.09);
}

.bv-header, .bv-header * { box-sizing: border-box; }
.bv-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  color: var(--bv-text);
  background: var(--bv-bg);
  border-bottom: 1px solid var(--bv-border);
  box-shadow: var(--bv-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bv-header__inner {
  width: min(100% - 32px, 1280px);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
}
.bv-header__brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.bv-header__logo-img { width: auto; height: 46px; max-width: 180px; object-fit: contain; display: block; }
.bv-header__site-name { color: var(--bv-text); font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; }
.bv-header__desktop-nav { justify-self: center; }
.bv-header__menu { list-style: none; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.3vw, 34px); padding: 0; margin: 0; }
.bv-header__menu > li { position: relative; margin: 0; padding: 0; }
.bv-header__menu a { color: var(--bv-text); text-decoration: none; font-size: .95rem; font-weight: 650; line-height: 1.2; white-space: nowrap; transition: color .2s ease, opacity .2s ease; }
.bv-header__menu > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.bv-header__menu a:hover, .bv-header__menu a:focus-visible, .bv-header__menu .current-menu-item > a { color: var(--bv-accent); }
.bv-header__menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 220px; padding: 10px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--bv-border); border-radius: 16px; box-shadow: 0 18px 45px rgba(15,23,42,.14); opacity: 0; visibility: hidden; transition: .2s ease; }
.bv-header__menu li:hover > .sub-menu, .bv-header__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.bv-header__menu .sub-menu a { display: block; padding: 11px 12px; border-radius: 10px; }
.bv-header__menu .sub-menu a:hover { background: #f5f6ff; }
.bv-header__actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.bv-header__socials, .bv-header__mobile-socials { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bv-header__social-link { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--bv-text); background: rgba(15,23,42,.045); transition: transform .2s ease, color .2s ease, background .2s ease; }
.bv-header__social-link:hover, .bv-header__social-link:focus-visible { color: #fff; background: var(--bv-accent); transform: translateY(-2px); }
.bv-header__social-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bv-header__social-link svg .fill { fill: currentColor; stroke: none; }
.bv-header__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; color: #fff !important; background: var(--bv-accent); text-decoration: none; font-weight: 700; box-shadow: 0 8px 20px rgba(79,70,229,.22); }
.bv-header__toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: rgba(15,23,42,.055); cursor: pointer; }
.bv-header__toggle span { width: 22px; height: 2px; display: block; margin: 4px auto; border-radius: 2px; background: var(--bv-text); transition: transform .25s ease, opacity .2s ease; }
.bv-header.is-open .bv-header__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bv-header.is-open .bv-header__toggle span:nth-child(2) { opacity: 0; }
.bv-header.is-open .bv-header__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.bv-header__mobile-panel { padding: 18px 24px 28px; border-top: 1px solid var(--bv-border); background: rgba(255,255,255,.97); }
.bv-header__mobile-panel[hidden] { display: none !important; }
.bv-header__mobile-nav .bv-header__menu { display: flex; flex-direction: column; gap: 2px; }
.bv-header__mobile-nav .bv-header__menu > li { width: 100%; text-align: center; }
.bv-header__mobile-nav .bv-header__menu > li > a { width: 100%; justify-content: center; min-height: 48px; font-size: 1.08rem; }
.bv-header__mobile-nav .sub-menu { position: static; transform: none; visibility: visible; opacity: 1; display: block; min-width: 0; padding: 0 0 8px; border: 0; box-shadow: none; background: transparent; }
.bv-header__mobile-socials { margin-top: 18px; }
.bv-header__mobile-panel > .bv-header__cta { display: flex; width: min(100%, 280px); margin: 18px auto 0; }

@media (max-width: 980px) {
  .bv-header__inner { min-height: 70px; grid-template-columns: 1fr auto; width: min(100% - 24px, 1280px); }
  .bv-header__desktop-nav, .bv-header__socials, .bv-header__actions > .bv-header__cta { display: none; }
  .bv-header__toggle { display: block; }
  .bv-header__logo-img { height: 40px; max-width: 155px; }
}
@media (max-width: 480px) {
  .bv-header__inner { min-height: 66px; }
  .bv-header__logo-img { height: 36px; max-width: 135px; }
}
@media (prefers-reduced-motion: reduce) { .bv-header *, .bv-header *::before, .bv-header *::after { scroll-behavior: auto !important; transition: none !important; } }
