.aero-home-sections,
.aero-home-sections *,
.aero-home-sections *::before,
.aero-home-sections *::after {
  box-sizing: border-box;
}

.aero-home-sections {
  color: #333;
  font-family: "Open Sans", Arial, sans-serif;
}

.aero-home-sections > .aero-section:first-child {
  margin-top: 48px;
}

.aero-home-sections > .aero-section:last-child {
  margin-bottom: 62px;
}

.aero-section + .aero-section {
  margin-top: 62px;
}

.aero-title {
  margin: 0 0 28px;
  color: #71b82a;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.aero-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.aero-service-card {
  min-width: 0;
  color: #333;
  text-decoration: none;
}

.aero-service-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecee;
}

.aero-service-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.aero-service-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.aero-service-card__title {
  display: block;
  min-height: 44px;
  padding: 10px 6px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.aero-service-card:hover .aero-service-card__image img,
.aero-service-card:focus .aero-service-card__image img {
  transform: scale(1.04);
}

.aero-service-card:hover .aero-service-card__title,
.aero-service-card:focus .aero-service-card__title {
  color: #0c7eac;
}

.aero-service-card:focus,
.aero-button:focus {
  outline: 3px solid rgba(38, 152, 198, 0.35);
  outline-offset: 3px;
}

.aero-business__list {
  display: grid;
  gap: 14px;
}

.aero-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 205px;
  overflow: hidden;
  gap: 14px;
}

.aero-feature--reverse .aero-feature__content {
  order: 2;
}

.aero-feature--reverse .aero-feature__media {
  order: 1;
}

.aero-feature__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 38px;
  background: #f1f1f1;
}

.aero-feature__title {
  margin: 0 0 12px;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.aero-feature__text {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.aero-feature__text > :first-child {
  margin-top: 0;
}

.aero-feature__text > :last-child {
  margin-bottom: 0;
}

.aero-feature__media {
  min-height: 205px;
  background: #d9dfe1;
}

.aero-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aero-feature--accent {
  position: relative;
  display: block;
  min-height: 235px;
  isolation: isolate;
  background: #f1f1f1;
}

/* .aero-feature--accent::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #f1f1f1 0 52%, rgba(241, 241, 241, 0.82) 66%, rgba(241, 241, 241, 0.12) 100%);
} */

.aero-feature--accent .aero-feature__content {
  position: relative;
  z-index: 2;
  width: 58%;
  min-height: 235px;
}

.aero-feature--accent .aero-feature__media {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 58%;
  min-height: 0;
  background: transparent;
}

.aero-feature--accent .aero-feature__media img {
  object-fit: contain;
  object-position: right bottom;
}

.aero-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 19px;
  border-radius: 1px;
  color: #fff;
  background: linear-gradient(180deg, #2698c6, #0c7eac);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.aero-button:hover {
  color: #fff;
  filter: brightness(1.07);
}

@media (max-width: 820px) {
  .aero-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aero-feature__content {
    padding: 26px;
  }

  .aero-feature--accent .aero-feature__content {
    width: 64%;
  }

  .aero-feature--accent .aero-feature__media {
    width: 62%;
  }
}

@media (max-width: 560px) {
  .aero-home-sections > .aero-section:first-child {
    margin-top: 36px;
  }

  .aero-home-sections > .aero-section:last-child {
    margin-bottom: 52px;
  }

  .aero-section + .aero-section {
    margin-top: 48px;
  }

  .aero-title {
    margin-bottom: 22px;
    font-size: 23px;
  }

  .aero-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .aero-service-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .aero-service-card__title {
    min-height: 0;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 13px;
  }

  .aero-feature,
  .aero-feature--reverse {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .aero-feature__content,
  .aero-feature--reverse .aero-feature__content {
    order: 2;
    padding: 24px 22px 26px;
  }

  .aero-feature__media,
  .aero-feature--reverse .aero-feature__media {
    order: 1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .aero-feature--accent {
    position: relative;
    display: block;
    min-height: 390px;
  }

  .aero-feature--accent::after {
    z-index: 1;
    background: linear-gradient(180deg, rgba(241, 241, 241, 0.1) 0 30%, #f1f1f1 58% 100%);
  }

  .aero-feature--accent .aero-feature__media {
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .aero-feature--accent .aero-feature__content {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    min-height: 210px;
  }

  .aero-feature__title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aero-service-card__image img {
    transition: none;
  }
}
