/*
 * Sharmax 2.3.11 — единые баннеры всех товарных категорий.
 * Композиция повторяет главную: крупное фото, тёмный градиент слева,
 * выразительная типографика и красный фирменный акцент.
 */

.category-banner {
  box-sizing: border-box;
  padding-top: 28px;
}

.category-banner__media {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 32vw, 520px);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: #151b24;
}

.category-banner__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.002);
}

.category-banner__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(14, 20, 29, .99) 0%,
    rgba(14, 20, 29, .94) 26%,
    rgba(14, 20, 29, .72) 43%,
    rgba(14, 20, 29, .22) 69%,
    rgba(14, 20, 29, .04) 100%);
}

.category-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-color: transparent;
  background-image: radial-gradient(rgba(255, 255, 255, .32) .75px, transparent .75px);
  background-size: 12px 12px;
  transform: none;
  -webkit-mask: linear-gradient(90deg, #000 0 32%, transparent 58%);
          mask: linear-gradient(90deg, #000 0 32%, transparent 58%);
}

.category-banner__accent {
  position: absolute;
  z-index: 1;
  top: -8%;
  bottom: -8%;
  left: 49%;
  width: 8px;
  background: var(--red);
  opacity: .88;
  transform: skewX(var(--skew));
  transform-origin: center;
  box-shadow: 0 0 34px rgba(237, 28, 36, .28);
}

.category-banner__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(680px, 54%);
  min-height: inherit;
  padding: clamp(58px, 6vw, 92px) 56px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.category-banner__eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #f1262f;
}

.category-banner h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 4.55vw, 72px);
  line-height: .98;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .34);
}

.category-banner p {
  max-width: 540px;
  margin: 20px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: #edf0f4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .32);
}

.category-banner__button {
  margin-top: 30px;
  align-self: flex-start;
}

/* На прозрачных товарных PNG сохраняем заполнение фона, не растягивая фото. */
.category-banner--golf-kary .category-banner__image,
.category-banner--buksirovshchiki .category-banner__image {
  object-position: 68% center;
}

@media (max-width: 1100px) {
  .category-banner__content {
    width: 58%;
    padding-inline: 42px;
  }

  .category-banner__accent {
    left: 54%;
  }

  .category-banner h1 {
    font-size: clamp(44px, 5.4vw, 62px);
  }
}

@media (max-width: 900px) {
  .category-banner {
    padding-top: 18px;
  }

  .category-banner__media {
    min-height: 430px;
  }

  .category-banner__image {
    object-position: 64% center;
  }

  .category-banner__media::before {
    background: linear-gradient(90deg,
      rgba(14, 20, 29, .96) 0%,
      rgba(14, 20, 29, .86) 43%,
      rgba(14, 20, 29, .47) 73%,
      rgba(14, 20, 29, .20) 100%);
  }

  .category-banner__content {
    width: 72%;
    padding: 48px 36px 44px;
  }

  .category-banner__accent {
    left: 68%;
    opacity: .68;
  }
}

@media (max-width: 560px) {
  .category-banner {
    padding-top: 12px;
  }

  .category-banner__media {
    min-height: 410px;
    align-items: flex-end;
  }

  .category-banner__image {
    object-position: 62% center;
  }

  .category-banner__media::before {
    background: linear-gradient(0deg,
      rgba(14, 20, 29, .99) 0%,
      rgba(14, 20, 29, .88) 42%,
      rgba(14, 20, 29, .32) 78%,
      rgba(14, 20, 29, .10) 100%);
  }

  .category-banner__media::after {
    -webkit-mask: linear-gradient(0deg, #000 0 38%, transparent 70%);
            mask: linear-gradient(0deg, #000 0 38%, transparent 70%);
  }

  .category-banner__accent {
    top: auto;
    right: -10%;
    bottom: 0;
    left: -10%;
    width: auto;
    height: 6px;
    transform: skewY(-2deg);
  }

  .category-banner__content {
    width: 100%;
    min-height: 0;
    padding: 34px 24px 32px;
    justify-content: flex-end;
  }

  .category-banner__eyebrow {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .category-banner h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1;
  }

  .category-banner p {
    max-width: 100%;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .category-banner__button {
    margin-top: 22px;
    padding: 13px 26px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-banner__image {
    transform: none;
  }
}
