/* Размер шрифта на разрешениях >  1600 px */

@media screen and (min-width: 1601px){
    /* Меню и главная */
    #menu nav ul li{
        font-size: 16px;
    }
    #home h1{
        font-size: 76px;
    }

    /* Главная новость */

    .description_main_news h4{
        /*font-size: 24px;*/
        font-size: 20px;
        line-height: 140%;
        margin-bottom: 25px;
    }

    .description_main_news p{
        font-size: 16px;
    }

    /* Публикации */

    #publications_news h2{
        /*font-size: 56px;*/
    }

    .content_body_news{
        font-size: 19px;
    }

    .system_link a{
        font-size: 16px;
    }

    .ads h3, .analytics h3, .calendar h3, .we_are_socials h3{
        font-size: 32px;
    }

    .title_item_an{
        font-size: 20px;
    }

    .body_item_an, .footer_item_an{
        font-size: 16px;
    }

    .short_desc_cal{
        font-size: 14px;
    }

    .long_desc_cal{
        font-size: 16px;
    }

    .body_was a, .body_was p{
        font-size: 16px;
    }

    .footer_was > a{
        font-size: 14px;
    }

    .we_are_socials > a{
        font-size: 16px;
    }

    /* Подвал */

    #logo_footer{
        font-size: 27px;
    }

    .menu_footer_item ul li{
        font-size: 16px;
    }

    .menu_footer_item ul li:first-child, #contacts_footer div h5{
        font-size: 20px;
    }

    #contacts_footer div p{
        font-size: 16px;
    }

    .container_bottom_footer{
        font-size: 20px;
    }

    /* Шаблоны страниц */

    .template > h1, .template > h2, .template_item_monastery .container h1, .description_monastery h2,
    .text_biography h2{
        font-size: 56px;
    }

    .description_monastery > h3, .description_monastery > h4{
        font-size: 40px;
    }

    .breadcrumbs a{
        font-size: 14px;
    }

    .title_monastery h3{
        font-size: 40px;
    }

    #pages a{
        font-size: 20px;
    }

    .info_content_item_news p{
        font-size: 16px;
    }

    .content_item_news h1{
        font-size: 35px;
    }

    .text_item_news{
        font-size: 20px;
    }

    .menu_clergy a{
        font-size: 21px;
    }

    #list_clergy a h4{
        font-size: 16px;
        /*font-size: 32px;*/
    }

    .home_item_clergy .top_template_home h1{
        font-size: 40px;
    }

    .text_biography p, .text_biography ul, .text_biography ol, .text_biography div{
        font-size: 20px;
    }

    .more_monastery .item_monastery .title_monastery h3{
        font-size: 24px!important;
    }
}


/* АДАПТИВ МЕНЮ И ГЛАВНОГО ЭКРАНА */

@media screen and (max-width: 1600px){
    .photo_clergy {
        height: 245px;
    }
}

@media screen and (max-width: 1400px){
    .container {
        width: 1100px;
    }

    .home__header-content {
        max-width: 1090px;
    }

    .description_main_news h4 {
        font-size: 18px;
        line-height: 140%;
        margin-bottom: 15px;
    }

    .description_main_news p {
        font-size: 12px;
        line-height: 14px;
    }

    .header__slider-image {
        max-height: 250px;
    }

    .header__right-slider-carousel .slick-track {
        height: 280px;
    }

    .home__header {
        min-height: 280px;
    }

    .header__left-big {
        font-size: 110px;
        padding-top: 70px;
    }

    .header__left-small {
        font-size: 18px;
        letter-spacing: 0.2px;
    }

}

@media screen and (max-width: 1310px){
    .container.template > #list_clergy {
        grid-template-columns: repeat(5, 1fr);
    }

    #list_clergy {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1100px){
    #list_clergy {
        grid-template-columns: repeat(4, 1fr);
    }
    .temples__content div#pages {
        grid-column: 1;
    }

    .temples__content {
        grid-gap: 15px;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 1024px){
    .content_item_news-sidebar {
        min-width: 290px;
    }
    #menu{
        display: none;
    }
    #top_socials form{
        display: none;
    }
    .change_menu{
        display: flex;
    }
    #logo a{
        left: 50%;
        transform: translate(-50%, 0);
        width: 80px;
    }
    #home{
        /*height: 450px;*/
        padding-top: 105px;
    }
}

