:root {
  --primary-red: #a42424;
}
#support-box {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}
#news-page {
  width: 100vw;
  min-height: 100vh;
  display: none;
}
@supports (display: grid) {
  #support-box {display: none;}
  #news-page {display: grid;}
}

@media screen and (min-width: 1100px) {
  #news-page {
    grid-template-areas:
      "... ... ... ... ..."
      "... ttl ttl ttl ..."
      "... img img hot ..."
      "... new new new ..."
      "... fut fut fut ..."
      "... ... ... ... ..."
    ;
    /*ttl - title, img - to gallery, hot - hot keys, new - news list, fut - footer */
    grid-template-rows: 1.5fr 4rem 12rem 61rem 2rem 1fr;
    grid-template-columns: 1fr repeat(3, 34rem) 1fr;
    grid-gap: 1rem;
  }
  #hot-keys {
    display: flex;
    flex-direction: column;
  }
  #news-place {
    width: 104rem; height: 51rem;
    overflow: hidden scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  #news-place::-webkit-scrollbar {width: 0;}
  article {
    width: 104rem; min-height: 36rem;
    scroll-snap-align: start;
  }
  .article-head {
    font-size: 2.4rem;
    font-weight: 800;
    padding: 0 10rem 2rem 10rem;
  }
  .bg-article {padding: 3rem 10rem 2rem 10rem;}
  .article-text {
    font-size: 1.6rem;
    padding: 0 10rem 4rem 10rem;
  }
  .q-article {padding: 0 10rem 0.1rem 10rem;}
  .article-question {margin-left: 10rem;}
  #back-button {display: none;}
}
@media screen and (max-width: 1099px) {
  #news-page {
    grid-template-areas:
      "... ... ..."
      "... ttl ..."
      "... img ..."
      "... new ..."
      "... fly ..."
      "... fut ..."
      "... ... ..."
    ;
    /*ttl - title, img - to gallery, new - news list, fly - back to fly, fut - footer */
    grid-template-rows: 1.5rem 4rem 13rem 1fr 5rem 2rem 0;
    grid-template-columns: 1fr minmax(auto, 55rem) 1fr;
    grid-gap: 1.5rem;
  }
  #hot-keys {display: none;}
  .article-head {
    font-size: 2.4rem;
    font-weight: 800;
    padding: 0 4rem 2rem 4rem;
  }
  .bg-article {padding: 3rem 4rem 2rem 4rem;}
  .article-text {
    font-size: 1.6rem;
    padding: 0 4rem 4rem 4rem;
  }
  .q-article {padding: 0 4rem 0.1rem 4rem;}
  .article-question {margin-left: 4rem;}
  #back-button {display: flex;}
}

#news-block, #to-gallery, #hot-keys, #back-button {
  background-color: #1f2740; border-radius: 1.5rem; z-index: 5;
}
#to-gallery, article {
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
#to-gallery {
  grid-area: img;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.5s, transform 0.5s;
  background-image:  -webkit-linear-gradient(top, rgba(11, 14, 23, 0.6), var(--primary-blue)),
  url(/images/jpg-small/im1.jpg);
}
#to-gallery:hover, #to-gallery:focus {
  background-image: -webkit-linear-gradient(top, rgba(21, 35, 79, 0.8), var(--primary-blue)),
  url(/images/jpg-small/im1.jpg);
}
#back-button:hover, #back-button:focus {box-shadow: 0 0 1.7rem #0b0e17;}
#to-gallery:focus {
  transform: scale(0.975);
}
#news-block {
  grid-area: new;
  background-color: var(--primary-red);
  transition: filter 0.5s;
  z-index: 4;
}
#news-place:focus {border: 0;}
.article-question {
  padding: 0.8rem 1.8rem;
  background-color: #1f274099;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.5s, box-shadow 0.5s;
  font-size: 1.6em;
  line-height: 4;
}
.article-question:hover, .article-question:focus {
  outline: none; background-color: #1f2740; box-shadow: 0 0 1.5rem #0b0e17;
}
.article-question:focus {border: azure solid 0.3rem;}
#release-notes {
  background-image: -webkit-linear-gradient(top, var(--primary-blue), rgba(21, 35, 79, 0.75) 45%, var(--primary-red)),
  url(/images/jpg-small/im7.jpg);
}
#september {scroll-margin-top: 3rem;}
#first-autumn {
  background-image: -webkit-linear-gradient(top, var(--primary-blue), rgba(21, 35, 79, 0.75) 35%, var(--primary-red)),
  url(/images/autumn.jpg);
}
