/* --------Стили для общей страницы списка статей */
/* Мир до изобретения scss*/
.block-articles {
    display: flex;
    row-gap: 30px;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
    padding: 0 5px 15px 5px;
}
@media (max-width: 549px) {
    .block-articles {
        width: unset;
        align-items: unset;
    }
}
.articles-title {
    text-align: center;
    margin-bottom: 30px;
}

.articles-link-page {
    max-width: 405px;
}

.rubric-article {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.rubric-article__img {
    position: relative;
    min-width: 250px;
    width: 404px;
    height: calc(175px + (226 - 175) * ((100vw - 320px) / (1920 - 320)));
}

.rubric-article__img-date {
    text-align: center;
    height: 47px;
    width: 47px;
    display: flex;
    background-color: #FFFFFF;
    justify-content: center;
    align-items: center;
    border: 2px solid #004475;
    color: #004475;
    font-size: 13px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    left: -10px;
    transition-duration: 0.2s;
}

.rubric-article__img-date:hover {
    transition-duration: 0.2s;
    color: #FFFFFF;
    background-color: #004475;
}


@media (max-width: 549px) {
    .rubric-article {
        flex-wrap: wrap;
    }

    .rubric-article__img {
        min-width: 100%;
    }
}

.rubric-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rubric-article__text {
    max-width: 606px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.rubric-article__text-title {
    text-align: center;
    font-weight: 600;
    color: #555555;
    font-size: 15px;
}

.rubric-article__text-description {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
}

.rubric-divider {
    background-color: #70c9eb;
    height: 3px;
    width: 30px;
    text-align: center;
    margin: 0;
    opacity: 1;
}

/* ------------Стили для самих страниц статей------------------------------------ */


.rubrik {
    background-color: linear-gradient(0deg, #FFFFFF, #FFFFFF), #F7F7F9;
    padding: 0 40px;
}
@media(max-width: 576px) {
    .rubrik {
        padding: 0 15px;
    }
}

.rubrik-container {
    max-width: 1650px;
    margin: 0 auto;
}

.mobile-only{
    display: none;
}
.desktop-only{
    display: block;
}

@media (max-width: 768px) {
    .mobile-only{
        display: block;
    }
    .desktop-only{
        display: none;
    }
}

@media (max-width: 1760px) {
    .rubrik-container-adaptive {
        max-width: 1199px;
        padding: 0 15px;
    }
}

@media (max-width: 1199px) {
    .rubrik-container-adaptive {
        max-width: 870px;
    }
}

@media (max-width: 991px) {
    .rubrik-container-adaptive {
        max-width: 670px;
    }
}

@media (max-width: 767px) {
    .rubrik-container-adaptive {
        max-width: 470px;
    }
}

@media (max-width: 380px) {
    .rubrik-container-adaptive {
        padding: 0;
    }
}

.rubrik-breadcrumb {
    display: flex;
    padding-top: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rubrik li {
    list-style-type: none;
}

.rubrik-breadcrumb li.separator {
    padding: 0 20px;
}

.rubrik-breadcrumb li:first-child a {
    color: rgb(89, 99, 108);
}

.rubrik-breadcrumb li:not(:first-child) {
    color: rgb(135, 138, 141);
}

/* Контентная часть */

.rubrik-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
}

/* Левая контентная часть */

.rubrik-content__basic {
    max-width: 1113px;

    .rubrik-date-wrapper{
        display: flex;
        gap: 10px;
        .rubrik-date{
            background-color: #fff;
            border: 1px solid #D9DDE8;
            border-radius: 30px;
            padding: 6px 16px;

            font-size: 16px;
            @media screen and (max-width: 768px) {
                font-size: 10px;
            }
        }
    }
}

@media (max-width: 1760px) {
    .rubrik-content__basic {
        max-width: 800px;
    }
}

.rubrik-content__basic-title {
    font-size: calc(25px + (50 - 25) * ((100vw - 320px) / (1920 - 320)));
    font-family: 'Century Gothic';
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #303943;

    margin-bottom: 20px;
}

.rubrik-font-size-18 {
    font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
}

.rubrik-font-size-24 {
    font-size: calc(18px + (24 - 18) * ((100vw - 320px) / (1920 - 320)));
}

.rubrik-text-weight-700 {
    font-weight: 700;
}

.rubrik-font-size-30 {
    font-size: calc(23px + (30 - 23) * ((100vw - 320px) / (1920 - 320)));
}

@media (min-width: 1920px) {
    .rubrik-content__basic-title {
        font-size: 50px;
    }

    .rubrik-font-size-18 {
        font-size: 18px;
    }

    .rubrik-font-size-30 {
        font-size: 30px;
    }

    .rubrik-font-size-24 {
        font-size: 24px;
    }


    .rubric-article__img {
        height: 226px;
    }
}

.rubrik-content__basic-social {
    display: flex;
    gap: 7px;
    height: 40px;
    margin-bottom: 20px;
}

.rubrik-content__text p {
    font-family: 'Century Gothic';
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    color: #303943;
}

.rubrik-content__text .timer{
    padding-bottom: 1.3em;
}
.rubrik-content__text ul,ol {
    padding-left: 20px;
}

.rubrik-content__text ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.rubrik-content__basic-img {
    width: 100%;

    margin-bottom: 30px;
}

.rubrik-content__basic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rubrik-content__basic-first-list {
    margin-bottom: 40px;
}

.rubrik-sub-title {
    font-family: 'Century Gothic';
    font-style: normal;
    font-weight: 700;
    line-height: 135%;
    color: #303943;
    margin-bottom: 10px;
}

.rubrik-slider {
    border-bottom: none !important;
    background: none !important;
    padding-bottom: 40px !important;
    margin-bottom: 0;
}

.rubrik-slider img {
    border-radius: 5px;
}

.gray-line {
    width: 100%;
    height: 2px;
    color: #D9DDE8;
    opacity: 1;
}

.rubrik-content__basic-img-small {
    display: flex;
    column-gap: 9.23px;
    row-gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.rubrik-content__basic-img-small div {
    width: 100%;
    max-width: 365px;
    height: 200px;
    border-radius: 10px;
}

.rubrik-content__basic-img-small img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .rubrik-content__basic-img-small {
        flex-wrap: wrap;
    }

}


/* Правая часть Статьи */
.rubrik-content__news {
    max-width: 405px;
    position: relative;
    .rubric-navigation {
        position: sticky;
        top: 25px;
        p {
            color: #303943;
            font-size: 24px;
            font-weight: 700;
            margin: 0;
        }
        #ez-toc-container{
            margin-top: 20px;
            border-radius: 20px;
            padding: 30px;
            .ez-toc-list{
                display: flex;
                flex-direction: column;
                gap: 1em;
                .ez-toc-link{
                    color: #303943; 
                    font-size: 16px;
                    font-weight: 400;
                }
            }
        }
    }
}

@media (max-width: 1460px) {
    .rubrik-content__news-container-article {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .rubrik-content__news {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .rubrik-content__basic {
        max-width: 100%;
    }

    .rubrik-content {
        flex-direction: column;
    }
}
.rubrik-author__wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.rubrik-author__img {
    width: 140px;
    height: 140px;
}
.rubrik-author__text {
    max-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    span{
        display: block;
        color: rgb(135, 138, 141);
    }
    p{
        margin: 0;
        &:first-child{
            margin-bottom: 10px;
        }
    }
}
.rubrik-author__name {
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 10px;
}
.rubrik-author-link{
    margin-bottom: 10px;
    span{
        display: block;
        color: rgb(135, 138, 141);
    }
    a{
        display: block;
        color: inherit;
        transition: .5s all;
    }
    a:hover{
        color: #1598f6;
    }
}
.rubrik-author-links{
    p{
        margin-bottom: 10px;
    }
}
.rubrik-content__news-container-article {
    width: 100%;
}

.rubrik-content__news-cart {
    margin-bottom: 40px;
}

.rubrik-content__news-title {
    margin-bottom: 40px;
    color: #303943;
    line-height: 135%;
}

.news-cart-date {
    font-family: 'Century Gothic';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 135%;
    color: #303943;
}

.news-cart-date+p {
    font-family: 'Century Gothic';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 135%;
    color: #303943;
}

.news-cart-img {
    width: 100%;
    max-width: 405px;
    height: 179px;
    margin-bottom: 10px;
}

.news-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#map, #map-new {
    width: 850px;
    height: 496px;
    padding: 0;
    margin: 0;
}
.map_new{
    width: 100% !important;
}
.map_new > ymaps{
    border-radius: 20px;
    overflow: hidden;
}
.slider-count-rubric {
    display: flex;
    left: 68px !important;
}
.rubrik-banner{
    margin: 10px 0;
    background-color: #a8d1f0;
    border-radius: 10px;
    padding: 20px;
    h3{
        color: white;
        font-size: 35px;
        display: block;
        margin-bottom: 0;
    }
    .rubrik-banner-content{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        span{
            font-size: 25px;
            width: 100%;
            word-wrap: break-word;
        }
        a{
            background-color: white;
            width: fit-content;
            padding: 5px 10px;
            border-radius: 10px;
            font-size: 20px;
            margin: 0;
            height: fit-content;
            color: black;
            transition: 1s all;
            text-align: center;
            &:hover{
                background-color: #fcfcfc;
                box-shadow: 0 0 8px 1px #fcfcfc;
            }
        }
        .controls {
            display: flex;
            gap: 10px;
        }
    }
    @media (max-width: 600px){
        h3{
            line-height: normal;
            margin-bottom: 10px;
        }
        .rubrik-banner-content{
            flex-direction: column;
            align-items: start;
        }
    }

    &.gray {
        background-color: #e7eaef;
    }
}
/* TODO: удалить старые стили */
.rubrik-content__text{
    margin-bottom: 40px;
    h1,h2,h3,p,li{
        font-family: 'Century Gothic';
        font-style: normal;
        line-height: 135%; 
        color: #303943;        
    }   
    li{
        list-style-type: decimal;
    }   
    p, li{

        font-weight: 400;
        font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
    }
    a {
        font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)));
    }
    h2,h3{
        font-weight: 700;
        margin-bottom: 10px;
    }
    h2{
        font-size: calc(23px + (30 - 23) * ((100vw - 320px) / (1920 - 320)));
    }
    @media (min-width: 1920px) {
        p,li,a{
            font-size: 18px;
        }
        h2{
            font-size: 30px;
        }
        h3{
            font-size: 24px;
        }
    }
    iframe{
        aspect-ratio: 16/9;
        width: 100%;
    }
}
/* Стиль для popup */

