#masthead .bb-rod-art { display: none; }

@media (min-width: 1100px) {
  #masthead {
    --header-height: 164px;
    --art-width: 594px;
    --extension-width: 407px;
    --extension-step: 389px;
    display: grid;
    grid-template: var(--header-height) / 1fr;
    background: linear-gradient(#101115, #24262a 36%, #25272b 74%, #121316);
  }
  #masthead .bb-rod-art {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  #masthead .bb-rod-art img {
    display: block;
    position: absolute;
    top: -8px;
    left: 0;
    width: var(--art-width);
    height: auto;
    max-width: none;
  }
  #masthead .bb-rod-art > img {
    mask-image: linear-gradient(to right, black 55%, transparent 100%),
      linear-gradient(to bottom, transparent 28%, black 32%, black 65%, transparent 70%);
  }
  #masthead .bb-rod-extension {
    position: absolute;
    inset: 0 auto 0 calc(var(--art-width) - 18px + var(--segment) * var(--extension-step));
    width: var(--extension-width);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 18px),
      linear-gradient(to bottom, transparent 49px, black 55px, black 122px, transparent 131px);
    mask-composite: intersect;
  }
  #masthead .bb-rod-extension img { left: calc(var(--extension-width) - var(--art-width)); }
  #masthead .bb-header__logo {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: start;
    z-index: 2;
    width: 90px;
    height: 144px;
    background: transparent;
  }
  #masthead .bb-header__logo::before { content: none; }
  #masthead .custom-logo-link {
    display: block;
    width: 100%;
    height: 100%;
  }
  #masthead .custom-logo { opacity: 0; }
  #masthead .custom-logo-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }
  #masthead .bb-header__top {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: stretch;
    margin-left: 176px;
    min-height: 40px;
    padding-inline: 10px clamp(20px, 3vw, 56px);
    z-index: 2;
    background: transparent;
  }
  #masthead .bb-header__welcome { margin: 0; }
  #masthead .bb-header__main {
    grid-area: 1 / 1;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    padding: 12px clamp(20px, 3vw, 56px) 0 176px;
    gap: 14px;
    background: transparent;
    box-shadow: none;
  }
  #masthead #bb-nav .menu {
    flex-wrap: nowrap;
    gap: clamp(2px, .55vw, 12px);
    white-space: nowrap;
  }
  #masthead #bb-nav .menu > li > a {
    gap: 7px;
    padding-inline: clamp(6px, .65vw, 14px);
    font-size: clamp(15px, 1.3vw, 23px);
    color: white;
    text-shadow: 0 1px 3px #000;
  }
  #masthead #bb-nav .menu > li > a:hover,
  #masthead #bb-nav .menu > li > a:focus-visible {
    text-decoration: underline;
    text-decoration-color: #ffab70;
    text-underline-offset: .35em;
  }
  #masthead .bb-header__tools { flex: 0 0 auto; }
  #masthead .bb-header__tools > button,
  #masthead .bb-header__tools > a { align-self: center; }
  #masthead .bb-header__tools .bb-icon { filter: drop-shadow(0 1px 2px #000); }
}

