.how {
  margin-bottom: 116px;
}

.how__listWrap {
  position: relative;
}

.how__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.how__listWrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.how__listWrap.atEnd::after {
  opacity: 0;
}

.how__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-content: center;
  flex-shrink: 0;
}

.how__item-banner {
  grid-row: 1 / 3;
  width: 150px;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.how__date {
  align-self: end;
  color: var(--textMiddle);
  font-size: 14px;
  margin-bottom: 10px;
}

.how__link {
  align-self: start;
  justify-self: start;
  max-width: 34ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  border-bottom: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .how__link:hover {
    text-decoration-color: transparent;
  }
}

@media screen and (max-width: 800px) {
  .how {
    margin-bottom: 80px;
  }
}

@media screen and (max-width: 520px) {
  .how__list {
    gap: 14px;
    max-height: 465px;
    padding-right: 10px;
  }

  .how__link {
    font-size: 14px;
  }

  .how__item {
    grid-template-columns: 110px minmax(0, 1fr);
    column-gap: 16px;
  }

  .how__item-banner {
    width: 110px;
  }

  .how__listWrap::after {
    height: 100px;
  }
}

@media screen and (max-width: 360px) {
  .how__link {
    font-size: 12px;
  }
}
