.relevant {
  background: #fff;
  color: #21201f;
  font-family: manrope;
  padding: 100px 50px 0;
}
@media (width < 768px) {
  .relevant {
    padding: 64px 16px 0;
  }
}

.relevant__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
@media (width < 768px) {
  .relevant__grid {
    gap: 16px;
    margin-top: 32px;
  }
}
@media (width < 500px) {
  .relevant__grid {
    grid-template-columns: 1fr;
  }
}

.relevant__item {
  padding: 16px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: #efefef;
}
@media (width < 768px) {
  .relevant__item {
    padding: 16px;
  }
}

.relevant__item-image {
  aspect-ratio: 320/180;
  border-radius: 16px;
  display: block;
}

.relevant__item-wrapper {
  padding-inline: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
@media (width < 768px) {
  .relevant__item-wrapper {
    padding-inline: 0;
    margin-top: 16px;
  }
}

.relevant__item-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 24px;
}
@media (width < 768px) {
  .relevant__item-title {
    font-size: 20px;
  }
}

.relevant__item-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relevant__item-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;

  letter-spacing: -0.03em;
  font-family: manrope;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: #21201f80;

  & > span {
    background-color: #efefef;
    z-index: 2;

    &:first-child {
      padding-right: 0.5em;
    }
    &:last-child {
      padding-left: 0.5em;
    }
  }

  &::after {
    content: "";
    height: 1px;
    width: 100%;
    border-top: 1px solid #21201f1a;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
  }
}

.relevant__item-price {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-family: manrope;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: #21201f80;
  letter-spacing: -0.03em;

  & span:last-child {
    font-size: 28px;
    color: #e84e26;
    font-weight: 600;
  }
}

.relevant__item-button {
  font-weight: 600;
  padding: 14px;
  width: 100%;
  border-radius: 16px;
  text-align: center;
  background: radial-gradient(65.49% 100% at 51.66% 0%, #ff8262 0%, #e84e26 52.4%, #e87726 100%);
  color: #fff;
  font-size: 26px;
  margin-top: 24px;
  display: block;

  transition: opacity 0.4s;
  &:hover {
    opacity: 0.6;
  }
}
@media (width < 768px) {
  .relevant__item-button {
    padding: 16px;
    font-size: 16px;
  }
}
