.home-intro {
  width: min(1050px, calc(100% - 100px));
  margin: 70px auto 0;
  color: #fff;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.5;
  text-align: justify;
}

.stack {
  width: min(1050px, calc(100% - 100px));
  margin: 90px auto 0;
  padding-bottom: 90px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 80px;
  column-gap: 0;
  align-items: end;
}

.home-section-link {
  flex: 0 0 350px;
  width: 350px;
  color: #fff;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 40px;
}

@media (min-width: 901px) {
  .home-page:has(.stack > .home-section-link:nth-child(2):last-child) .stack {
    width: min(700px, calc(100% - 100px));
    flex: 1 0 auto;
    align-content: center;
    margin-top: 0;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .home-page:has(.stack > .home-section-link:nth-child(2):last-child) .site-footer {
    margin-top: 0;
  }
}

.home-section-icon {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  transition: transform .28s ease;
  transform-origin: 50% 70%;
}

.home-section-link:hover .home-section-icon,
.home-section-link:focus-visible .home-section-icon {
  transform: scale(1.045);
}

.home-section-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 14px;
  border-radius: 10px;
}

.home-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.home-section-title strong,
.home-section-title .count {
  font-size: 31px;
  line-height: 1;
}

.home-section-title .count {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  padding: 4px 13px;
}

@media (max-width: 900px) {
  .home-intro {
    width: calc(100% - 40px);
    margin-top: 44px;
    font-size: 20px;
    text-align: left;
  }

  .stack {
    width: calc(100% - 40px);
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 90px;
    padding-bottom: 80px;
  }

  .stack > .home-section-link:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-section-link {
    width: auto;
    min-width: 0;
    gap: 28px;
  }

  .home-section-icon {
    width: auto;
    height: min(78vw, 360px);
  }

  .home-section-title strong,
  .home-section-title .count {
    font-size: 28px;
  }
}
