.container_all_news {
  display: flex;
  gap: 80px;
  flex-direction: column;
  padding-top: 140px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.black_logo_all_news{
  position: absolute;
  background: url("../resources/logo_red.svg");
  top: 241px;
  right: 10px;
  height: 208px;
  background-repeat: no-repeat;
  background-position: 50%;
}
.all_news_animation_square {
  background: url("../resources/animation_square.svg");
  background-repeat: no-repeat;
  position: absolute;
  background-size: cover; /* Растягивание по ширине и высоте */
  top: 400px;
  left: -70%;
  height: 925px;
  z-index: -1;
  transform: rotate(30deg);
  transition: transform 2s, left 2s;
}
.container_all_news.show .all_news_animation_square {
  left: -20%;
  transform: rotate(0deg);
}
.big_news_all_news {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px;
  height: 671px;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.58) 30.18%,
      #000 100%
    ),
    url("../resources/miyazaki.png"), lightgray 50% / cover no-repeat;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  width: 66%;
}
.text_news_all_news {
  color: var(--white, #fff);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.box_all_news{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 52px;
}
.small_news_all_news{
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.box_text_small_news_all_news{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.big_news_all_news:hover .news_articles_text{
  color: #d8251d;
}
.img_small_news_all_news{
  height: 277px;
  object-fit: cover;
}
.margin_mall_news_all_news{
  margin-top: 170px;
}
.line-height_31px{
  line-height: 31px;
}
.small_news_all_news:hover .line-height_31px{
  color: #d8251d;
}

@media (max-width: 1399px) {
  .box_all_news{
    gap: 16px;
    row-gap: 52px;
  }
}
@media (max-width: 1199px) {
  .margin_mall_news_all_news{
    margin-top: 110px;
  }
}
@media (max-width: 991px) {
  .all_news_animation_square{
    opacity: 0;
  }
  .black_logo_all_news{
    position: absolute;
   
    top: 220px;
    right: 10px;
    height: 208px;
   
  }
  .big_news_all_news{
    width: 100%;
    gap: 16px;
    padding: 24px;
    height: 671px;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 30.18%, #000 100% ), url(../resources/bought_the_animation_rights.jpg), lightgray 50% / cover no-repeat;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    
  }
  .margin_mall_news_all_news{
    margin-top: 0px;
  }
  .small_news_all_news{
    width: 48%;
  }
}
@media (max-width: 767px) {
  .big_news_all_news{
    height: 242px;
    gap: 8px;
  }
  .black_logo_all_news{
    opacity: 0;
  }
  .line-height_31px{
    line-height: 23px
  }
  .text_news_all_news{
    font-size: 12px;
    line-height: normal;
  }
  .img_small_news_all_news{
    height: 120px;
  }
  .small_news_all_news{
    gap: 8px;
  }
  .box_text_small_news_all_news{
    gap: 8px;
  }
  .box_all_news{
    gap: 10px;
    row-gap: 20px;
  }
  .text_small_news_all_news{
    font-size: 12px;
    line-height: normal;
  }
  .container_all_news{
    gap: 24px;
  }
  .container_all_news{
    padding-top: 64px;
    padding-bottom: 32px;
  }
}