.categories {
  padding: 80px 20px;
  background: #fafafa;
  text-align: center;
}

.categories-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.underline {
  width: 60px;
  height: 4px;
  background-color: #3b82f6;
  margin: 0 auto 40px;
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  justify-items: center;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.category-item:hover {
  transform: translateY(-5px);
}

.category-item i {
  width: 36px;
  height: 36px;
  stroke: #3b82f6;
}

.category-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 36px;
  justify-items: center;
  padding: 20px 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  animation: fadeInScale 0.4s ease forwards;
}

.category-item:hover {
  transform: scale(1.08);
}

.category-item svg {
  width: 32px;              /* Больше */
  height: 32px;
  stroke-width: 2.4;
  margin-bottom: 10px;
  transition: transform 0.3s, stroke 0.3s ease;
}


/* Индивидуальные цвета иконок */
.category-item:nth-child(1) svg { stroke: #f59e0b; }   /* Продукты */
.category-item:nth-child(2) svg { stroke: #3b82f6; }   /* Одежда */
.category-item:nth-child(3) svg { stroke: #ef4444; }   /* Обувь */
.category-item:nth-child(4) svg { stroke: #10b981; }   /* Хоз. товары */
.category-item:nth-child(5) svg { stroke: #ec4899; }   /* Косметика */
.category-item:nth-child(6) svg { stroke: #0ea5e9; }   /* Для дома */
.category-item:nth-child(7) svg { stroke: #8b5cf6; }   /* Строительные */
.category-item:nth-child(8) svg { stroke: #06b6d4; }   /* Мебель */
.category-item:nth-child(9) svg { stroke: #22c55e; }   /* Оптика */
.category-item:nth-child(10) svg { stroke: #facc15; }  /* Ювелирные */
.category-item:nth-child(11) svg { stroke: #60a5fa; }  /* Спорттовары */
.category-item:nth-child(12) svg { stroke: #6366f1; }  /* Оборудование */
.category-item:nth-child(13) svg { stroke: #f43f5e; }  /* Подарки */
.category-item:nth-child(14) svg { stroke: #f59e0b; }  /* Кофейня */
.category-item:nth-child(15) svg { stroke: #ec4899; }  /* Кондитерская */
.category-item:nth-child(16) svg { stroke: #fbbf24; }  /* Автозапчасти */
.category-item:nth-child(17) svg { stroke: #334155; }  /* Телефоны */
.category-item:nth-child(18) svg { stroke: #a855f7; }  /* Поставщики */




.category-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}

/* Анимация появления */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Анимация при появлении с легкой задержкой */
.category-item {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInScale 0.6s ease forwards;
}
.category-item:nth-child(1) { animation-delay: 0.05s; }
.category-item:nth-child(2) { animation-delay: 0.1s; }
.category-item:nth-child(3) { animation-delay: 0.15s; }
.category-item:nth-child(4) { animation-delay: 0.2s; }
.category-item:nth-child(5) { animation-delay: 0.25s; }
.category-item:nth-child(6) { animation-delay: 0.3s; }
.category-item:nth-child(7) { animation-delay: 0.35s; }
.category-item:nth-child(8) { animation-delay: 0.4s; }
.category-item:nth-child(9) { animation-delay: 0.45s; }
.category-item:nth-child(10) { animation-delay: 0.5s; }
.category-item:nth-child(11) { animation-delay: 0.55s; }
.category-item:nth-child(12) { animation-delay: 0.6s; }
.category-item:nth-child(13) { animation-delay: 0.65s; }
.category-item:nth-child(14) { animation-delay: 0.7s; }
.category-item:nth-child(15) { animation-delay: 0.75s; }
.category-item:nth-child(16) { animation-delay: 0.8s; }
.category-item:nth-child(17) { animation-delay: 0.85s; }
.category-item:nth-child(18) { animation-delay: 0.9s; }

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Эффект свечения при наведении */
.category-item:hover svg {
  filter: drop-shadow(0 0 6px currentColor);
  transform: scale(1.1);
}

/* Пульс при загрузке */
@keyframes pulseOnce {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.category-item svg {
  animation: pulseOnce 0.6s ease-in-out;
}


