/**
 * Баннер категории — полноразмерная картинка + текст поверх.
 * Макет для дизайна: 1200 × 352 px (2x retina: 2400 × 704).
 * Ширина на сайте: 100% контейнера (до 1200px), высота: 352px.
 */

.category-hero {
  padding: 24px 0 12px;
  background: transparent !important;
}

.category-banner {
  --cb-radius: 24px;
  --cb-height: 352px;
  --cb-max-width: 1200px;
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--cb-max-width);
  height: var(--cb-height);
  min-height: var(--cb-height);
  max-height: var(--cb-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cb-radius);
  background: #0b0b0d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

/* Картинка на весь баннер (под текстом) */
.category-banner__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.category-banner__image[hidden] {
  display: none !important;
}

/* Текст поверх картинки — слева */
.category-banner__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  max-width: min(560px, 72%);
  padding: 28px 32px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    transparent 100%
  );
}

.category-banner__title {
  margin: 0;
  color: #fff;
  font-family: 'Onder', var(--font-main, sans-serif);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-banner__title--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
}

.category-banner__line {
  display: block;
  white-space: nowrap;
  line-height: 1.4;
}

.category-banner__desc {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.category-banner__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 18% 40%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35)),
    #0b0b0d;
}

.category-banner__placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.22);
}

.category-banner.has-art .category-banner__placeholder {
  display: none;
}

@media (max-width: 900px) {
  .category-banner {
    --cb-height: 240px;
  }

  .category-banner__content {
    max-width: 85%;
    padding: 20px;
    gap: 8px;
  }

  .category-banner__title {
    font-size: 1.25rem;
  }

  .category-banner__desc {
    font-size: 0.85rem;
  }
}

@media (max-width: 560px) {
  .category-banner {
    --cb-height: 180px;
    border-radius: 18px;
  }

  .category-banner__content {
    padding: 16px;
  }

  .category-banner__desc {
    display: none;
  }
}
