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

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
}

.service-card:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 3px;
}

.service-preview {
  min-height: 132px;
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-preview::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  right: -72px;
  top: -88px;
  background: rgba(255, 255, 255, 0.14);
}

.service-content {
  padding: 18px;
  min-height: 176px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.service-amber .service-preview { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.service-orange .service-preview { background: linear-gradient(135deg, #f97316, #dc2626); }
.service-lime .service-preview { background: linear-gradient(135deg, #65a30d, #3f6212); }
.service-emerald .service-preview { background: linear-gradient(135deg, #10b981, #047857); }
.service-teal .service-preview { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.service-violet .service-preview { background: linear-gradient(135deg, #7c3aed, #4338ca); }
.service-sky .service-preview { background: linear-gradient(135deg, #0ea5e9, #2563eb); }

.service-amber:hover { border-color: #fbbf24; }
.service-orange:hover { border-color: #fb923c; }
.service-lime:hover { border-color: #84cc16; }
.service-emerald:hover { border-color: #34d399; }
.service-teal:hover { border-color: #2dd4bf; }
.service-violet:hover { border-color: #a78bfa; }
.service-sky:hover { border-color: #38bdf8; }

.service-open-label {
  color: #047857;
}

.service-open-label .q-icon {
  transition: transform 0.2s ease;
}

.service-card:hover .service-open-label .q-icon {
  transform: translateX(3px);
}

.service-preview-metric {
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.service-bars span {
  display: block;
  width: 5px;
  border-radius: 4px 4px 1px 1px;
  background: rgba(255, 255, 255, 0.82);
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 600;
}

.service-map {
  position: relative;
  height: 58px;
  border-radius: 11px;
  overflow: hidden;
  background-color: rgba(5, 80, 61, 0.35);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
}

.service-map-field {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(163, 230, 53, 0.23);
}

.field-one {
  left: 8px;
  top: 7px;
  width: 42%;
  height: 40px;
  transform: skew(-9deg);
}

.field-two {
  right: 10px;
  top: 12px;
  width: 34%;
  height: 34px;
  transform: skew(12deg);
}

.service-map-pin {
  position: absolute;
  left: 44%;
  top: 10px;
  color: #fff;
  font-size: 26px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.service-map-label {
  position: absolute;
  left: 8px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(6, 78, 59, 0.78);
  font-size: 8px;
  font-weight: 700;
}

.service-list-row,
.service-folder {
  background: rgba(255, 255, 255, 0.14);
}

.service-list-row {
  padding: 6px 8px;
  border-radius: 9px;
}

.service-folder {
  padding: 7px 3px;
  border-radius: 9px;
}

body.body--dark .service-card {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-preview {
    min-height: 122px;
  }

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