/* ========== СТРАНИЦА КАТЕГОРИИ ТОВАРОВ ========== */
.category-page {
  background: var(--dark);
  color: var(--white);
}

.category-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

/* Hero секция */
.category-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -100px;
  padding-top: 100px;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3,6,4,.96) 0%,
      rgba(3,6,4,.78) 42%,
      rgba(3,6,4,.28) 100%
    ),
    url("../img/category-hero.jpg") center right / cover no-repeat;
  z-index: 0;
}

.category-hero .category-container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.breadcrumbs a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumbs a:hover::after {
  width: 100%;
}

.category-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.06em;
}

.category-description {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.category-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 32px;
  border-radius: 14px;
  background: var(--green);
  color: #071006;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.category-hero__button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.category-hero__button:hover::before {
  width: 300px;
  height: 300px;
}

.category-hero__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(171, 191, 21, 0.28);
}

/* Секция товаров */
.category-products {
  padding: 80px 0 60px;
}

.section-head {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.section-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.section-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.section-link:hover {
  color: var(--white);
}

.section-link:hover::after {
  width: 100%;
}

/* Сетка товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: rgba(8, 16, 10, 0.6);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(171, 191, 21, 0.14);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 191, 21, 0.38);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

.product-card__content {
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--white);
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.product-card__btn:hover {
  gap: 12px;
  color: var(--white);
}

.no-products {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  grid-column: span 3;
}

/* Блок консультации */
.category-help {
  padding: 40px 0 60px;
}

.category-help__box {
  padding: 48px;
  border-radius: 28px;
  background: rgba(8, 16, 10, 0.6);
  border: 1px solid rgba(171, 191, 21, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.category-help h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.category-help p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.category-help__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: #071006;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.category-help__button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.category-help__button:hover::before {
  width: 300px;
  height: 300px;
}

.category-help__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(171, 191, 21, 0.28);
}

/* Статьи по теме */
.related-articles {
  padding: 40px 0 60px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: rgba(8, 16, 10, 0.6);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(171, 191, 21, 0.14);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 191, 21, 0.38);
}

.article-card a {
  color: inherit;
  text-decoration: none;
}

.article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.06);
}

.article-card__content {
  padding: 24px;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.article-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.article-card a:hover span {
  gap: 10px;
}

/* SEO блок — без градиента, с фоновой картинкой */
.category-seo {
  padding: 60px 0 100px;
}

.category-seo__box {
  padding: 48px;
  border-radius: 28px;
  background: url("../img/bga.png") center / cover no-repeat;
  border: 1px solid rgba(171, 191, 21, 0.14);
}

.category-seo h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.category-seo__content {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.category-seo__content p {
  margin-bottom: 16px;
}

.category-seo__content p:last-child {
  margin-bottom: 0;
}

/* Адаптив */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .no-products {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .category-hero {
    min-height: 460px;
  }
  
  .category-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
  }
  
  .category-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .category-hero {
    min-height: 420px;
    align-items: flex-end;
    padding-bottom: 40px;
  }
  
  .category-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
  }
  
  .category-description {
    font-size: 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
  
  .category-help__box {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  
  .category-help__button {
    width: 100%;
  }
  
  .category-seo__box {
    padding: 32px;
  }
  
  .no-products {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .category-seo__box {
    padding: 24px;
  }
}