@media screen and (max-width: 900px){
    .biography__content {
        max-width: 100%;
    }
    .monastery__content h1 {
        font-size: 30px;
    }
    .monastery__sidebar {
        margin-bottom: 60px;
    }
    .monastery__container {
        grid-template-columns: 1fr;
    }
    #home{
        height: 450px;
    }
    .center_hbg img{
        max-width: 130%;
        min-width: 125%;
    }

    .container.container__biography {
        padding-top: 0;
        flex-direction: column;
    }
    .biography__sidebar-content {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px){
    .biography__image {
        float: none;
        margin-bottom: 15px;
    }
    .temples__container {
        grid-template-columns: 50% 50%;
    }
    .temples__content {
        grid-template-columns: 1fr;
    }
    .header__right-slider-carousel .slick-track {
        height: unset;
    }
    .content_item_news {
        flex-direction: column;
    }
    .content_item_news-sidebar {
        margin-left: 0;
        margin-top: 30px;
    }
    #top_socials > p a{
        width: 20px;
        height: 20px;
    }
    .right_hbg img, .left_hbg img{
        max-width: 100%;
    }

    .news__title {
        grid-column: 1/2;
    }

    #main_news {
        grid-column: 1/2;
    }
}

@media screen and (max-width: 600px){
    .temples__container {
        grid-template-columns: 100%;
    }
    .temples__item {
        max-width: 270px;
        margin: 0 auto;
    }
    .temples__content {
        grid-template-columns: 1fr 1fr;
    }
    .temples__sidebar-button {
        display: block;
    }
    .temples__sidebar-content {
        display: none;
    }
    .page-template,
    .news-template {
        margin-top: 5px;
    }
    .news_page #list_news {
        margin-top: 0px;
    }
    .text_item_news iframe {
        width: 100%;
    }
    .text_item_news .alignleft,
    .text_item_news .alignright {
        float: none !important;
        margin: 10px auto 0 !important;
    }
    .biography__image {
        margin: 0 auto 15px;
    }
    #home{
        height: 355px;
    }
    #home h1 span{
        font-weight: normal;
        text-shadow: none;
    }
    .left_hbg, .right_hbg{
        max-width: 25%;
        background: url("../images/mobile_hbg.png") repeat;
    }
    .right_hbg img, .left_hbg img{
        max-width: 120%;
    }
    .center_hbg{
        max-width: 50%;
    }

    .left_hbg{
        clip-path: polygon(0 0, 65% 0, 100% 100%, 0% 100%);
    }

    .left_hbg:after{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%);
        left: 60%;
    }

    .right_hbg{
        clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .right_hbg:after{
        clip-path: polygon(0 0, 100% 0, 65% 100%, 0 100%);
        right: 60%;
    }

    .biography__content {
        flex-direction: column;
    }
}

/* АДАПТИВ ГЛАВНОЙ НОВОСТИ */

@media screen and (max-width: 1024px){
    #main_news{
        flex-direction: column;
        width: 600px;
        max-width: 100%;
        margin: 0 auto;
    }
    #main_news div{
        padding: 0;
        width: 100%;
        text-align: left;
        background: #fff;
    }

    .description_main_news p {
        display: none;
    }

    .description_main_news h4 {
        padding: 0px 22px;
        font-size: calc(16px + 3 * ((100vw - 320px) / (1600 - 320)));
        line-height: 140%;
    }
}

/* АДАПТИВ ПУБЛИКАЦИЙ И НОВОСТЕЙ */

@media screen and (max-width: 1024px){
    #content_news #list_news{
        width: 100%;
    }
    .widgets{
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .widgets > div{
        width: 49%;
        /*min-width: 280px;*/
        max-width: 100%;
    }

    .system_link{
        width: 100%!important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .system_link a{
        width: 35%;
        margin-top: 0;
    }

    .system_link a:first-child{
        margin-right: 15px;
    }
    .system_link a:first-child{
        margin-top: 0;
    }
}

@media screen and (max-width: 600px){
    .widgets > div{
        width: 100%;
    }
    .system_link{
        flex-direction: column;
    }
    .system_link a{
        width: 100%;
        margin-top: 20px;
    }
    .system_link a:first-child{
        margin-right: 0;
    }
}

@media screen and (max-width: 500px){
    #list_news{
        justify-content: center;
        flex-direction: column;
    }
    .item_news{
        width: 400px;
        margin: 30px auto 0;
        max-width: 100%;
    }
}

/* АДАПТИВ ПОДВАЛА */

@media screen and (max-width: 1024px){
    #footer{
        justify-content: center;
    }
    #logo_footer{
        width: 100%;
    }
    #menu_footer{
        width: 68%;
    }
    #contacts_footer{
        width: 32%;
    }
}

@media screen and (max-width: 768px){
    #menu_footer{
        width: 100%;
    }
    #contacts_footer{
        width: 100%;
    }
}

@media screen and (max-width: 600px){
    #menu_footer{
        padding: 25px 0 0;
    }
    #contacts_footer{
        padding: 25px 0;
    }
    .menu_footer_item{
        width: 100%;
    }
    .menu_footer_item ul{
        margin-top: 25px;
    }
    .container_bottom_footer{
        flex-direction: column;
        align-items: flex-start;
    }
    .container_bottom_footer p{
        margin-top: 15px;
    }
    .container_bottom_footer p:first-child{
        margin-top: 0;
    }
}

