.service__section {
  padding-top: 32px;
  padding-bottom: 64px;
  gap: 24px;
}

.service__cards-wrapper {
  gap: 32px;
}

.service__container {
  flex: 0 0 100%;
  width: 100%;
  max-height: 240px;
}

.service-card__link {
  display: inline-block;
  width: 100%;
  color: var(--white-primary);
}

.service-card__content {
  color: var(--white-primary);
  width: 100%;
  height: 240px;
  background-size: cover;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  transition: transform 0.8s ease;
  overflow: hidden;
  background-position: center;
  opacity: 0;
    transition: opacity .3s ease;
}

.service-card__content.loaded {
    opacity: 1;
}

.service-card__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: background 0.4s ease;
}
.service-card__text,
.service-card__title,
.service-card__img-wrapper {
  color: #fff;
  z-index: 2;
}

.service-card__content:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.service-card__title {
  width: 80%;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.service-card__img-wrapper {
  flex: 0 0 auto;
}

.service-card__text {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.service-card__desc {
  max-height: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.8s ease, opacity 0.4s ease, transform 0.8s ease;
}

.service-card__content:hover .service-card__desc {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.service-card__content svg {
  background: transparent;
  border-radius: 12px;
  color: #fff;
  transition: background 0.8s ease, color 0.8s ease;
}

.service-card__content:hover svg {
  background: #fff;
  color: transparent;
}

.service-card__content:hover svg path {
  color: black;
}
.service__head {
  text-align: center;
}
.service__head--text {
  margin-inline: auto;
  max-width: 700px;
}
.service__head--title {
  font-size: var(--title-l);
}
.service__head--text {
  font-size: var(--text-m);
}

@media (width >= 768px) {
  .service__section {
    padding-top: 48px;
    padding-bottom: 80px;
    gap: 48px;
  }

  .service__cards-wrapper {
    flex-direction: row;
  }
  .service__container {
    flex: 0 0 47%;
    max-width: 324px;
  }

  .service__container:nth-last-child(-n + 1) {
    flex: 0 0 100%;
    max-width: 672px;
  }

  .service-card__title {
    font-size: 1.5rem;
  }
}

@media (width >= 1084px) {
  .service__cards-wrapper {
    justify-content: space-between;
    align-items: stretch;
  }

  .service__container {
    flex: 0 0 31%;
    max-width: 395px;
    max-height: 302px;
  }

  .service__container:nth-last-child(-n + 4) {
    flex: 0 0 48%;
    max-width: 608px;
  }

  .service-card__content {
    height: 302px;
  }
}

@media (width >= 1248px) {
}

@media (width >= 1440px) {
  .service__section {
    padding-top: 64px;
    padding-bottom: 120px;
    gap: 64px;
  }
}