.rubric-popup{
    position: fixed;
    top: calc(30% - 70px );
    right: 40px;
    z-index: 10;
    height: 140px;
    text-align: right;
    .close{
        margin: 0;
        padding: 0;
    }
    .rubric-popup__container{
        text-align: center;
        background-color: #a8d1f0;
        border-radius: 10px;
        padding: 30px;
        .title{
            font-weight: 700;
            font-size: 16px;
        }
        a{
            background-color: white;
            width: fit-content;
            padding: 5px 10px;
            border-radius: 10px;
            font-size: 20px;
            margin: 0;
            height: fit-content;
            color: black;
            transition: 1s all;
            text-align: center;
            &:hover{
                background-color: #fcfcfc;
                box-shadow: 0 0 8px 1px #fcfcfc;
            }
        }                
    }
    @media (max-width: 800px) {
        top: 40%;
        width: 250px;
        height: unset;
        left: calc(50% - 125px);
    }
    @media (min-width: 1920px) {
        right: 10vh;
        width: 300px;
        p{
            font-size: 20px !important;
        }
    }
}

.arcticle-slider{
    .arcticle-slide{
        padding: 0 5px;
    }
    iframe{
        aspect-ratio: 122 / 238;
        margin: 10px 0;
        border-radius: 20px;
    }
    @media (max-width:800px) {
        iframe{
            width: 100%;
        }
    }
}
.js-carts-slider .slide {
    padding: 0 5px;
}
.journal-wrapper{
    background-color: #F7F7F9 !important;
}
.article_link__container{
    display: flex;
    margin: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
    p{
        font-size: 18px;
    }
   .article_link{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        transition: .5s all;
        color: inherit;
        padding: 10px;
        background-color: white;
        gap: 5px;
        cursor: pointer;
        border-radius: 20px;
        width: 230px;
        height: 230px;
        p{

            text-align: center;
            &.main{
                font-weight: bold;
                height: 2.5em;
            }
        }
        &:hover{
            color: inherit;
            box-shadow: 0 0 10px 1px #30394380;
        }
        &:active{
            box-shadow: 0 0 10px 1px #303943cd;
        }
   }

   @media (max-width: 800px) {
    flex-wrap: unset;
    overflow: scroll;
    .article_link{
        min-width: 230px;
    }
   }
}
.arcticle_banner-slider{
    margin: 20px 0;
}
.stati-title{
    font-size: 45px !important;
    @media (max-width: 800px) {
        font-size: 30px !important;
    }
}
.article_content__container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(auto-fill, 440px);
    grid-auto-rows: 440px;
    gap: 20px;
    margin-top: 100px;
    .arcticle_item{
        background-color: #fff;
        border-radius: 20px;
        padding: 20px;
        color: inherit;
        overflow: hidden;
        text-decoration: none;
        .arcticle_item__text{
            overflow: hidden;         
            height: 100%;
            .arcticle_item__date{
                margin-bottom: 5px;
            }
            .arcticle_item__category{
                border: 1px solid #D9DDE8;
                border-radius: 30px;
                padding: 5px 15px;
                width: fit-content;
                margin-bottom: 5px;
            }
            .arcticle_item__title{
                font-weight: bold;
                font-size: 20px;
                line-height: 25px;
                @supports (-webkit-line-clamp: 3) and (display: -webkit-inline-box){
                    -webkit-line-clamp: 3;
                    display: -webkit-inline-box;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                }
                @media (min-width: 1600px) {
                    font-size: 24px;
                    line-height: 32px;
                }
            }
            .arcticle_item__content{
                font-size: 18px;
                line-height: 24px;
                @media (max-width: 1600px) {
                    font-size: 16px;
                }
            }
        }
        .arcticle_item__img{
            img{
                object-fit: cover;
                border-radius: 20px;
                height: 100%;
                width: 100%;
            }
            @media (max-width: 1440px) {
                display: flex;
            }
        }
        &.image{
            grid-column-end: span 2;
            gap: 5px;
            display: flex;
            .arcticle_item__text{
                flex: 1 1 0px;
            }
            .arcticle_item__img{
                flex: 1 1 0px;
            }
        }
        &:hover{
            color: inherit;
            box-shadow: 0 0 10px 1px #30394380;
        }
        &:active{
            box-shadow: 0 0 10px 1px #303943cd;
        }
        a{
            color: inherit;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 5px;
            &:hover{
                color: inherit;
            }
        }
    }
    @media (max-width: 1100px ) and (min-width: 800px){
        grid-template-columns: 1fr 1fr;
    }
    @media (max-width: 800px) {
        grid-template-columns: 1fr;
    }
    @media (min-width: 110px) and (max-width: 1600px) {
        grid-template-rows: repeat(auto-fill, 320px);
        grid-auto-rows: 320px;
        &.image{
            .arcticle_item__img{
                flex: unset;
                
            }
        }
    }
    @media (max-width: 1100px) {
        grid-template-rows: unset;
        grid-auto-rows: unset;
        .arcticle_item{
            &.image{
                flex-direction: column;
                grid-column-end: unset;
                div{
                    flex-basis: unset !important;                    
                    flex: unset !important;
                }
            }

        }
    }
}
.promo_content__container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    a{
        text-decoration: none;
    }
    .promo_item{
        h3{
            -webkit-line-clamp: unset !important;
        }
    }
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width: 768px) {
        grid-template-columns: repeat(1, 1fr);
    }
}
.article_content__nav{
    margin-bottom: 50px;
    .pagination{
        justify-content: center;
    }
    .page, .page-numbers{
        border-radius: 10px;
        padding: 16px;
        background-color: #fff;
        height: 54px;
        width: 54px;
        display: inline-block;
        text-align: center;
    }
    .current{
        background-color: #0586E2;
        color: white;
    }
    a{
        color: inherit;
        text-decoration: none;
        &:hover{
            color: inherit;
            box-shadow: 0 0 10px 1px #30394380;
        }
        &:active{
            box-shadow: 0 0 10px 1px #303943cd;
        }
    }
}
.article_mailing__wrapper{
    text-align: center;
    margin: 70px 0;
    .new_form{
        width: fit-content;
        text-align: left;
        margin: 0 auto;
        .last_col{
            display: flex;
            align-items: end;
            @media (max-width: 800px) {
                margin-top: 10px;
                justify-content: center;
            }
        }
        .last_row{
            margin-top: 30px;
        }
    }
}

