/*
Theme Name: Blago
Theme URI:
Description: Theme of Blago
Version: 1.0
Author: Ryabukhin Maxim
Author URI: adaptivlp.myfreelanceblog.net
*/
@import 'assets/css/reset.css';
@import 'assets/css/fonts.css';
/* default color */
.has-pale-pink-color {
    color: rgb(247, 141, 167);
}
.has-vivid-red-color {
    color: rgb(207, 46, 46);
}
.has-luminous-vivid-orange-color {
    color: rgb(255, 105, 0);
}
.has-luminous-vivid-amber-color {
    color: rgb(252, 185, 0);
}
.has-light-green-cyan-color {
    color: rgb(123, 220, 181);
}
.has-vivid-green-cyan-color {
    color: rgb(0, 208, 132);
}
.has-pale-cyan-blue-color {
    color: rgb(142, 209, 252);
}
.has-vivid-cyan-blue-color {
    color: rgb(6, 147, 227);
}
.has-vivid-purple-color {
    color: rgb(155, 81, 224);
}
.has-very-light-gray-color {
    color: rgb(238, 238, 238);
}
.has-cyan-bluish-gray-color {
    color: rgb(171, 184, 195);
}
.has-very-dark-gray-color {
    color: rgb(49, 49, 49);
}
/* end def color */
body {
    background: #f0fbff;
    font-family: 'inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6,
.title_item {
    font-family: 'AGLettericaCompressed', sans-serif;
}

main {
    flex: 1 0 auto;
}
footer {
    flex: 0 0 auto;
}
/* ШАПКА */
header {
    min-height: 55px;
    width: 100%;
    background: #5086ad;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
}
#header {
    width: 1320px;
    min-height: 55px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.change_menu {
    display: none;
    justify-content: flex-start;
    color: #fff;
    font-size: 20px;
    align-items: center;
    width: 100px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    z-index: 11;
}
.change_menu .open_menu {
    width: 26px;
    height: 26px;
    position: relative;
    margin-right: 10px;
}
.open_menu span {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 4px;
    position: absolute;
}
.open_menu span:nth-child(1) {
    top: 0;
    left: 0;
}
.open_menu span:nth-child(2) {
    top: 0;
    right: 0;
}
.open_menu span:nth-child(3) {
    bottom: 0;
    left: 0;
}
.open_menu span:nth-child(4) {
    bottom: 0;
    right: 0;
}
.change_menu .exit_menu {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 5px;
    display: none;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    text-align: center;
}
.exit_menu span {
    width: 80%;
    height: 1px;
    /*background: #5086AD;*/
    display: block;
    position: relative;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    background: #fff;
}
.exit_menu span:after {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: rotate(45deg);
    background: #000000;
    content: '';
    display: block;
    transition: 0.3s ease;
}
.exit_menu span:before {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    transform: rotate(-45deg);
    background: #000000;
    content: '';
    display: block;
    transition: 0.3s ease;
}
#mobile_menu {
    position: fixed;
    width: 100%;
    height: calc(100% - 55px);
    background: #baeaff;
    padding-top: 50px;
    top: 55px;
    display: none;
    left: 101%;
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: 50px;
}
#mobile_menu .sub-menu{
    display: none;
}
#mobile_menu form {
    background: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    font-size: 13px;
    width: 90%;
    padding: 0 10px;
}
#mobile_menu form input[type='submit'] {
    width: 15px;
    height: 15px;
    background: url('assets/images/icon-search.svg') no-repeat;
    background-size: 15px;
    padding: 0 8px;
    margin-right: 5px;
}
#mobile_menu form input[type='text'] {
    padding: 10px 5px 10px 0;
    flex: 1 0 auto;
    max-width: 88%;
}
#mobile_menu ul li {
    margin-top: 20px;
    /*text-align: center;*/
    display: block;
    font-size: 20px;
    margin-left: 49.5px;
}
#mobile_menu ul li a {
    font-family: 'AGLettericaCompressed', sans-serif;
    text-transform: uppercase;
    color: #001e3e;
    position: relative;
    /*font-size: 20px;*/
    line-height: 140%;
}
#mobile_menu ul li a:after {
    position: absolute;
    content: '+';
    right: -18px;
    top: -4px;
}
#mobile_menu ul li a.active:after {
    content: '-';
    /*right: -18px;*/
    /*top: -4px;*/
}
#mobile_menu ul.sub-menu li a:after {
    display: none;
    /*content: '-';*/
    /*right: -18px;*/
    /*top: -4px;*/
}
#mobile_menu ul.sub-menu li {
    margin-left: 0;
    font-size: 16px;
}
#mobile_menu ul.sub-menu li a {
    color: #5086AD;
}
#logo {
    width: 120px;
    transition: all 0.3s;
}
#logo a {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 113px;
    text-transform: uppercase;
    transition: all 0.3s;
    /*font-size: calc(6px + 2 * ((100vw - 320px) / (1600 - 320)));*/
}
#menu nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}
#menu nav ul li {
    margin-right: 30px;
    font-size: calc(10px + 6 * ((100vw - 1024px) / (1600 - 1024)));
    position: relative;
}
#menu nav ul li:last-child {
    margin-right: 0;
}
#menu nav ul li a {
    color: #fff;
    position: relative;
}
#menu nav ul li a:before {
    width: 0;
    background: #fff;
    height: 1px;
    transition: 0.3s ease;
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
}
#menu nav ul li a:hover::before {
    width: 100%;
}
#top_socials {
    display: flex;
    justify-content: flex-end;
}
#top_socials > p {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#top_socials > p a {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #001e3e;
    border-radius: 50%;
    margin-right: 5px;
}
#top_socials > p a:last-child {
    margin-right: 0;
}
#top_socials form {
    margin-left: 15px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    width: 135px;
    padding: 0 5px;
}
#top_socials form input[type='submit'] {
    width: 15px;
    height: 15px;
    background: url('assets/images/icon-search.svg') no-repeat;
    background-size: 15px;
    padding: 0 8px;
    margin-right: 5px;
}
#top_socials form input[type='text'] {
    padding: 5px 5px 5px 0;
    flex: 1 0 auto;
    max-width: 88%;
}
/* ГЛАВНЫЙ ЭКРАН */
#home {
    height: 650px;
    background: #baeaff;
    padding-top: 100px;
    position: relative;
}
#home h1 {
    text-align: center;
    font-size: calc(30px + 46 * ((100vw - 320px) / (1600 - 320)));
    color: #001e3e;
    position: relative;
    z-index: 2;
    width: 520px;
    margin: 0 auto;
    max-width: 100%;
}
/*#home h1 span{*/
/*    display: block;*/
/*    font-weight: bold;*/
/*    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);*/
/*    !*margin-bottom: 11px;*!*/
/*}*/
.home_background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.left_hbg,
.right_hbg {
    position: absolute;
    width: 435px;
    height: 100%;
    max-width: 30%;
    background: url('assets/images/bg_clergy.jpg') repeat;
}
.center_hbg {
    width: 852px;
    max-width: 45%;
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 100%;
    transform: translate(-50%, 0);
    z-index: 0;
    overflow: hidden;
}
.left_hbg {
    left: 0;
    bottom: 0;
    height: 100%;
    clip-path: polygon(0 0, 75% 0, 100% 100%, 0% 100%);
    z-index: 1;
}
.left_hbg:after {
    background: #fff;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    content: '';
    bottom: 0;
    z-index: 2;
    left: 72%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
}
.right_hbg {
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
}
.right_hbg:after {
    background: #fff;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    content: '';
    bottom: 0;
    z-index: 2;
    right: 72%;
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}
.left_hbg img {
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 100%;
    max-width: 150%;
}
.right_hbg img {
    position: absolute;
    bottom: 0;
    right: 0;
    min-width: 100%;
    max-width: 150%;
}
.center_hbg img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    min-width: 120%;
    max-width: none;
}
/* Контейнер */
.container {
    width: 1320px;
    max-width: 90%;
    margin: 0 auto;
    padding: 70px 0;
}
.container.container__home {
    padding-top: 0;
}
.text_container {
    width: 1080px;
}
/* ГЛАВНАЯ НОВОСТЬ */
#main_news {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    grid-column: 1/3;
    border: 1px solid #D2E7F0;
}
#main_news div {
    width: 50%;
}
#main_news p.main-news__date {
    color: #5086AD;
    font-family: AGLettericaCompressed;
    font-size: 16px;
    margin-top: 25px;
}
.description_main_news {
    background: #fff;
    padding: 0 2% 27px 34px;
    text-align: left;
}
.description_main_news .title_item {
    display: none;

    cursor: default;
    /*display: inline-block;*/
    padding: 20px 20px 15px 20px;
    color: #5086ad;
    border-left: 1px solid #baeaff;
    border-right: 1px solid #baeaff;
    border-bottom: 1px solid #baeaff;
    font-size: 16px;
}
.description_main_news h4 {
    /*color: #001e3e;*/
    /*margin: 35px 0 10px;*/
    /*line-height: 140%;*/
    /*font-size: calc(16px + 8 * ((100vw - 320px) / (1600 - 320)));*/
    /*//font-size: 24px;*/
    color: #001e3e;
    margin: 7px 0 10px;
    /*line-height: 140%;*/
    font-family: 'inter';
    /*line-height: 29px;*/

    font-size: 20px;
    line-height: 140%;
    margin-bottom: 25px;
}
.description_main_news p {
    color: #000;
    line-height: 22px;

    /*color: #5086ad;*/
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
}
/* НОВОСТИ И ПУБЛИКАЦИИ */
#publications_news {
    margin-top: 0px;
    /*margin-top: 80px;*/
}
#publications_news h2 {
    color: #001e3e;
    font-size: calc(32px + 24 * ((100vw - 320px) / (1600 - 320)));
}
#content_news {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
#list_news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    justify-content: space-between;
    align-items: stretch;
    grid-gap: 0 30px;
}
#content_news #list_news {
    width: 65.5%;
}
.item_news {
    /* width: 420px;
    max-width: 49%; */
    background: #fff;
    margin-top: 30px;
    border: 1px solid #d2e7f0;
    transition: 0.3s ease;
}
.item_news:hover {
    background: #f0fbff;
}
.img_item_news {
    position: relative;
    padding-bottom: 59%;
    overflow: hidden;
    background: #d2e7f0;
}
.body_item_news {
    padding: 20px;
}
.header_body_news {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #5086ad;
    font-size: 16px;
    font-family: AGLettericaCompressed;
}
.content_body_news {
    margin-top: 20px;
    color: #001e3e;
    font-size: calc(16px + 3 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
/* ВИДЖЕТЫ */
.widgets {
    margin-top: 70px;
    width: 420px;
    max-width: calc(35% - 30px);
    flex: 1 0 auto;
}
.system_link a {
    display: block;
    margin-top: 20px;
    color: #fff;
    background: #5086ae;
    /*background: #36507a;*/
    padding: 15px;
    text-align: center;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    transition: 0.3s ease;
}
.system_link a:hover {
    background: #5086ad;
}
.system_link a:first-child {
    margin-top: 30px;
}
.ads {
    margin-top: 30px;
    background: #fff;
}
.ads h3 {
    padding: 20px 15px 30px 20px;
    font-size: calc(20px + 12 * ((100vw - 320px) / (1600 - 320)));
}
.ads h3 a {
    text-transform: uppercase;
    color: #5086ae;
    /*color: #363c48;*/
}
.body_last_news {
    padding: 20px;
}
.header_last_news {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #36507a;
    font-size: calc(11px + 7 * ((100vw - 320px) / (1600 - 320)));
}
.content_last_news {
    margin-top: 20px;
    color: #001e3e;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
/* Аналитика */
.analytics {
    background: #5086ad;
    padding: 20px;
    margin-top: 30px;
}
.analytics h3 {
    font-size: calc(20px + 12 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
.analytics h3 a {
    text-transform: uppercase;
    color: #fff;
}
.item_analytics {
    margin-top: 20px;
    display: block;
}
.title_item_an {
    color: #fff;
    font-size: calc(16px + 4 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
.body_item_an,
.footer_item_an {
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    color: #baeaff;
    line-height: 140%;
    margin-top: 15px;
}
.footer_item_an {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.footer_item_an p {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 15px;
}
.footer_item_an p:last-child {
    margin-right: 0;
}
.footer_item_an p img {
    margin-right: 15px;
}
/* Православный календарь */
.calendar {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
}
.calendar h3 {
    text-transform: uppercase;
    color: #5086ae;
    font-size: calc(20px + 12 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
.calendar h3 a {
    color: #363c48;
}
.short_desc_cal {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    color: #36507a;
    font-size: calc(11px + 3 * ((100vw - 320px) / (1600 - 320)));
}
.short_desc_cal img {
    margin-right: 15px;
    max-width: 91px;
}
.long_desc_cal {
    margin-top: 30px;
    color: #36507a;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
}
/* Мы в соцсетях */
.we_are_socials {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
}
.we_are_socials h3 {
    text-transform: uppercase;
    color: #5086ae;

    font-size: calc(20px + 12 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
    /*color: #363c48;*/
}
.vk-social {
    margin-top: 30px;
}
.body_was {
    padding: 20px;
    background: url('assets/images/bg-social.png') no-repeat;
    background-size: cover;
}
.body_was a {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    color: #fff;
}
.body_was a img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.body_was p {
    margin-top: 10px;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    color: #fff;
}
.footer_was {
    padding: 20px;
    background: #fff;
}
.footer_was > a {
    color: #36507a;
    font-size: calc(11px + 3 * ((100vw - 320px) / (1600 - 320)));
}
.footer_was > p {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.footer_was > p a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.footer_was > p a:last-child {
    margin-right: 0;
}
.we_are_socials > a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #5086ad;
    color: #fff;
    padding: 13px;
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    transition: 0.3s ease;
}
.we_are_socials > a:hover {
    background: #36507a;
}
.we_are_socials > a img {
    margin-right: 10px;
}
/* ПОДВАЛ */
footer {
    background: #36507a;
}
#footer {
    width: 1320px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
#logo_footer {
    width: 250px;
    text-align: center;
    color: #fff;
    font-size: calc(25px + 2 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
#logo_footer p {
    margin-top: 15px;
}
#menu_footer {
    /*background: #f00;*/
    width: 45%;
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /*align-items: flex-start;*/
}
.menu_footer_item {
    width: 45%;
}
.menu_footer_item ul {
    margin-top: 50px;
}
.menu_footer_item ul:first-child {
    margin-top: 0;
}
.menu_footer_item ul li {
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    margin-top: 15px;
    line-height: 140%;
}
.menu_footer_item ul li a {
    color: #d2e7f0;
    position: relative;
}
.menu_footer_item ul li a:before {
    width: 0;
    background: #d2e7f0;
    height: 1px;
    transition: 0.3s ease;
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
}
.menu_footer_item ul li a:hover::before {
    width: 100%;
}
.menu_footer_item ul li:first-child {
    font-family: 'AGLettericaCompressed', sans-serif;
    font-size: calc(16px + 4 * ((100vw - 320px) / (1600 - 320)));
    margin-top: 0;
}
.menu_footer_item ul li:first-child a {
    color: #fff;
}
#contacts_footer {
    width: 25%;
    padding: 50px 0;
}
#contacts_footer div {
    margin-top: 15px;
}
#contacts_footer div h5 {
    font-size: calc(16px + 4 * ((100vw - 320px) / (1600 - 320)));
    color: #fff;
}
#contacts_footer div:first-child {
    margin-top: 0;
}
#contacts_footer div p {
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    margin-top: 10px;
    line-height: 140%;
    color: #d2e7f0;
}
#bottom_footer {
    padding: 22px 0;
    background: #5086ad;
}
.container_bottom_footer {
    width: 1320px;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: calc(11px + 9 * ((100vw - 320px) / (1600 - 320)));
}
/*  ШАБЛОНЫ СТРАНИЦ  */
.template {
    margin-top: 55px;
}
.template_home {
    /*min-height: 700px;*/
    /*background: url('assets/images/bg_clergy.jpg') repeat;*/
}
.template > h1,
.template > h2 {
    text-align: center;
    font-size: calc(32px + 24 * ((100vw - 320px) / (1600 - 320)));
    color: #001e3e;
}
.breadcrumbs {
    margin: 15px 0 30px;
    text-align: center;
}
.breadcrumbs span,
.breadcrumbs a {
    color: #36507a;
    padding: 0 12px;
    position: relative;
    font-size: calc(11px + 3 * ((100vw - 320px) / (1600 - 320)));
}
.breadcrumbs a:after {
    position: absolute;
    width: 7px;
    content: url('assets/images/arrow_right.png');
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}
.breadcrumbs a:last-child {
    color: #001e3e;
}
.breadcrumbs a:last-child::after {
    display: none;
}
/*  СТРАНИЦА "МОНАСТЫРИ"  */
#list_monastery {
    margin-top: 50px;
}
.item_monastery {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /*background: url('assets/images/bg_clergy.jpg') repeat;*/
}
.item_monastery:nth-child(even) {
    flex-direction: row-reverse;
}
.img_monastery {
    width: 50%;
}
.title_monastery {
    background-size: cover;
    width: 50%;
    position: relative;
    text-align: center;
    background: #fff;
}
.title_monastery h3 {
    font-size: calc(20px + 20 * ((100vw - 320px) / (1600 - 320)));
    color: #001e3e;
}
.title_monastery > div {
    padding: 30px;
    width: 90%;
    height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /*clip-path: polygon(6% 0, 94% 4%, 100% 93%, 0 88%);*/
    transition: 0.3s ease;
}
/*.item_monastery:nth-child(3n + 1) .title_monastery > div {*/
/*    clip-path: polygon(6% 0, 94% 4%, 100% 93%, 0 88%);*/
/*}*/
/*.item_monastery:nth-child(3n + 2) .title_monastery > div {*/
/*    clip-path: polygon(0 6%, 95% 3%, 100% 91%, 0 100%);*/
/*}*/
/*.item_monastery:nth-child(3n + 3) .title_monastery > div {*/
/*    clip-path: polygon(0 6%, 100% 0, 100% 90%, 1% 100%);*/
/*}*/
.item_monastery:hover .title_monastery > div {
    /*background: #f0fbff;*/
}
/* СТРАНИЦА КОНКРЕТНОГО МОНАСТЫРЯ */
.home_item_monastery {
    padding-bottom: 50px;
    text-align: center;
}
.home_item_monastery > img {
    clip-path: polygon(0 0, 100% 0, 100% 83%, 92% 96%, 10% 100%, 0 87%);
}
.template_item_monastery .container h1,
.description_monastery h2 {
    text-align: center;
    font-size: calc(32px + 24 * ((100vw - 320px) / (1600 - 320)));
    color: #001e3e;
}
.description_monastery > h3,
.description_monastery > h4 {
    color: #001e3e;
    text-align: center;
    font-size: calc(25px + 15 * ((100vw - 320px) / (1600 - 320)));
    margin: 80px 0 30px;
}
.description_monastery > div {
    margin: 80px 0 30px;
}
.description_monastery p {
    color: #36507a;
    line-height: 140%;
}
.description_monastery h2,
.description_monastery p:not(:last-child){
    padding-bottom: 20px;
}
.more_monastery #list_monastery {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.more_monastery .item_monastery {
    flex-direction: column;
    width: 49%;
}
.more_monastery .item_monastery .img_monastery,
.more_monastery .item_monastery .title_monastery {
    width: 100%;
}
.more_monastery .item_monastery .title_monastery > div {
    position: static;
    transform: translate(0, 0);
    padding: 60px 30px;
    clip-path: polygon(0 7%, 100% 0, 100% 94%, 0% 100%);
    margin: 0 auto;
}
.more_monastery .item_monastery .title_monastery {
    padding: 15px 0;
}
.more_monastery .item_monastery .title_monastery h3 {
    font-size: calc(18px + 6 * ((100vw - 320px) / (1600 - 320)));
    line-height: 140%;
}
/* СТРАНИЦА "НОВОСТИ" */
.news_page #list_news {
    margin-top: 50px;
}
.news_page #list_news .item_news,
.template .item_news {
    /* max-width: 32%; */
}
#pages {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#pages a {
    min-height: 50px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #36507a;
    background: #baeaff;
    margin-right: 10px;
    font-size: calc(15px + 5 * ((100vw - 320px) / (1600 - 320)));
    transition: 0.3s ease;
}
#pages a:last-child {
    margin-right: 0;
}
#pages a.active_page {
    color: #fff;
    background: #36507a;
}
#pages a:hover {
    color: #fff;
    background: #36507a;
}
.next_page {
    padding: 0 20px;
}
/* СТРАНИЦА КОНКРЕТНОЙ НОВОСТИ */
.content_item_page {
    width: 1080px;
    max-width: 100%;
    margin: 30px auto 80px;
}
.content_item_news {
    width: 1080px;
    max-width: 100%;
    margin: 30px auto 80px;
    display: flex;
    /*gap: 30px;*/
}
.info_content_item_news {
    display: flex;
    justify-content: space-between;
    font-family: 'AGLettericaCompressed', sans-serif;
}
.info_content_item_news p {
    font-size: calc(13px + 3 * ((100vw - 320px) / (1600 - 320)));
    color: #5086ad;
}
.info_content_item_news p a {
    color: #5086ad;
}
.content_item_page h1,
.content_item_news h1 {
    margin-top: 15px;
    text-align: center;
    color: #001e3e;
    font-size: calc(25px + 10 * ((100vw - 320px) / (1600 - 320)));
}
.text_item_news {
    margin-top: 30px;
    font-size: calc(15px + 5 * ((100vw - 320px) / (1600 - 320)));
    color: #305169;
}
.text_item_news p,
.text_item_news ul,
.text_item_news ol,
.text_item_news div {
    margin-top: 20px;
    word-break: break-word;
}
/* СТРАНИЦА ДУХОВЕНСТВА */
.menu_clergy {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    grid-gap: 0 20px;
}
.menu_clergy a {
    font-family: 'AGLettericaCompressed', sans-serif;
    text-transform: uppercase;
    margin-top: 20px;
    font-size: calc(16px + 5 * ((100vw - 320px) / (1600 - 320)));
    padding: 13px 37px;
    color: #5086ad;
    background: #baeaff;
    transition: 0.4s ease;
    flex: auto;
    text-align: center;
}
.menu_clergy a.active_clergy {
    color: #fff;
    background: #36507a;
}
.menu_clergy a:hover {
    color: #fff;
    background: #36507a;
}
#list_clergy {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    align-items: stretch;
    grid-gap: 0 15px;
}
#list_clergy a {
    margin-top: 30px;
    text-align: center;
    background: white;
}
.photo_clergy {
    height: 235px;
    /*height: 300px;*/
    padding-top: 20px;
    box-sizing: content-box;
    background: url('assets/images/bg_clergy.jpg');
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}
#list_clergy a h4 {
    font-family: Inter;
    /*font-size: 16px;*/
    padding: 10px 12px;
    background: #fff;
    color: #36507a;
    line-height: 140%;
    /*font-size: calc(20px + 12 * ((100vw - 320px) / (1600 - 320)));*/
}
/* КОНКРЕТНЫЙ ДУХОВНЫЙ СЛУЖИТЕЛЬ */
.home_item_clergy .top_template_home {
    background: #36507a;
    padding: 55px 0 30px;
    /*clip-path: polygon(0 0, 100% 0, 97% 94%, 6% 96%);*/
}
.home_item_clergy .breadcrumbs a {
    color: #5086ad;
}
.home_item_clergy .breadcrumbs span:last-child,
.home_item_clergy .breadcrumbs a:last-child {
    color: #fff;
}
.home_item_clergy .top_template_home h1 {
    font-size: calc(25px + 15 * ((100vw - 320px) / (1600 - 320)));
    color: #fff;
    text-align: center;
}
.home_item_clergy > img {
    display: block;
    width: 400px;
    max-width: 90%;
    border-radius: 50%;
    margin: 10px auto 0;
    height: 400px;
    object-fit: cover;
}
.text_biography h2 {
    text-align: center;
    font-size: calc(32px + 24 * ((100vw - 320px) / (1600 - 320)));
    color: #001e3e;
}
.text_biography p,
.text_biography ul,
.text_biography ol,
.text_biography div {
    margin-top: 20px;
    color: #36507a;
    line-height: 140%;
    font-size: calc(16px + 4 * ((100vw - 320px) / (1600 - 320)));
}
#menu nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    padding: 17px 0 15px;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    min-width: 100%;
    background: #5086ad;
    transform: translateY(20px);
}
#menu nav .menu-item-has-children:hover > ul.sub-menu {
    opacity: 1;
    pointer-events: unset;
    transform: translateY(0px);
}
#menu nav ul.sub-menu li {
    width: 100%;
    margin: 0;
    padding: 5px 10px;
}
#menu nav ul.sub-menu a {
    padding: 0;
    margin: 0;
}
#menu nav ul.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    padding-top: 0;
    margin: 0;
}
#vk_widget,
#vk_groups {
    width: 100% !important;
}
.calendar__item a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #000000;
    transition: all 0.3s;
}
.calendar__item a:hover {
    text-decoration-color: transparent;
}
#list_news {
    position: relative;
    transition: opacity 0.3s;
}
#list_news.loading .item_news{
    animation: 0.7s linear infinite alternate slidein;
}