/* СТРАНИЦА С НОВОСТЯМИ */

@media screen and (max-width: 1024px) {
    .news_page #list_news .item_news, .template .item_news {
        /* max-width: 49%; */
    }
    .container.template > #list_clergy,
    #list_clergy{
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 0 10px;
    }

    .photo_clergy {
        height: 455px;
    }
}

@media screen and (max-width: 500px) {
    .temples__content {
        grid-template-columns: 1fr;
    }
    .container {
        /*padding: 20px 0;*/
    }
    .news_page #list_news .item_news, .template .item_news {
        max-width: 100%;
    }
}


/*  СТРАНИЦА С МОНАСТЫРЯМИ  */

@media screen and (max-width: 768px) {
    .title_monastery h3 {
        font-family: AGLettericaCompressed;
        font-size: 22px;
    }
    .title_monastery > div {
        padding: 20px;
        width: 100%;
        height: 90%;
        position: relative;
        margin: 0 auto;
        top: 0;
        left: 0;
        transform: none;
    }
    .item_monastery {
        flex-direction: column !important;
        width: 500px;
        max-width: 100%;
        margin: 30px auto 0;
    }

    .img_monastery {
        width: 100%;
    }

    .title_monastery {
        width: 100%;
        /*height: 200px;*/
    }

    .home__header-content {
        flex-direction: column;
    }

    .header__left-big {
        font-size: 66px;
        margin: 0 auto;
        padding-top: 30px;
        line-height: 73px;
    }

    .header__left-small {
        font-size: 11px;
        margin: 0 auto;
        text-align: center;
    }

    .vk-social {
        overflow: hidden;
    }

    .header__slider-image {
        height: 260px;
        max-width: 415px;
        width: 90%;
        margin: 20px auto 0;
        object-position: bottom;
    }

    .news__page-buttons {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        align-items: center;
    }
}

/* СТРАНИЦА С КОНКРЕТНЫМ МОНАСТЫРЕМ */

@media screen and (max-width: 600px) {
    .more_monastery #list_monastery{
        flex-direction: column;
    }
    .more_monastery .item_monastery{
        width: 100%;
    }
}

/* СТРАНИЦА С СЛУЖИТЕЛЯМИ */

/*@media screen and (max-width: 768px){*/
/*    #list_clergy{*/
/*        flex-direction: column;*/
/*    }*/
/*}*/

@media screen and (max-width: 500px){
    .container.template > #list_clergy {
        grid-template-columns: repeat(2, 1fr);
    }
    p.main-news__date {
        margin-top: 15px;
        display: block;
        margin: 0 0 auto 0;
        text-align: right;
        padding-right: 20px;
    }
    .home__header {
        background-image: url('../images/hederMob.png'), linear-gradient(180deg, #0091CF 0%, #20BCFF 51.49%, #8FDDFF 100%);
    }
    .biography__image {
        text-align: center;
    }
    .biography__sidebar-content {
        margin-bottom: 20px;
    }
    .home_item_clergy {
        padding: 0px 0 20px;
    }
    /*.container {*/
    /*    padding: 0px 0;*/
    /*}*/
    #list_clergy {
        margin-top: 0px;
    }
    .menu_clergy {
        grid-gap: 0 10px;
    }
    .menu_clergy a {
        padding: 10px 11px;
        font-size: 13px;
        margin-top: 10px;
    }
    .photo_clergy {
        height: 216px;
    }
    #list_clergy{
        /*grid-template-columns: 1fr;*/
        grid-gap: 0 20px;
    }
    #list_clergy a{
        max-width: 100%;
        margin: 20px auto 0;
    }
    #pages a{
        display: none;
    }
    #pages a:nth-child(-n+4), .next_page{
        display: flex!important;
    }
    .breadcrumbs {
        margin: 15px 0 10px;
    }
    .clergy__data-title {
        padding-top: 20px;
    }
    a.menu__search {
        display: flex;
    }
    .news__title {
        margin-bottom: 0px;
    }
    a.news__title-button {
        display: none;
    }
    .news__title:before {
        display: none;
    }
    #list_news > div:nth-child(3) {
        margin-bottom: -30px !important;
    }
    .menu_footer_item ul li:first-child {
        font-family: 'AGLettericaCompressed', sans-serif;
    }
}

/* СТРАНИЦА С КОНКРЕТНЫМ СЛУЖИТЕЛЕМ */

@media screen and (max-width: 600px) {
    .home_item_clergy > img{
        width: 200px;
        height: 200px;
    }
}