.wpcf7-acceptance{
    border: 0 !important;
    input{
        width: auto !important;
        height: auto !important;
    }
    span{
        color: inherit !important;
    }
}

.promo_item{
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    color: inherit;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0px 5px 10px 0px #59636C0D;
    box-shadow: 0px 15px 30px 0px #59636C0D;
    .promo_item__img{
        img{
            width: 100%;
        }
    }
    .promo_item__text{
        margin-top: 10px;
        overflow: hidden;         
        height: 100%;
        color: #303943;
        h3{
            font-weight: bold;
            color: inherit;
            font-size: 20px;
            line-height: 25px;
            @supports (-webkit-line-clamp: 3) and (display: -webkit-inline-box){
                -webkit-line-clamp: 3;
                display: -webkit-inline-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            @media (min-width: 1600px) {
                font-size: 24px;
                line-height: 32px;
            }
            @media (max-width: 768px) {
            }
        }
        a{
            color: inherit;
            font-size: inherit;
        }
        p{
            font-size: 18px;
            line-height: 24px;
            @media (max-width: 1600px) {
                font-size: 16px;
            }
        }
    }
    &:hover{
        color: inherit;
        box-shadow: 0 0 10px 1px #30394380;
    }
    &:active{
        box-shadow: 0 0 10px 1px #303943cd;
    }
}
.js-new-promo-slider{
    .promo_item{
        height: 650px;
        @media (max-width: 768px) {
            height: 590px;
        }
    }
}
.arcticle__card_wrapper{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;    
}