/* Шапка внутренних страниц (bb-hero--header-only). Мобильное меню — bb-mobile-menu.css */

#bb-hero-root.bb-hero,
#bb-hero-root.bb-hero * {
  box-sizing: border-box;
}

#bb-hero-root.bb-hero {
  --bb-bg: #fbf8f6;
  --bb-navy: #1a2e40;
  --bb-gray: #445566;
  --bb-accent: #c87a4a;
  --bb-container-wide: 1920px;
  --bb-container-narrow: 1200px;
  --bb-gutter-wide: 120px;
  --bb-gutter-narrow: 20px;
  background: var(--bb-bg);
  color: var(--bb-navy);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  width: 100%;
}

#bb-hero-root.bb-hero--header-only {
  min-height: 0;
  overflow: visible;
}

#bb-hero-root .bb-hero__container {
  width: 100%;
  max-width: var(--bb-container-wide);
  margin: 0 auto;
  padding-left: var(--bb-gutter-wide);
  padding-right: var(--bb-gutter-wide);
}

#bb-hero-root .bb-hero__header {
  position: relative;
  z-index: 20;
  padding-top: 28px;
  padding-bottom: 20px;
}

#bb-hero-root .bb-hero__header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  position: relative;
}

#bb-hero-root .bb-hero__logo {
  justify-self: start;
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

#bb-hero-root .bb-hero__logo-img {
  display: block;
  width: auto;
  height: 48px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

#bb-hero-root .bb-hero__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 30;
  justify-self: end;
  grid-column: 3;
}

#bb-hero-root .bb-hero__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--bb-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#bb-hero-root .bb-hero__nav {
  display: contents;
}

#bb-hero-root .bb-hero__nav-menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 40px;
}

#bb-hero-root .bb-hero__nav-link {
  color: var(--bb-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 4px;
}

#bb-hero-root .bb-hero__nav-link:hover,
#bb-hero-root .bb-hero__nav-link.is-active {
  color: var(--bb-navy);
}

#bb-hero-root .bb-hero__nav-link.is-active {
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--bb-accent);
}

#bb-hero-root .bb-hero__nav-inner {
  display: contents;
}

#bb-hero-root .bb-hero__nav-top {
  display: none;
}

#bb-hero-root .bb-hero__nav-logo {
  display: none;
}

#bb-hero-root .bb-hero__nav-group {
  display: contents;
}

#bb-hero-root .bb-hero__nav-group .bb-hero__nav-contacts {
  position: absolute;
  right: var(--bb-gutter-wide);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: auto;
  margin: 0;
  padding: 0;
}

#bb-hero-root .bb-hero__phone {
  color: var(--bb-navy);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

#bb-hero-root .bb-hero__phone:hover {
  color: var(--bb-accent);
}

#bb-hero-root .bb-hero__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

#bb-hero-root .bb-hero__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#bb-hero-root .bb-hero__icon-btn:hover {
  opacity: 0.82;
}

#bb-hero-root .bb-hero__icon-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  #bb-hero-root.bb-hero {
    --bb-gutter-wide: var(--bb-gutter-narrow);
  }

  #bb-hero-root .bb-hero__container {
    max-width: var(--bb-container-narrow);
  }
}

@media (max-width: 1199px) {
  #bb-hero-root.bb-hero {
    --bb-gutter-wide: var(--bb-gutter-narrow);
  }

  #bb-hero-root .bb-hero__container {
    max-width: var(--bb-container-narrow);
  }

  #bb-hero-root .bb-hero__header-inner {
    grid-template-columns: 1fr auto;
  }

  #bb-hero-root .bb-hero__burger {
    display: block;
  }

  #bb-hero-root.bb-hero.is-menu-open .bb-hero__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #bb-hero-root.bb-hero.is-menu-open .bb-hero__burger span:nth-child(2) {
    opacity: 0;
  }

  #bb-hero-root.bb-hero.is-menu-open .bb-hero__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 767px) {
  #bb-hero-root .bb-hero__logo-img {
    height: 40px;
  }
}
