.custom-brand-nav {
  display: none;
}

@media screen and (min-width: 76.25em) {
  .js-header-nav .md-tabs,
  .js-header-nav .md-header__title {
    display: none;
  }

  .js-header-nav .md-header__inner {
    min-height: 3.2rem;
    align-items: center;
  }

  .custom-brand-nav {
    display: flex;
    align-items: baseline;
    gap: 1.35rem;
    margin-left: 1rem;
    margin-right: auto;
    min-width: 0;
  }

  .custom-brand-nav__title {
    flex: 0 0 auto;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.005em;
    color: #fff;
    white-space: nowrap;
  }

  .custom-header-nav__list {
    display: flex;
    align-items: baseline;
    gap: 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .custom-header-nav__item {
    margin: 0;
    padding: 0;
  }

  .custom-header-nav__link {
    position: relative;
    display: block;
    padding: 0;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.18s ease;
    white-space: nowrap;
  }

  .custom-header-nav__link:hover,
  .custom-header-nav__link:focus-visible {
    color: rgba(255, 255, 255, 0.96);
  }

  .custom-header-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    border-bottom: 0.14rem solid transparent;
  }

  .custom-header-nav__item--active .custom-header-nav__link {
    color: #fff;
  }

  .custom-header-nav__item--active .custom-header-nav__link::after {
    border-bottom-color: rgba(255, 255, 255, 0.95);
  }
}

@media screen and (min-width: 76.25em) and (max-width: 90em) {
  .custom-brand-nav {
    gap: 0.9rem;
    margin-left: 0.6rem;
  }

  .custom-brand-nav__title {
    font-size: 0.94rem;
  }

  .custom-header-nav__list {
    gap: 0.9rem;
  }

  .custom-header-nav__link {
    font-size: 0.9rem;
  }
}
