.home-section-list {
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 16px;
}

.home-section--banner {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.hero__iso {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.hero__stat--years {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}

.hero__stat--volume {
  grid-column: 1 / 2;
  grid-row: 5 / 6;
}

.hero__stat--future {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.home-section {
  border-radius: 20px;
  position: relative;
  background: #77DDBE;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  overflow: hidden;

  .home-section__title {
    font-family: 'Loos Wide', serif;
    font-size: 36px;
    line-height: 1;
    color: #004077;
    z-index: 1;
  }

  .home-section__linkedit {
    z-index: 1000;
    color: #fff;
    padding: 4px 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;

    div {
      width: 100%;
    }
  }

  .home-section__background {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 1px);
    height: 100%;
    background: #000;
    z-index: 0;

        img {
            object-fit: cover;
            object-position: top;
            width: 100%;
            height: 100%;
            opacity: .7;
            transition: scale .4s ease;
        }
    }

    a {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }
}

.home-section--banner {
  .home-section__title {
    color: #fff;
  }
}

.home-section-list .card {
  min-height: 200px;
}

.hero__iso-icon {
  position: absolute;
  top: 15px;
  right: 15px;
}

@media screen and (max-width: 767px) {
  .home-section {
    min-height: 530px;

    .home-section__title {
      font-size: 28px;
      line-height: 1;
    }
  }
  .home-section--banner {
    order: 4;
  }
}

@media screen and (min-width: 768px) {
  .home-section-list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 450px auto auto;
  }
  .home-section--banner {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .hero__iso {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .hero__stat--years {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}
  .hero__stat--volume {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .hero__stat--future {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
}

@media screen and (min-width: 1200px) {
  .home-section-list {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 450px auto;
  }

  .home-section--banner {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .hero__iso {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  .hero__stat--years {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .hero__stat--volume {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .hero__stat--future {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }
}

/* Анимации */
.home-section,
.home-section-list .card {
  transition:
          opacity 0.5s ease-in,
          scale 0.5s ease,
          transform 0.5s ease,
          box-shadow 0.5s ease;
}

a.card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

a.card:hover .card__title,
a.card:hover .card__description {
  color: #004077;
}

.home-section {
  --default-animation: transform 0.5s, box-shadow 0.5s, background 0.5s;

  &:hover {
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background: #86f5d3;

    .home-section__background img {
      scale: 1.05;
    }
  }

  transition:
    opacity 0.5s ease-in,
    scale 0.5s ease,
    var(--default-animation);
}

.home-section-list:not(._animated) .home-section,
.home-section-list:not(._animated) .card {
  scale: 0.8;
  opacity: 0;
}