.brand-top-bar {
  --brand-bar-bg: #171a1f;
  --brand-bar-text: #c5cad3;
  --brand-bar-muted: #8b939e;
  --brand-bar-accent: var(--primary-color, #f57c00);
  background: var(--brand-bar-bg);
  color: var(--brand-bar-text);
  overflow: hidden;
  max-height: 12rem;
  padding: 0.55rem 0;
  visibility: visible;
  /* visibility dopiero po max-height/opacity - bez natychmiastowego znikania tekstu */
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.35s ease,
    visibility 0s linear 0s;
}

.brand-top-bar.brand-top-bar--collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .brand-top-bar {
    transition: none;
  }
}

.brand-top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.brand-top-bar__copy {
  flex: 1 1 14rem;
  min-width: 0;
  text-align: left;
}

.brand-top-bar__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.brand-top-bar__brand {
  color: var(--brand-bar-accent);
  text-decoration: none;
}

.brand-top-bar__brand:hover,
.brand-top-bar__brand:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-top-bar__subtitle {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--brand-bar-muted);
  line-height: 1.35;
}

.brand-top-bar__subtitle strong {
  color: var(--brand-bar-text);
  font-weight: 600;
}

.brand-top-bar__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  flex: 0 1 auto;
}

.brand-top-bar__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--brand-bar-text);
  white-space: nowrap;
}

.brand-top-bar__stat .bi {
  color: var(--brand-bar-accent);
  font-size: 0.85rem;
}

.brand-top-bar__stat-num {
  font-weight: 700;
  color: #fff;
}

.brand-top-bar__plus {
  color: var(--brand-bar-accent);
}

.brand-top-bar__stat-label--short {
  display: none;
}

.brand-top-bar__subtitle-short {
  display: none;
}

@media (max-width: 991.98px) {
  .brand-top-bar {
    padding: 0.5rem 0 0.55rem;
  }

  .brand-top-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .brand-top-bar__copy {
    flex: none;
    text-align: center;
  }

  .brand-top-bar__title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .brand-top-bar__subtitle {
    margin-top: 0.2rem;
    font-size: 0.7rem;
  }

  .brand-top-bar__subtitle-full {
    display: none;
  }

  .brand-top-bar__subtitle-short {
    display: inline;
    color: var(--brand-bar-muted);
  }

  .brand-top-bar__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
    width: 100%;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand-top-bar__stat {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 0.25rem;
    row-gap: 0.05rem;
    white-space: normal;
    text-align: center;
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .brand-top-bar__stat .bi {
    font-size: 0.75rem;
    line-height: 1;
  }

  .brand-top-bar__stat-num {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand-top-bar__stat-label--short {
    flex: 1 0 100%;
  }

  .brand-top-bar__stat-label {
    display: none;
  }

  .brand-top-bar__stat-label--short {
    display: block;
    color: var(--brand-bar-muted);
  }
}
