.services-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 255, 102, 0.08), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(100, 170, 145, 0.14), transparent 30%),
    #0a0a0a;
  border-top: 1px solid var(--border-soft);
}

.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.055) 42.2%, transparent 42.5%),
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.035) 58.2%, transparent 58.5%);
  opacity: 0.62;
}

.services-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 118px 0 102px;
}

.services-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.services-header h2 {
  color: var(--text-title);
  font-size: 2.65rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.services-header p {
  max-width: 660px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 322px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26px 26px, rgba(217, 255, 102, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(217, 255, 102, 0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 255, 102, 0.52);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.56);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #101010;
  background: linear-gradient(135deg, #d9ff66, #82d9a5);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.service-card h3 {
  position: relative;
  min-height: 58px;
  color: var(--text-main);
  font-size: 1.18rem;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-card p {
  position: relative;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.service-stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  list-style: none;
}

.service-stack li {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 1200px) {
  .services-shell {
    width: min(920px, calc(100% - 44px));
  }

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

@media (max-width: 900px) {
  .services-shell {
    width: min(680px, calc(100% - 32px));
    padding: 72px 0;
  }

  .services-header h2 {
    font-size: 2.05rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .services-shell {
    width: calc(100% - 28px);
  }

  .services-header h2 {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 20px;
  }
}
