/* ==========================================================
CATEGORIES
========================================================== */

.categories-section {
  padding: 92px 0 96px;
  background: #ffffff;
}

.categories-heading {
  margin-bottom: 42px;
}

.categories-heading .section-kicker {
  position: relative;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  background: #ff5b14;
}

.categories-heading .section-kicker::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  width: 4px;
  height: 3px;
  border-radius: 999px;
  background: #ff5b14;
}

.categories-heading .section-title {
  font-size: 42px;
  letter-spacing: -0.8px;
}

.categories-heading .section-description {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 88%, rgba(230,126,58,.18), transparent 34%),
    linear-gradient(135deg, #fffdf9 0%, #ffffff 56%, #fff7ef 100%);
  border: 1px solid rgba(230,126,58,.14);
  box-shadow: 0 14px 36px rgba(17,24,39,.07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230,126,58,.24);
  box-shadow: 0 22px 52px rgba(17,24,39,.10);
}

.category-card__content {
  position: relative;
  z-index: 3;
  max-width: 44%;
  padding: 30px 0 0 28px;
}

.category-card__content h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111827;
}

.category-card__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.52;
  color: #4b5563;
}

.category-card__arrow {
  display: none;
}

.category-card__image {
  position: absolute;
  z-index: 2;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 24px 34px rgba(17,24,39,.16));
  transition: transform .25s ease;
}

.category-card:hover .category-card__image{
  transform: translateY(-2px) scale(1.02);
}

/* Индивидуальная посадка картинок */

.category-card__image--phones {
  width: 82%;
  right: -42px;
  bottom: -56px;
}

.category-card__image--glass {
  width: 56%;
  right: 18px;
  bottom: -12px;
}

.category-card__image--cases {
    width: 61%;
    right: -22px;
    bottom: -16px;
}

.category-card__image--chargers {
  width: 76%;
  right: -36px;
  bottom: -36px;
}

.category-card__image--audio {
  width: 80%;
  right: -48px;
  bottom: -20px;
}

.category-card__image--gadgets {
  width: 80%;
  right: -44px;
  bottom: -22px;
}

/* CTA */

.categories-cta {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ee 0%, #fffdf9 55%, #fff3e5 100%);
  border: 1px solid #f0ddcc;
  box-shadow: 0 12px 34px rgba(0,0,0,.05);
}

.categories-cta__icon {
  display: none;
}

.categories-cta__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: #303846;
}

.categories-cta__text h3,
.categories-cta__text p {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.categories-cta__text h3 {
  font-weight: 700;
  color: #111827;
}

.categories-cta .button {
  min-width: 250px;
  min-height: 54px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: #e67e3a;
  border-color: #e67e3a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}

/* ==========================================================
RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
  .categories-grid {
    gap: 20px;
  }

  .category-card {
    min-height: 230px;
  }

  .category-card__content {
    max-width: 46%;
    padding-left: 24px;
  }

  .category-card__content h3 {
    font-size: 20px;
  }

  .category-card__content p {
    font-size: 14px;
  }

  .category-card__image--phones {
    width: 60%;
    right: -10px;
    bottom: -16px;
  }

  .category-card__image--glass {
    width: 54%;
    right: 14px;
    bottom: -10px;
  }

  .category-card__image--cases {
    width: 56%;
    right: 0;
    bottom: 8px;
  }

  .category-card__image--chargers {
    width: 54%;
    right: -10px;
    bottom: -4px;
  }

  .category-card__image--audio {
    width: 57%;
    right: -12px;
    bottom: 2px;
  }

  .category-card__image--gadgets {
    width: 57%;
    right: -12px;
    bottom: -2px;
  }
}

@media (max-width: 980px) {
  .categories-section {
    padding: 76px 0 82px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    min-height: 245px;
  }

  .categories-cta {
    flex-direction: column;
    text-align: center;
    padding: 26px 22px;
  }

  .categories-cta .button {
    width: auto;
    min-width: 250px;
  }
}

@media (max-width: 640px) {
  .categories-section {
    padding: 62px 0 68px;
  }

  .categories-heading .section-title {
    font-size: 30px;
  }

  .categories-heading .section-description {
    font-size: 15px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    min-height: 235px;
  }

  .category-card__content {
    max-width: 52%;
    padding: 24px 0 0 20px;
  }

  .category-card__content h3 {
    font-size: 19px;
  }

  .category-card__content p {
    font-size: 13px;
  }

  .category-card__image--phones,
  .category-card__image--glass,
  .category-card__image--cases,
  .category-card__image--chargers,
  .category-card__image--audio,
  .category-card__image--gadgets {
    width: 58%;
    right: -10px;
    bottom: 0;
  }

  .categories-cta {
    margin-top: 36px;
  }

  .categories-cta .button {
    width: 100%;
    min-width: 0;
  }
}