.news {
  margin-top: 100px;
  padding: 0 16px;
}

.news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.news__title {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 110%;
}

.news__all {
  box-sizing: border-box;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px 9px 12px;
  border-radius: 50px;
  color: inherit;
  text-decoration: none;
  background: #EFEFEF;
  white-space: nowrap;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
}

.news__all:hover {
  background: #E4E4E4;
}

.news__all:active {
  background: #D5D5D5;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 120%;
  color: #212325;
}

.news__date {
  margin-top: 8px;
  font-size: 12px;
  color: #212325;
}

@media (max-width: 900px) {
  .news {
    padding: 0 32px;
  }

  .news__header {
    flex-wrap: wrap;
    row-gap: 16px;
    margin-bottom: 32px;
  }

  .news__title {
    font-size: 28px;
    line-height: 110%;
  }

  .news__all {
    height: 67px;
    padding: 18px 30px;
    font-size: 28px;
    line-height: 110%;
  }

  .news__grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -32px;
    padding: 0 32px;
  }
  .news__grid::-webkit-scrollbar {
    display: none;
  }

  .news__card {
    box-sizing: border-box;
    flex: 0 0 488px;
    width: 488px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .news__image {
    width: 488px;
    height: 529px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .news__text {
    margin-top: 8px;
    line-height: 110%;
    font-size: 28px;
  }

  .news__date {
    margin-top: 8px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .news {
    padding: 0 20px;
  }

  .news__title {
    font-size: 20px;
  }

  .news__all {
    height: 44px;
    padding: 10px 18px;
    font-size: 16px;
  }

  .news__grid {
    margin: 0 -20px;
    padding: 0 20px;
  }

  .news__text {
    font-size: 16px;
  }

  .news__date {
    font-size: 14px;
  }
}
