*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.news .container{
    /*max-width: 1360px;*/
    width: 100%;
    padding: 0 68px;
}

.news{
    font-family: 'Gilroy', sans-serif;
    padding: 192px 0 50px 0;
}

.news_header h1{
    text-align: center;
    font-style: normal;
    font-weight: 800;
    font-size: 48px;
    line-height: 64px;
    letter-spacing: 0.02em;
    color: #000000;
    margin-bottom: 52px;
}


.news_select {
    max-width: 320px;
    padding: 0 24px 0 24px;
    height: 64px;
    width: 100%;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    position: relative;
    z-index: 5;
    display: none;
    border: 1px solid #0500FF; 
  }
  
  .select {
    margin: 0 auto 32px;
  }
  .select_header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
  }

  .select_arrow{
      padding-top: 7px;
  }

  .select_arrow-active img{
      transform: rotate(180deg);
  }

  .select_current {
    text-align: center;
    width: 95%;
    font-style: normal;
    font-weight: 800;
    font-size: 20px;
    line-height: 32px;
    color: #0500FF;
  }
  .select_body {
    position: absolute;
    z-index: 2;
    display: none;
    width: calc(100% + 2px);
    height: auto;
    top: 100%;
    left: -1px;
    border-top: none;
    background: #0500FF;
    padding: 20px 0 50px 0;
}
  .select_item {
    display: flex;
    align-items: center;
    height: 62px;
    background: #0500FF;
    cursor: pointer;
  }

  .select_item a {
    width: 100%;
    text-align: center;
    font-style: normal;
    font-weight: 800;
    font-size: 20px;
    line-height: 32px;
    color: #FFFFFF;
    transition: .5s;
    padding: 15px 0;
  }

  .select_item a:hover {
    color: #FF000D;
  }
  
  .is-active .select_body {
    display: flex;
      flex-flow: wrap;
  }
.is-active .select_body>div{
    width: 100%;
}

.news_nav{
    display: flex;
    margin-bottom: 56px;
}

.news_nav .link-active{
    color: #FF000D;
}

.news_nav a{
    text-decoration: none;
    padding: 0 32px;
    display: block;
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    color: #141414;
    transition: .5s;
}

.news_nav a:first-child{
    padding-left: 0;
}

.news_nav a:hover{
    color: #FF000D;
}

.news_cards{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-row-gap: 76px;
    grid-column-gap: 40px;
}

.card-hide{
    display: none;
}

.card-active{
    display: block !important;
}

.card_img{
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.card_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    height: 192px;
}

.card_content span, .card_content p{
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    color: #141414;
}

.card_content span{
    opacity: 0.5;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-family: Gilroy;
}

.card_content p{
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.news_all{
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.news_all div{
    width: 48px;
    height: 48px;
    border: 1px solid #0500FF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    color: #0500FF;
    margin: 0px 5px;
    font-weight: 800;
    transition: .5s;
    cursor: pointer;
    position: relative;
}

.news_all div.active{
    border: 1px solid rgba(0, 0, 0, 0.6);
    color: rgba(0, 0, 0, 0.6);
}
.news_all div.hide{
    display: none;
}

.news_all div.dots{
    margin-right: 70px;
}

.news_all div.dots::after{
   content: "...";
    position: absolute;
    right: -45px;
    bottom: 0;
    color: #0500FF;
    font-size: 16px;
    display: inline-block;
}



.news_all-butt{
    max-width: 320px;
    padding: 14px 24px 15px 24px;
    height: 64px;
    display: block;
    margin: 0 auto;
    border: 1px solid #0500FF;
    color: #0500FF;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    line-height: 32px;
    transition: .5s;
}

.news_all-butt:hover{
    color: #FF000D;
    border: 1px solid #FF000D;
}

.news_card:not(.card-visib) {
    display: none;
}


@media(max-width: 991px){
    .news_all div.dots::after{
        right: -20px;
    }
    .news .container{
        padding: 0 64px;
        max-width: 100%;
    }
    .news_all div.dots{
        margin-right: 20px !important;
    }

    .news{
        padding: 160px 0 0 0;
    }

    .news_header h1{
        margin-bottom: 32px;
        text-align: left;
        font-size: 52px;
        line-height: 68px;
    }

    .card_img img{
        height: 228px;
    }

    .news_cards {
        grid-template-columns: 1fr 1fr;
        grid-row-gap: 40px;
        grid-column-gap: 64px;
        margin-bottom: 44px;
    }

    .card_img {
        margin-bottom: 8px;
    }

    .card_content span, .card_content p{
        font-size: 20px;
        line-height: 28px;
    }

    .card_content span{
        margin-bottom: 4px;
    }

    .news_nav{
        display: none;
    }

    .news_select{
        display: block;
    }

     /* .news_cards-table > div.card-visib:not(:nth-of-type(1), :nth-of-type(2), :nth-of-type(3), :nth-of-type(4)) {
        display: none;
    } */

    /* .card-visib:not(:nth-of-type(2)) {
        display: none;
    } */

    /* .card-visib:nth-of-type(1) {
        display: none;
    } */

    /* .news_cards-table .news_card:not(.news_card:nth-child(1), .news_card:nth-child(2), .news_card:nth-child(3), .news_card:nth-child(4)) {
        display: none;
    } */

    .news_all{
        display: block;
    }
}

@media(max-width: 550px){
    .news_all div.dots{
        margin-right: 20px;
    }
    .news_all div:nth-child(1){
        margin-left: 0;
    }
    .news_all div:last-child{
        margin-right: 0;
    }
    .news_all div.dots::after{
        right: -20px;
    }
    .news .container{
        padding: 0 20px;
    }

    .news_all div{
        width: 40px;
        height: 40px;
    }

    .news{
        padding: 96px 0 0 0;
    }

    .news_header h1{
        margin-bottom: 16px;
        font-size: 40px;
        line-height: 44px;
    }

    .news_cards {
        grid-row-gap: 28px;
        grid-column-gap: 16px;
        margin-bottom: 28px;
    }

    .card_img {
        margin-bottom: 12px;
    }
    
    .card_img img{
        height: 120px;
    }

    .select_body{
        padding: 18px 0;
    }

    .select_item {
        height: 40px;
    }

    .news_select{
        height: 48px;
        padding: 0 20px 0 20px;
        max-width: 100%;
    }

    .select_item a{
        font-size: 16px;
        line-height: 24px;
        padding: 8px 0;
    }

    .select_current{
        font-size: 16px;
        line-height: 24px;
    }

    .select_arrow {
        padding: 0;
    }

    .select_arrow img{
        width: 12px;
        height: 8px;
    }

    .card_content span{
        font-size: 14px;
        line-height: 24px;
    }

    .card_content p{
        font-size: 14px;
        line-height: 20px;
    }

    .news_all{
        display: block;
    }

    .news_all-butt{
        font-size: 16px;
        line-height: 24px;
        height: 48px;
        padding: 10px 24px 9px 24px;
    }
}

 
