.services-section {
  background: var(--bg);
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Абстрактная иконка */
.services-section::before {
  content: '🔧';
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 6rem;
  opacity: 0.08;
  animation: floatIcon 6s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(10px, 10px) rotate(6deg); }
}

/* Заголовок */
.services-section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Сетка карточек */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Карточка услуги */
.service-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card:hover::after {
  opacity: 0.05;
}

/* Заголовок и иконка */
.service-card h3 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: .75rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-icon-img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  margin-right: 8px;
}

/* Текст */
.service-card p {
  flex-grow: 1;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .services-section {
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }

  .services-section h2 {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.25rem;
  }
}