@keyframes slidein {
    0% {
        opacity: 0.7;
    }
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.7;
    }
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #5086ad;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}
#list_news .lds-ellipsis{
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
#list_news.loading .lds-ellipsis{
    opacity: 1;
}
.picture_item_news img{
    width: 100%;
}
.img_item_news img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
}
.text_item_news>.alignleft:first-child,
.alignleft {
    float: left;
    margin: 0 30px 10px 0;
}
.alignright {
    float: right;
    margin: 0 0 10px 30px;
}
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 14px;
    margin-top: 10px !important;
}
.text_item_news .wpcf7-form textarea,
.text_item_news .wpcf7-form input{
    background-color: white;
}
.text_item_news .wpcf7-form input[type=submit]{
    background: #5086ad;
    color: white;
    margin: 0;
}
.aligncenter {
    display: block;
    margin: 0 auto 10px;
}
.content_item_news::after{
    content: '';
    display: block;
    clear: both;
}
.alignnone {
    float: none;
    margin: 0 auto 10px;
}
.search-template__form{
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    max-width: 270px;
    width: 100%;
    margin: 0 auto;
}
.search-template__form input{
    background: white;
    padding: 5px 5px 5px 15px;
    border-radius: 30px;
}
.search-template__form input[type=submit]{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    text-indent: -999px;
    overflow: hidden;
    background: url(assets/images/icon-search.svg) no-repeat center;
    background-size: 15px;
    transition: all 0.3s ease-in-out;
}
.search-template__form input[type=submit]:hover{
    background-color: #5086ad;
}
.search-template{
    text-align: center;
    width: 100%;
    margin: 0 auto;
}
.search-template__title{
    padding: 0 0 20px;
}
.photo_clergy img.wp-post-image{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*object-fit: contain;*/
    object-fit: cover;
    object-position: top;
}
.home_item_clergy{
    padding: 0 0 30px;
    box-sizing: border-box;
}
.error-page{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.error-page__link{
    background: #5086ad;
    color: white;
    font-size: 18px;
    border-radius: 30px;
    padding: 10px 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: fit-content;
    margin: 20px auto 0;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.error-page__link:hover{
    border-color: #5086ad;
    background: none;
    color: #5086ad;
}

@media all and (max-width: 1480px){
    header.minimal #logo a{
        width: 50px;
    }
}

.text_item_news a {
    color: #006dd2;
}

.content_item_news h1,
.content_item_news h2,
.content_item_news h3,
.content_item_news h4,
.content_item_news h5 {
    padding: 40px 0 0px;
}


.content_item_news h2 {
    font-size: 30px;
}

.content_item_news h3 {
    font-size: 24px;
}

.content_item_news h4 {
    font-size: 20px;
}



a.item_monastery {
    min-height: 250px;
    border: 1px solid #D2E7F0;
}

.img_monastery img {
    object-fit: cover;
    max-height: 400px;
}

.home__header {
    min-height: 319px;
    width: 100%;
    margin-top: 55px;
    background-image: url('assets/images/headerPC.png'), linear-gradient(180deg, #0091CF 0%, #20BCFF 51.49%, #8FDDFF 100%);
    background-repeat: no-repeat;
    background-position: center;
}

.home__header-content {
    max-width: 1280px;
    margin: 0 auto;
    color: #fff;
    display: flex;
}

.header__left-big {
    font-family: "AGLettericaCompressed", sans-serif;
    font-size: 130px;
    padding-top: 88px;
    border-bottom: 3px solid #fff;
    line-height: 120px;
    width: fit-content;
    position: relative;
}

.header__left-big:before {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    content: '';
    bottom: -9px;
    left: -15px;
}

.header__left-small {
    font-family: Inter;
    font-size: 22px;
    text-transform: uppercase;
    padding-top: 8px;
    letter-spacing: -0.2px;
}

.header__slider-image {
    height: 100%;
    max-height: 320px;
    max-width: 415px;
    object-fit: contain;
    margin: 30px auto 0;
    object-position: bottom;
}

.home-header__right {
    overflow: hidden;
}

#main_news > div > img {
    height: 100%;
    object-fit: cover;
}

#publications_news h2 {
    color: #5086AD;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 70px;
}

