.service-detail {
  --service-accent: #0a9b86;
  --service-accent-soft: rgba(10, 155, 134, 0.15);
}

.automation-banner {
  padding-top: 122px;
  overflow: hidden;
  background: #f7f9fc;
}

.automation-banner figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 36, 71, 0.12);
  border-radius: 18px;
  background: #020916;
  box-shadow: 0 24px 60px rgba(9, 36, 71, 0.12);
}

.automation-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.automation-banner + .service-hero { padding-top: 96px; }

.automation-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.automation-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(10, 155, 134, 0.22);
  border-radius: 20px;
  background: #050b1c;
  box-shadow: 0 24px 60px rgba(9, 36, 71, 0.12);
}

.automation-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 920px) {
  .automation-banner + .service-hero { padding-top: 78px; }

  .automation-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
  }

  .automation-gallery figure:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }
}

@media (max-width: 580px) {
  .automation-banner { padding-top: 118px; }
  .automation-banner + .service-hero { padding-top: 68px; }
  .automation-gallery { grid-template-columns: 1fr; }

  .automation-gallery figure:last-child {
    grid-column: auto;
    width: 100%;
  }
}