@media (width < 1100px) {
  #masthead {
    display: grid;
    grid-template: 76px / minmax(0, 1fr);
    background: linear-gradient(#101115, #24262a 36%, #25272b 74%, #121316);
  }
  #masthead .bb-rod-art {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  #masthead .bb-rod-art img {
    display: block;
    position: absolute;
    top: -8px;
    left: 0;
    width: 284px;
    height: auto;
    max-width: none;
  }
  #masthead .bb-rod-art > img {
    mask-image: linear-gradient(to right, black 55%, transparent 100%),
      linear-gradient(to bottom, transparent 27%, black 32%, black 66%, transparent 72%);
  }
  #masthead .bb-rod-extension {
    position: absolute;
    inset: 0 auto 0 calc(274px + var(--segment) * 185px);
    width: 195px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10px),
      linear-gradient(to bottom, transparent 18px, black 22px, black 55px, transparent 62px);
    mask-composite: intersect;
  }
  #masthead .bb-rod-extension img { left: -89px; }
  #masthead .bb-rod-art::after {
    content: '';
    position: absolute;
    inset: 19px auto auto 2px;
    width: 39px;
    height: 35px;
    background: url('rod.webp') no-repeat -5px -27px / 284px auto;
    mask-image: linear-gradient(to right, transparent, #000 4px, #000 34px, transparent),
      linear-gradient(to bottom, transparent, #000 4px, #000 30px, transparent);
    mask-composite: intersect;
  }
  #masthead .bb-header__logo {
    grid-area: 1 / 1;
    justify-self: start;
    align-self: center;
    width: 44px;
    height: 68px;
    z-index: 2;
    background: transparent;
  }
  #masthead .bb-header__logo::before { content: none; }
  #masthead .custom-logo-link { display: block; width: 100%; height: 100%; }
  #masthead .custom-logo { opacity: 0; }
  #masthead .custom-logo-link:focus-visible { outline: 2px solid white; outline-offset: -2px; }
  #masthead .bb-header__main {
    grid-area: 1 / 1;
    justify-content: end;
    gap: 0;
    min-height: 0;
    padding: 0 56px 0 8px;
    background: transparent;
  }
  #masthead .bb-header__main > .bb-iconbtn,
  #masthead .bb-header__tools .bb-iconbtn { filter: drop-shadow(0 1px 2px #000); }
  #masthead .bb-header__tools { margin-left: 0; }
  #masthead .bb-header__top {
    display: flex;
    position: absolute;
    top: 16px;
    right: 8px;
    z-index: 3;
    padding: 0;
    background: transparent;
  }
  #masthead .bb-header__welcome { display: none; }
  #masthead .bb-lang__list {
    right: 0;
    left: auto;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 16px);
    padding: 0;
  }
  #masthead .bb-lang__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.2;
  }
  #masthead .bb-cart-count {
    top: 3px;
    right: 5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 15px;
  }
  #masthead .bb-lang__current {
    width: 48px;
    height: 44px;
    justify-content: center;
    gap: 4px;
    padding: 0;
  }
  #masthead .bb-lang__current span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #masthead .bb-lang__current img { width: 18px; }
  #masthead .bb-lang__current .bb-icon { width: 10px; }
}

@media (min-width: 1100px) {
  #masthead { --art-width: 690px; }
  #masthead #bb-nav {
    flex: 1 1 auto;
    justify-content: center;
  }
  #masthead .bb-rod-art img { height: 197.81px; }
  #masthead .bb-header__logo { width: 109px; }
  #masthead #bb-nav .menu {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  #masthead #bb-nav {
    padding-inline: clamp(0px, calc((100vw - 1250px) * .12), 24px);
  }
  #masthead .bb-rod-art::before {
    content: '';
    position: absolute;
    inset: 122px 0 0 105px;
    z-index: 1;
    background: linear-gradient(#25272b, #121316);
    mask-image: linear-gradient(to right, transparent, #000 9px);
  }
  #masthead .bb-rod-art::after {
    content: '';
    position: absolute;
    inset: 39px auto auto 4px;
    width: 100px;
    height: 89px;
    background: url('rod.webp') no-repeat -15.6px -58.04px / 772.8px 221.55px;
    filter: brightness(1.045) contrast(.985);
    mask-image: linear-gradient(to right, transparent, black 4px, black 94px, transparent),
      linear-gradient(to bottom, transparent, black 8px, black 78px, transparent);
    mask-composite: intersect;
  }
}

@media (1100px <= width < 1240px) {
  #masthead .bb-header__main {
    padding-right: 20px;
    gap: 8px;
  }
  #masthead #bb-nav { padding-inline: 0; }
  #masthead #bb-nav .menu { gap: 2px; }
  #masthead #bb-nav .menu > li > a {
    min-height: 44px;
    padding-inline: 6px;
  }
}
