.automation-cases {
  background-color: #edf5ff;
  background-image: linear-gradient(180deg, #fff 0%, #edf5ff 45%, #dce8ff 100%);
  color: #162034;
}

.automation-cases-inner {
  width: min(100%, 1660px);
  margin: 0 auto;
  padding: 100px 5% 92px 190px;
}


.automation-cases-eyebrow {
  margin: 0 0 20px;
  color: #526177;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .15em;
}

.automation-cases h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.automation-cases h2 span {
  color: #1769ff;
}

.automation-cases-intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: #556a84;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.automation-cases-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  align-items: stretch;
  gap: 20px;
  margin-top: 36px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.automation-cases-grid.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.automation-cases-grid:focus-visible {
  outline: 2px solid #1769ff;
  outline-offset: 4px;
}

.automation-case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(49 85 135 / 4%);
}

.automation-case-cover {
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 358 / 168;
  overflow: hidden;
}

.automation-case-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.automation-case-cover-numbered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(115deg, #e3efff, #edf4ff);
}

.automation-case-cover-numbered p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6386a5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .1em;
}

.automation-case-cover-numbered > span {
  position: relative;
  z-index: 1;
  color: #9fc4ef;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.automation-case-cover-food::before,
.automation-case-cover-food::after {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -55px;
  bottom: -85px;
  border: 2px solid #d3e3f6;
  border-radius: 50%;
  content: "";
}

.automation-case-cover-food::after {
  width: 170px;
  height: 170px;
  right: -65px;
  bottom: -70px;
}

.automation-case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.automation-case-company {
  margin: 0 0 12px;
  color: #556a84;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .09em;
}

.automation-case-card h3 {
  margin: 0 0 20px;
  color: #162034;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.automation-case-description {
  display: grid;
  gap: 24px;
}

.automation-case-description p {
  margin: 0;
  color: #556a84;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.automation-case-description strong {
  font-weight: 700;
}

.automation-case-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}

.automation-case-description {
  margin-bottom: 24px;
}

.automation-case-footer p {
  margin: 0 0 18px;
  color: #1e4a82;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.automation-case-footer a,
.automation-cases-more {
  color: #1769ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.automation-case-footer a:hover,
.automation-case-footer a:focus-visible,
.automation-cases-more:hover,
.automation-cases-more:focus-visible {
  text-decoration: underline;
}

.automation-cases-more {
  display: inline-block;
  margin-top: 24px;
}

@media (max-width: 1250px) {
  .automation-cases-content {
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .automation-cases-grid {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 768px) {
  .automation-cases-inner {
    padding: 52px 24px;
  }

  .automation-cases h2 {
    font-size: 28px;
  }
}

@media (max-width: 700px) {
  .automation-cases-grid {
    grid-auto-columns: 90%;
    gap: 20px;
    margin-top: 28px;
  }
}

@media (max-width: 380px) {
  .automation-case-body,
  .automation-case-cover-numbered {
    padding: 20px 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .automation-cases-grid {
    scroll-behavior: auto;
  }
}
