:root {
  --container-size: 10px;
}
@media (width >= 768px) {
  :root {
    --container-size: 20px;
  }
}
@media (width >= 1025px) {
  :root {
    --container-size: 6.25vw;
  }
}

.news {
  display: flex;
  flex-direction: column;
  padding: calc(min(18.6666666667vw, 100px) + 50px) var(--container-size) 60px;
}
@media screen and (width >= 768px) {
  .news {
    padding: 180px var(--container-size) 60px;
  }
}
@media screen and (width >= 1025px) {
  .news {
    padding: 10.4166666667vw var(--container-size) 3.125vw;
  }
}
.news__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media screen and (width >= 768px) {
  .news__top {
    gap: 40px;
  }
}
@media screen and (width >= 1025px) {
  .news__top {
    gap: 2.0833333333vw;
  }
}
.news__back {
  align-self: flex-start;
}
.news__title {
  font-family: "Gilroy", sans-serif;
  font-size: min(8.5333333333vw, 60px);
  font-weight: 500;
  line-height: 100%;
  color: #292825;
  letter-spacing: -0.05em;
}
@media screen and (width >= 768px) {
  .news__title {
    font-size: min(7.03125vw, 60px);
  }
}
@media screen and (width >= 1025px) {
  .news__title {
    font-size: max(3.125vw, 32px);
  }
}
.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 40px;
}
@media screen and (width >= 768px) {
  .news__grid {
    gap: 20px;
  }
}
@media screen and (width >= 1025px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.0416666667vw;
    margin-top: 3.125vw;
  }
}
.news__grid .news-card {
  padding: 30px;
}
@media screen and (width >= 768px) {
  .news__grid .news-card {
    width: 100%;
    height: 39.0625vw;
  }
}
@media screen and (width >= 1025px) {
  .news__grid .news-card {
    width: auto;
    height: 31.25vw;
    padding: 1.5625vw;
  }
}