.top-news {
  width: 100%;
}

.top-news a {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  color: #fff;
}
.news-list a:hover {
  color: #444;
}
.top-news a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.0001) 50%, #000);
  pointer-events: none;
}

.top-news img {
  width: 100%;
}

.top-news .news-text {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1456px;
  padding: 14px;
}

.top-news .news-text h3 {
  font-size: 190%;
}

.top-news .news-text p {
  display: none;
}

.top-news time {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1456px;
  padding: 14px;
}

.news-page h1 {
  padding: 0 14px;
  /* background-color: #eee; */
  /* box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; */
}

.news-list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
}

.news-list li {
  width: 100%;
  margin: 32px 0 0;
  background-color: #fafafa;
  box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px,
    rgb(0 0 0 / 30%) 0px 1px 3px -1px;
}

.news-list .news-text {
  /* padding: 16px 24px; */
  padding: 14px;
}

.news-list .news-text h3 {
  /* word-break: break-word; */
  word-wrap: break-word;
  hyphens: auto;
}

.news-list time {
  display: block;
  margin: 0 14px 14px;
  text-align: right;
  font-size: 14px;
}

.next-news-btn.light-btn {
  margin: 32px 0;
}

@media screen and (min-width: 480px) {
  .news-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 14px;
  }
  .news-list li {
    position: relative;
    width: calc(50% - 7px);
    margin: 16px 0 0;
    border-radius: 8px;
  }
  .news-list a {
    position: relative;
    display: block;
    height: 100%;
  }
  .news-list img {
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
  .news-list p {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .news-list time {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin: 0;
  }
  .news-list li:nth-child(15n + 1) {
    width: 100%;
  }
  .news-list li:nth-child(15n + 1)::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background-image: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.0001) 20%,
      #000
    );
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.0001) 50%, #000);
    border-radius: 8px;
    pointer-events: none;
  }
  .news-list li:nth-child(15n + 1) a {
    border-radius: 8px;
  }
  .news-list li:nth-child(15n + 1) img {
    border-radius: 8px;
  }
  .news-list li:nth-child(15n + 1) .news-text {
    padding: 0;
    position: absolute;
    top: 32px;
    left: 24px;
    z-index: 1;
  }
  .news-list li:nth-child(15n + 1) h3 {
    font-size: 2.5rem;
    color: #fff;
    z-index: 1;
  }
  .news-list li:nth-child(15n + 1) p {
    margin: 0;
    color: #fff;
    z-index: 1;
  }
  .news-list li:nth-child(15n + 1) time {
    bottom: 24px;
    color: #fff;
    z-index: 1;
  }
}

@media screen and (min-width: 720px) {
  .top-news a {
    height: 400px;
  }
  .top-news img {
    position: relative;
    transform: translateY(-50%);
    top: 50%;
  }
  .top-news .news-text {
    padding: 24px;
  }
  .top-news .news-text p {
    display: block;
  }
  .top-news time {
    padding: 24px;
  }
}

@media screen and (min-width: 768px) {
  .news-list li:nth-child(15n + 1) a {
    height: 400px;
    overflow: hidden;
  }
  .news-list li:nth-child(15n + 1) img {
    position: absolute;
    bottom: -30%;
  }
}

