/**
 * Hub /galeria/ — premium layout
 */
.page-key-galeria .page-intro {
  padding-bottom: 4px;
}

.gallery-hub-stats {
  padding: 20px 0 28px;
  border-bottom: 0;
}

.gallery-hub-stats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-hub-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(34, 40, 44, 0.1);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.gallery-hub-stats__item strong {
  color: var(--text-main, #22282c);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.gallery-hub-stats__item--link {
  text-transform: none;
  letter-spacing: 0;
}

.gallery-hub-stats__item--link a {
  color: var(--brand-graphite, #22282c);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 40, 44, 0.22);
}

.gallery-hub-stats__item--link a:hover {
  color: var(--brand-green, #448c7b);
  border-bottom-color: currentColor;
}

.gallery-hub-categories__header {
  padding: 40px 0 28px;
  max-width: 44em;
}

.gallery-hub-categories__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--bb-weight-heading);
  letter-spacing: var(--bb-h2-track);
  line-height: var(--bb-h2-lh);
  color: #ececec;
}

.gallery-hub-categories__intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: var(--bb-body-size);
  line-height: var(--bb-body-lh);
}

.gallery-categories.gallery-offer {
  padding: 0 0 48px;
}

.gallery-categories__card.feature-card--stacked .gallery-categories__count {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-categories__card.feature-card--stacked h2 {
  margin-bottom: 8px;
}

.gallery-hub-featured {
  padding: 48px 0 40px;
}

.gallery-hub-featured__header {
  max-width: 40em;
  margin-bottom: 24px;
}

.gallery-hub-featured__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: var(--bb-weight-heading);
  letter-spacing: var(--bb-h2-track);
  line-height: var(--bb-h2-lh);
}

.gallery-hub-featured__intro {
  margin: 0;
  color: var(--text-muted, #6b7280);
  font-size: var(--bb-body-size);
  line-height: var(--bb-body-lh);
}

.gallery-hub-cta-band {
  padding: 56px 0;
  background: var(--brand-graphite, #22282c);
  color: #ececec;
}

.gallery-hub-cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.gallery-hub-cta-band__copy {
  flex: 1 1 280px;
  max-width: 36em;
}

.gallery-hub-cta-band__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: var(--bb-weight-heading);
  letter-spacing: var(--bb-h3-track);
  line-height: var(--bb-h3-lh);
  color: #fff;
}

.gallery-hub-cta-band__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gallery-hub-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-hub-cta-band .outline-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.gallery-hub-cta-band .outline-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}

.gallery-hub-footer-cta {
  padding: 0 0 64px;
}

/* Podstrony kategorii /galeria/{slug}/ */
.page-key-galeria:not(.page-key-home) .page-intro {
  padding-bottom: 8px;
}

.page-key-galeria .realizacje-gallery,
.page-key-galeria .gallery-photo-grid {
  padding-bottom: 8px;
}

@media (max-width: 640px) {
  .gallery-hub-stats__list {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-hub-stats__item {
    justify-content: center;
  }

  .gallery-hub-cta-band__actions {
    width: 100%;
    flex-direction: column;
  }

  .gallery-hub-cta-band__actions .outline-button {
    width: 100%;
    justify-content: center;
  }

  .gallery-hub-footer-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-hub-footer-cta .outline-button {
    width: 100%;
    justify-content: center;
  }
}
