@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&display=swap');

body {
    position: relative;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FFFF;
    font-family: 'Open Sans', sans-serif;
}

a{
    text-decoration: none;
}

.container{
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
}

main {
    padding-left: 15px;
    padding-right: 15px;
}

.image_archive{
    max-width: 1260px;
    width: 100%;
    max-height: 100%;
    min-height: 203px;
    object-fit: cover;
}

.content {
    max-width: 1260px;
    margin: 0 auto;
}

.title_archive{
    margin-top: 30px;
    font-size: 40px;
    line-height: 54px;
    color: #000000;
}

select {
    width: 120px;
    background:transparent;
    border:0;
    position: relative

}

.month_opt{
    font-weight: bold;
    font-size: 18px;
    line-height: 175.9%;
    color: #2B4D66;
}

.month_select{
    width: 100%;
    max-width: 100px;
    font-weight: bold;
    font-size: 18px;
    line-height: 175.9%;
    color: #2B4D66;
    background: url("/img/Polygon 28.png") no-repeat right center;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
}
.years_select{
    width: 100%;
    max-width: 100px;
    margin-left: 50px;
    font-weight: bold;
    font-size: 18px;
    line-height: 175.9%;
    color: #2B4D66;
    background: url("/img/Polygon 28.png") no-repeat right center;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;/* Chrome */
    -moz-appearance: none;/* Firefox */
    appearance: none;/* убираем дефолнтные стрелочки */
}

.main__grid-wrap{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-pack: distribute;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 0;
}

.main__grid-item {
    width: calc(50% - 10px);
    height: 300px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 29px;
}

.grid-item__link {
    display: block;
    position: relative;
    text-decoration: none;
}

.grid-item__link img {
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%;
}

.grid-item__text {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 0 16px 0 25px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 25px;
    line-height: 30px;
    color: #ffffff;
}

.main__banner {
    margin: 19px 0 75px 0;
    width: 100%;
}

.main__banner img {
    width: 100%;
    height: 100%;
    max-height: 165px;
}

.banners_mob{
    background: #D7E7F6;
    padding: 100px 50px;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    color: #81919D;
}

.pag-number{
    width: 33px;
}
.pag-prev,.pag-next{

padding: 0 15px;
}
.grid-item__text{
    padding-bottom: 20px ;
}

.pag{
    display: flex;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}
.pag-prev,.pag-next,.pag-number{
margin: 0 10px;
    font-family: Circe;
    font-style: normal;
    cursor: pointer;
    font-weight: normal;
    font-size: 16px;
    /* identical to box height */

    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #BAC5CE;border-radius: 100px;


    color: #81919D;
    height: 33px;

}

@media (min-width: 1261px) {
    select,
    .banner_news_mobile{
        display: none;
    }
}
.main__grid-item a{
    opacity: 1!important;
    height: 100%;

}
.main__grid-item a img{
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: all 0.6s ease;
    filter:grayscale(1);
}

.main__grid-item a:hover img{
    filter:grayscale(0);
}


@media (min-width: 993px) and (max-width: 1260px) {
    select,
    .banner_news_mobile{
        display: none;
    }
    .title_archive {
        font-size: 30px;
    }
    .main__grid-wrap {
        padding-top: 80px;
    }
    .main__grid-item {
        width: 50%;
        height: auto;
        padding: 0 10px;
        margin-bottom: 29px;
    }

}

@media (min-width: 768px) and (max-width: 992px) {
    select,
    .banner_news_mobile{
        display: none;
    }
    .main__grid-item {
        width: 50%;
        height: auto;
        padding: 0 10px;
        margin-bottom: 29px;
    }

    .grid-item__text {
        font-size: 20px;
    }
    .main__grid-wrap {
        padding-top: 50px;
    }
    .title_archive {
        font-size: 30px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    select{
        display: none;
    }
    .title_archive {
        font-size: 20px;
        text-align: center;
    }
    .main__grid-wrap {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
        width: -webkit-max-content;
        width: -moz-max-content;
        max-width: 560px;
        margin: 0 auto;
        padding-top: 50px;
    }
    .main__grid-item {
        width: 50%;
        margin-top: 5px;
        padding: 5px;
        height: 160px;
        margin-bottom: unset;
    }
    .grid-item__link img {
        width: 100%;
        max-width: 355px;
        height: 170px;
    }
    .grid-item__text {
        padding: 0 10px 8px 3px;
        font-size: 20px;
        line-height: 20px;
        max-width: 355px;
    }
    .main__banner {
        display: none;
    }
    .banner_news_mobile {
        margin: 0 auto;
        padding-top: 30px;
    }
}

@media (min-width: 425px) and (max-width: 575px) {
    .main__banner{
        display: none;
    }
    .title_archive {
        font-size: 30px;
        max-width: 370px;
        width: 100%;
        margin-bottom: 20px;
    }
    .content {
        max-width: 600px;
    }
    .main__grid-wrap {

        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .main__grid-item {
        width: 360px;
        height: 170px;
    }
    .banner_news_mobile {
        max-width: 355px;
        max-height: 200px;
        width: 100%;
        height: 100%;
        margin-bottom: 29px;
        margin-left: 10px;
    }
    .banners_mob {
        padding: 90px 0px;
    }
}

@media (max-width: 425px) {
    .main__banner{
        display: none;
    }
    .title_archive {
        font-size: 20px;
        max-width: 370px;
        width: 100%;
        margin-bottom: 20px;
        line-height: 175.9%;
        margin-left: 10px;
    }
    .content {
        max-width: 600px;
    }
    .main__grid-wrap {
        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 50px;
        margin: 0 auto;
    }
    .banner_news_mobile {
        max-width: 355px;
        max-height: 200px;
        width: 100%;
        height: 100%;
        margin-bottom: 40px;
        margin-left: 10px;
    }
    .title_archive {
        font-size: 20px;
        max-width: 250px;
    }
    .main__grid-item {
        max-width: 370px;
        width: 100%;
        max-height: 170px;
        height: 100%;
    }
    main {
        padding-left: 0;
        padding-right: 0;
    }
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    .image_archive {
        margin: 0 -5px;
    }
    .select-wrapper {
        margin-left: 10px;
    }
    .banners_mob {
        padding: 90px 0px;
    }
    .years_select {
        max-width: 90px;
        margin-left: 20px;
    }
}