@media screen and (min-width: 1024px) {
  .news-list {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    grid-gap: 24px;
    grid-auto-flow: dense;
    margin-top: 32px;
    padding: 0 24px;
  }
  .news-list li {
    width: 100%;
    margin: 0;
  }
  .news-list .news-text {
    padding: 16px 24px;
  }
  .news-list p {
    margin-bottom: 24px;
  }
  /* первая новость во всю строку ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 1) {
    grid-column: 1 / -1;
  }
  .news-list li:nth-child(15n + 1) a {
    height: 400px;
  }
  .news-list li:nth-child(15n + 1) img {
    bottom: -40%;
  }
  /* 3 новости в строке ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 2),
  .news-list li:nth-child(15n + 3),
  .news-list li:nth-child(15n + 4) {
    grid-column: span 10;
  }
  /* 5 новостей в строке ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 5),
  .news-list li:nth-child(15n + 6),
  .news-list li:nth-child(15n + 7),
  .news-list li:nth-child(15n + 8),
  .news-list li:nth-child(15n + 9) {
    grid-column: span 6;
  }
  .news-list li:nth-child(15n + 5) .news-text,
  .news-list li:nth-child(15n + 6) .news-text,
  .news-list li:nth-child(15n + 7) .news-text,
  .news-list li:nth-child(15n + 8) .news-text,
  .news-list li:nth-child(15n + 9) .news-text {
    padding: 16px;
  }
  .news-list li:nth-child(15n + 5) .news-text h3,
  .news-list li:nth-child(15n + 6) .news-text h3,
  .news-list li:nth-child(15n + 7) .news-text h3,
  .news-list li:nth-child(15n + 8) .news-text h3,
  .news-list li:nth-child(15n + 9) .news-text h3 {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .news-list li:nth-child(15n + 5) .news-text p,
  .news-list li:nth-child(15n + 6) .news-text p,
  .news-list li:nth-child(15n + 7) .news-text p,
  .news-list li:nth-child(15n + 8) .news-text p,
  .news-list li:nth-child(15n + 9) .news-text p {
    display: none;
  }
  .news-list li:nth-child(15n + 5) .news-text time,
  .news-list li:nth-child(15n + 6) .news-text time,
  .news-list li:nth-child(15n + 7) .news-text time,
  .news-list li:nth-child(15n + 8) .news-text time,
  .news-list li:nth-child(15n + 9) .news-text time {
    font-size: 14px;
  }
  /* 2 новости в строке ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 10),
  .news-list li:nth-child(15n + 11) {
    grid-column: span 15;
  }
  .news-list li:nth-child(15n + 10)::after,
  .news-list li:nth-child(15n + 11)::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background-image: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.0001) 20%,
      #000
    );
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.0001) 50%, #000);
    border-radius: 8px;
    pointer-events: none;
  }
  .news-list li:nth-child(15n + 10) img,
  .news-list li:nth-child(15n + 11) img {
    border-radius: 8px;
  }
  .news-list li:nth-child(15n + 10) .news-text,
  .news-list li:nth-child(15n + 11) .news-text {
    padding: 0;
  }
  .news-list li:nth-child(15n + 10) h3,
  .news-list li:nth-child(15n + 11) h3 {
    position: absolute;
    top: 32px;
    left: 24px;
    width: calc(100% - 48px);
    font-size: 1.9rem;
    color: #fff;
    z-index: 1;
  }
  .news-list li:nth-child(15n + 10) p,
  .news-list li:nth-child(15n + 11) p {
    visibility: hidden;
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 100%;
    margin: 0;
    color: #fff;
  }
  .news-list li:nth-child(15n + 10) time,
  .news-list li:nth-child(15n + 11) time {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: #fff;
    z-index: 1;
  }
  /* 1 текстовая новость в строке ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 12) {
    grid-column: 1 / -1;
    margin: 24px 0;
    border: 2px solid #777;
  }
  .news-list li:nth-child(15n + 12) a {
    display: flex;
    align-items: center;
    padding: 24px;
  }
  .news-list li:nth-child(15n + 12) .news-text {
    padding: 0 0 0 24px;
  }
  .news-list li:nth-child(15n + 12) h3 {
    font-size: 192%;
  }
  .news-list li:nth-child(15n + 12) img {
    height: 128px;
    width: auto;
    border-radius: 8px;
  }
  /* 3 новости в строке ---------------------------------------------------------------- */
  .news-list li:nth-child(15n + 13),
  .news-list li:nth-child(15n + 14),
  .news-list li:nth-child(15n + 15) {
    grid-column: span 10;
  }
}

@media screen and (min-width: 1200px) {
  .news-list li:nth-child(15n + 1) a {
    height: 500px;
  }
  .news-list li:nth-child(15n + 1) img {
    bottom: -30%;
  }
}

@media screen and (min-width: 1456px) {
  .news-list li:nth-child(15n + 1) img {
    bottom: -50%;
  }
}
