@charset "UTF-8";

main.single > .ttl_wrap, 
main.archive > .ttl_wrap{
    padding: 1px 0 143px;
}

/* =========================
    archive
  ========================= */
main.archive section#news{
    margin-bottom: 66px;
}

section#topics{
    margin-bottom: 110px;
}

#topics .topics_wrap {
    margin-bottom: 6.5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 58px 26px;
}

.topics_wrap{
    width: 986px;
    margin: 78px auto;
    display: grid;
    gap: 107px 67px;
    grid-template-columns: 1fr 1fr 1fr;
}

article.news__box .img_block {
    margin-bottom: 20px;
    width: 286px;
    height: 286px;
    background: #ececfb;
}
article.news__box .img_block img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

article.news__box .data_block{
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
article.news__box .data_block time{
    margin-right: 18px;
    font-family: var(--commons);
    font-weight: normal;
    font-size: var(--font18);
    line-height: 1;
}
article.news__box .data_block ul.post-categories li a{
    padding: 1px 6px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    background: #171d35;
    color: #fff;
    border-radius: 3px;
}

article.news__box h2{
    font-size: var(--font18);
}

.pagenation{
    width: 950px;
    margin: 0 auto;
}

.nav-links{
    display: flex;
    align-items: center;
}

.nav-links a:hover{
    opacity: 0.5;
}

ul.page-numbers {
    display: flex;
    align-items: center;
}

ul.page-numbers li{
}


ul.page-numbers .page-numbers{
    line-height: 1;
    padding: 0 5px;
    font-family: var(--commons);
    border-right: 1px solid;
}

.nav-links .prev.page-numbers{
    margin-right: 5px;
    display: flex;
    align-items: anchor-center;
    border-right: none;
}

.nav-links .next.page-numbers{
    margin-left: 5px;
    border-right: none;

}

a.prev.page-numbers,
a.next.page-numbers,
span.prev.page-numbers,
span.next.page-numbers{
    background: url(../img/news/icon_pagenation.png)no-repeat;
    width: 60px;
    height: 48px;
    display: block;
    text-indent: -9999px;
}
a.next.page-numbers,
span.next.page-numbers{
    transform: rotate(180deg);
}
a.page-numbers,
span.page-numbers{ 
    font-size: var(--font16);
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}
ul.page-numbers span.page-numbers.current{
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    section#news{
        width: 96%;
        margin: 0 auto 20%;
    }

    section#news .topics_wrap{
        max-width: 986px;
        margin: 10% auto 6.5%;
        grid-template-columns: 1fr 1fr;
        gap: 14px 10px;
    }
    
    article.news__box .img_block{
        margin-bottom: 10px;
        width: 100%;
        height: 50%;
    }
    

    
}

/* =========================
    single
  ========================= */
main.single > .ttl_wrap{
    margin: 100px 0 43px;
}

main.single section#news{
    margin-bottom: 66px;
}

section#news .content_inner .data_block {
    width: 95%;
    max-width: 1140px;
    margin: 0 auto 54px;
    padding-bottom: 11px;
    padding-left: 11px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d8d8d9;
}
section#news .content_inner .data_block time.date{
    padding: 6px 10px;
    margin-left: 8px;
    font-family: var(--commons);
    font-size: var(--font20);
    font-weight: normal;
    line-height: 1;
    background: #171d35;
    color: #fff;
}

section#news .content_inner > h1{
    width: 95%;
    max-width: 1140px;
    margin: 0px auto 86px;
    padding-left: 28px;
    font-size: 31px;
}

section#news .content_inner > .img_block{
    max-width: 980px;
    margin: 0 auto 69px;
    display: flex;
    justify-content: center;
}

section#news .content_inner > .img_block img{
    object-fit: contain;
}

section#news .content_inner > .main_txt{
    max-width: 980px;
    margin: 0 auto;

}

section#news .content_inner > .main_txt h2{
    margin-top: 57px;
    margin-bottom: 4px;
    font-size: 31px;
    color: #000000;
    line-height: 1.82;
}

section#news .content_inner > .main_txt h3{
    margin-top: 57px;
    margin-bottom: 23px;
    padding-bottom: 2px;
    background: url(../img/news/news_ttl_line.png) repeat-x left bottom;
    font-size: 31px;
    color: #000000;
    line-height: 1.82;
}

section#news .content_inner > .main_txt p{
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.82;
}


section.topics .white-block__wrap .summary_block {
    margin: 70px 0 70px;
    padding: 6px 14px;
    position: relative;
    &::before{
        content: '';
        width: 103%;
        height: 100%;
        display: block;
        border: 3px solid #000;
        border-radius: 10px;
        margin: auto;
        position: absolute;
        left: -50%;
        right: -50%;
        top: 0;
    }
}

section.topics .white-block__wrap .summary_block h2{
    margin: 0 0 10px;
}

.topics_link_block{
    width: 95%;
    max-width: 1110px;
    margin-top: 71px;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.topics_btn.prev a,
.topics_btn.next a{
    display: flex;
    align-items: center;
    font-size: 31px;
    font-family: var(--commons);
    font-weight: 600;
}

.topics_btn.prev a{
    &::before{
        content: '';
        width: 60px;
        height: 48px;
        background: url(../img/news/icon_topics.png)no-repeat;
        background-size: 100%;
        display: inline-block;
        margin-right: 10px;
    }
}

.topics_btn.next a{
    &::after{
        content: '';
        width: 60px;
        height: 48px;
        background: url(../img/news/icon_topics.png)no-repeat;
        background-size: 100%;
        display: inline-block;
        transform: rotate(180deg);
        margin-left: 10px;
    }
}


.topics_link_block .back_link{
    margin: 0 7px;
}
.topics_link_block .back_link a{
    font-size: 52px;
    font-family: aktiv-grotesk, sans-serif;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}


@media screen and (max-width: 768px) {
    main.single > .ttl_wrap, 
    main.archive > .ttl_wrap{
        margin: 60px 0 10px;
        padding: 1px 0 23px;
    }

    section#news .content_inner .data_block{
        width: 96%;
        margin: 0 auto 14px;
    }

    section#news .content_inner > h1{
        margin: 0px auto 26px;
        padding-left: 0;
        font-size: 22px;
    }

    section#news .content_inner > .img_block{
        width: 96%;
    }

    .topics_btn.prev a, .topics_btn.next a{
            font-size: 22px;
    }
    
}