.news__title {
    grid-column: 1/3;
    margin-bottom: 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.news__title:before {
    width: 81%;
    height: 1px;
    background: #A8C3D6;
    position: absolute;
    content: '';
    bottom: 0;
    max-width: 700px;
}

a.news__title-button {
    color: #A8C3D6;
    font-family: AGLettericaCompressed;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    text-transform: uppercase;
    position: absolute;
    right: 0;
    bottom: -12px;
}

.photo_clergy img {
    height: 100%;
}

.clergy__data-title {
    color: #36507A;
    text-align: center;
    font-family: AGLettericaCompressed;
    font-size: 36px;
    padding-top: 50px;
}

.clergy__data-text {
    color: #000;
    font-family: Inter;
    font-size: 18px;
    text-align: center;
    margin-top: 6px;
}

.biography__content {
    /*display: flex;*/
    /*gap: 30px;*/
    max-width: 66%;
}

.biography__image img {
    max-width: 333px;
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.text_biography p:first-child {
    margin-top: 0;
}

.text_biography {
    /*max-width: 516px;*/
    /*width: 100%;*/
}

.container.container__biography {
    display: flex;
    gap: 30px;
}

.biography__sidebar-content {
    width: 100%;
    display: flex;
    max-width: 420px;
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #5086AD;
}

.biography__sidebar-content a {
    color: #fff;
    text-decoration: none;
}

.biography__sidebar-title {
    font-family: AGLettericaCompressed;
    font-size: 24px;
    font-weight: 400;
    line-height: 140%;
    text-transform: uppercase;
    color: #fff;
}

a.biography__sidebar-button {
    display: block;
    margin: 0 0 0 auto;
    text-decoration: underline;
}

.title_monastery h3 {
    text-align: center;
    font-family: AGLettericaCompressed;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

a.menu__search {
    display: none;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    margin-left: 10px;
}

.menu__search img {
    /*filter: contrast(1) invert(1);*/
    padding: 3px;
}

.content_item_news h1 {
    padding: 0px 0 0px;
}

.content_item_news-sidebar {
    height: fit-content;
    background: #fff;
    padding: 20px 0px 0;
    min-width: 370px;
    width: 100%;
    margin-left: 30px;
}

.news-sidebar__title {
    color: #5086AD;
    font-family: AGLettericaCompressed;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-transform: uppercase;
    padding: 0 23px 20px;
}

.news-sidebar__item-date {
    color: #5086AD;
    font-family: AGLettericaCompressed;
    font-size: 18px;
    padding: 10px 0 15px 15px;
}

.news-sidebar__item-title {
    color: #001E3E;
    font-family: Inter;
    font-size: 16px;
    padding: 0 15px 20px;
}

.biography__image {
    width: 100%;
    max-width: 333px;
    float: left;
    margin: 0 15px 0 0;
}

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

ul.news__label-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

ul.news__label-list li a {
    color: #5086ad;
}

ul.news__label-list li {
    background: #BAEAFF;
    padding: 10px 15px;
    text-transform: uppercase;
    font-family: AGLettericaCompressed;
    font-size: 15px;
    transition: .3s all;
}

ul.news__label-list li:first-child,
ul.news__label-list li:hover
{
    background: #36507A;
    color: #fff;
}

ul.news__label-list li:hover a {
    color: #fff;
}

a.scrollTop {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999999;
    color: #fff;
    background: #5086ad;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 38px;
    border-radius: 100%;
    border: 1px solid #36507a;
    font-size: 21px;
}

.temples__container {
    display: grid;
    grid-template-columns: 31.8% 66.5%;
    grid-gap: 20px;
}

.temples__sidebar {
    display: flex;
    /*width: 420px;*/
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #5086AD;
    height: fit-content;
}

a.temples__sidebar-item {
    color: #fff;
    font-family: AGLettericaCompressed;
    font-size: 18px;
    line-height: 130%;
    text-transform: uppercase;
    transition: .3s all;
    display: block;
    padding-bottom: 10px;
}

a.temples__sidebar-item.active,
a.temples__sidebar-item:hover {
    color: #001E3E;
}

.temples__content {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
    height: fit-content;
}

.temples__item {
    background: #fff;
    color: #5086AD;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 130%;
    text-transform: uppercase;
    position: relative;
}

.temples__item-title {
    padding: 10px;
}

a.temples__item-href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

img.temples__item-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.temples__sidebar-button {
    display: none;
}

.temples__sidebar-button:after {
    content: '';
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2.045 6.61626C2.27941 6.38192 2.59729 6.25027 2.92875 6.25027C3.2602 6.25027 3.57809 6.38192 3.8125 6.61626L10 12.8038L16.1875 6.61626C16.4233 6.38856 16.739 6.26257 17.0668 6.26541C17.3945 6.26826 17.708 6.39972 17.9398 6.63148C18.1715 6.86324 18.303 7.17676 18.3058 7.50451C18.3087 7.83225 18.1827 8.148 17.955 8.38376L10.8837 15.455C10.6493 15.6893 10.3315 15.821 10 15.821C9.66854 15.821 9.35066 15.6893 9.11625 15.455L2.045 8.38376C1.81066 8.14935 1.67902 7.83146 1.67902 7.50001C1.67902 7.16855 1.81066 6.85067 2.045 6.61626Z' fill='white'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
    right: -30px;
    top: 3px;
    transition: .3s all;
}

.temples__sidebar-button.active:after {
    transform: rotate(-180deg);
}

.temples__sidebar-button {
    color: #FFF;
    font-family: AGLettericaCompressed;
    font-size: 20px;
    line-height: 140%;
    text-transform: uppercase;
    position: relative;
}

.temples__content div#pages {
    grid-column: 1/4;
}

.monastery__container {
    display: grid;
    grid-template-columns: 62.6% 34.7%;
    grid-gap: 2.6%;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    margin-top: 152px;
    padding: 0 15px;
}

.monastery__content h1 {
    text-align: center;
    font-size: 30px;
    line-height: normal;
    text-transform: uppercase;
    color: #001E3E;
}

.monastery__content-text {
    color: #122f44;
    padding: 10px 0 30px;
}

.monastery__sidebar {
    display: flex;
    /*width: 420px;*/
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #5086AD;
    height: fit-content;
    color: #fff;
    margin-bottom: 20px;
}

.monastery__sidebar a {
    color: #fff;
}

a.monastery__sidebar-item:last-child {
    margin-bottom: 0px;
}
a.monastery__sidebar-item {
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    display: block;
}

a.monastery__sidebar-title {
    font-family: AGLettericaCompressed;
    font-size: 24px;
    line-height: 140%;
    text-transform: uppercase;
    position: relative;
}

.monastery__sidebar-content {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

a.monastery__sidebar-readmore {
    text-align: right;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration-line: underline;
}

a.monastery__sidebar-title:after {
    content: '+';
    position: absolute;
    right: -20px;
    top: -5px;
}

a.monastery__sidebar-title.active:after {
    content: '-';
    right: -14px;
    top: -5px;
}

.monastery__content-text p {
    padding-bottom: 10px;
}

.temples__item-title {
    padding: 10px;
}

.shortcode_clergy .photo_clergy {
    margin-top: 0;
}

.text_item_news h2 {
    font-size: 30px;
    margin-top: 40px;
}
.text_item_news h3 {
    font-size: 20px;
    margin-top: 30px;
}
.container.template > #list_clergy {
    grid-template-columns: repeat(7, 1fr);
    max-width: 100%;
}
#list_clergy {
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.page_description {
    text-align: center;
    margin: 15px 10px 15px;
}

.text_biography li {
    list-style: disc;
    padding-bottom: 10px;
}

.text_biography ul {
    padding-left: 20px;
}

.news__page-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.news__buttons-btn {
    background: #054384;
    width: 200px;
    color: #fff;
    padding: 10px 0;
}

.news__buttons-period-list {
    position: absolute;
    z-index: 9;
    left: -1px;
    top: 40px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: calc(100% + 2px);
    display: none;
}

.news__buttons-container {
    position: relative;
}

.news__buttons-period-list li {
    padding: 8px 13px;
    border-bottom: 1px solid #efefef;
    transition: .3s all;
    cursor: pointer;
    font-size: 13px;
}

.news__buttons-period-list li:last-child {
    border: 0;
}

.news__buttons-period-list li:hover {
    background: #054384;
    color: #fff;
}

.daterangepicker select.yearselect {
    width: 27% !important;
}

.daterangepicker select.monthselect {
    width: 37% !important;
}