/* Превью статей */
.article-intro-image{
    position: relative;
    padding-bottom: 62%;
}

.article-intro-image img{
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-details img{display:inline-block;}

@media(min-width:991px) {
    .itemid-342 .article-list .article { height: 406px; }
}


/* YOUTUBE RESPONSIVE */
.videowrapper {
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.left-article-pic{
    float:left;
    display: inline-block;
    max-width:50%;
    margin:0 30px 20px 0;
}
@media(max-width:768px) {
    .left-article-pic{
        max-width: 100%;
        margin: 10px 0;}
}

.right-article-pic{
    float:right;
    display: inline-block;
    max-width:50%;
    margin:0 0 20px 30px ;
}
@media(max-width:768px) {
    .left-article-pic{
        max-width: 100%;
        margin: 10px 0;}
}


.incons_main .inconmain{margin-bottom: 45px;}
.incons_main .rspbld-content{padding-right: 30px;}

@media(max-width:768px) {
    .incons_main .rspbld-image{margin:0 auto;}
    .incons_main .rspbld-title{text-align: center;}
    .incons_main .rspbld-content{padding-right: 0;font-size:14px;}
    .incons_main .rspbld-button-container{text-align: center;}
}

@media(max-width:420px) {
    #sp-main-body{padding-top: 20px;}
    .n2-ss-slider-2{font-size:15px !important;}
}

@media(max-width:360px) {
    .n2-ss-slider-2{font-size:14px !important;}
    
}
@media(max-width:355px) {
    .social-icons{display: none !important;}
} 

@media(max-width:767px) {
    #addon .addon-title{font-size:32px !important;}
    .incons_main{margin:50px 0 !important;}   
    #video-outer{padding-bottom: 100px !important;}
} 


@media (max-width: 992px){
    .h-login{
        display: none !important;
    }
    .h-search{
        display: none !important;
    }
    .hide-less-992{
        display: none !important;
    }
}

@media (max-width: 440px){
    .hide-less-440{
        display: none !important;
    }
}


.pagin{
    text-align: center;
}

.pagin a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    margin: 0 5px;
}

.pagin a.current {
    font-weight: bold;
}



/* HELPERS */

.mrg20T{margin-top:20px !important;}
.mrg20B{margin-bottom:20px !important;}
.mrg40T{margin-top:40px !important;}

.hide{display: none;}
.red_border{border-color: red !important;}
.center{text-align: center;}


.logo-name{
    margin-left:10px !important;
    display: block;
    vertical-align: middle;
    font-family: 'Montserrat', sans-serif;
    font-size:20px;
    font-weight: bold;
    color:#333;
}

.logo-name:hover{color:#333;}

@media (max-width: 1220px){
    .logo-name{
        line-height: 1;
        width:80px;
        font-size:14px !important;
    }
}

.mainpage-h2{
    font-size: 45px;
    text-align: center;
    color: #302F40;
    margin-bottom: 30px;
    font-weight: bold;
}

.block1 .text{
    color: #5C5C69;
    text-align: center;
    font-size: 18px;
}

.block1 .videowrapper iframe{
    border-radius: 20px;
}

.mp-filials .rspbld-title{text-align: center;}
.mp-filials .rspbld-subtitle{text-align: center;margin-bottom: 50px;}
.mp-filials #map{
    border-radius: 20px;
    overflow: hidden;
}

/* Новости на главной */
.item-card, .item-card__link {
    border-radius: 20px;
}

.item-card::before {
    display: none;
}

.mainpage #sp-main-body{padding-bottom: 0;}
.mainpage #sp-main-body .container{max-width:100%;}
.mainpage #sp-main-body section{padding-left:15px;padding-right: 15px;;} 
@media (min-width: 1400px){

    .mainpage #sp-main-body section{max-width: 1320px;margin-left:auto !important;margin-right: auto !important;} 
}

.mainpage #sp-main-body #sp-component{padding: 0;}

.mainpage #sp-main-body section.fb-section{
    max-width: 100%;
    background-color: #775be3;
    padding: 70px 0;
} 

.mainpage #sp-main-body section.fb-section #fb-form{
    max-width: 1320px;
    margin:0 auto;
    padding:0 15px;
}

.mainpage #sp-main-body section.fb-section .row{margin:0;}

#fb-form{display: flex;flex-wrap: wrap;color:#fff;}

 #fb-form .right{display: flex;flex:1;flex-wrap: wrap;}
 #fb-form .left{flex:1;flex-wrap: wrap;}



#fb-form #envelope{
    background-image: url('/images/envelope2.svg');
    background-repeat:  no-repeat;
    background-position: left;
    width:100%;
    height: 290px;
    margin-top:30px;
}

#fb-form .line{width:100%;margin-bottom:30px;}
#fb-form input{width:100%;border:3px solid #fff;height:45px;line-height: 45px;color:#333;padding-left: 4px;}
#fb-form textarea{width:100%;border:3px solid #fff;height:100px;border-radius: 0.25rem;color:#333;padding-left: 4px;}
#fb-form label{margin-bottom: 3px;}

@media (max-width: 768px){
    #fb-form{display: block;}
    #fb-form .left{text-align: center;}
    #fb-form #envelope{height: 150px; background-position: center;}
 }

 #sp-title{overflow: hidden;}

 .sigplus-lightbox-fancybox3 ul{
    display: flex;
    flex-flow: wrap;
 }

 /* По умолчанию */
 .sigplus-lightbox-fancybox3 ul li{width:19.7%;max-width: 255px;padding-left:0 !important;}

.gal_clear .sigplus-lightbox-fancybox3 ul li{width:auto;max-width: none;}

.gal_three .sigplus-lightbox-fancybox3 ul li{width:32%;max-width: none;}

 @media (max-width: 992px){
    .sigplus-lightbox-fancybox3 ul li{width:32%;max-width: 32%;}
    .sigplus-lightbox-fancybox3 ul li img{height: auto !important;}

    .gal_mobile_half .sigplus-lightbox-fancybox3 ul li{width:48%;max-width: 48%;}

 }

 .photo_block_desc{color: #5C5C69;text-align: center;font-style: italic;margin-top:5px;}

 
 #subfieldList_jform_com_fields_person th{width: 25% !important;}


 .filial .rspbld-image{
    display: block !important;
    width:100%;
    max-width: 220px;
    margin:0 auto;
}

 .filial .photo_div{
    padding-bottom: 100%;
    width:100%;

    background-size:cover;
    background-repeat: no-repeat;
    border-radius: 50%;
    overflow: hidden;
 }

 .filial-form #jform_title-lbl{display: none;}
 .filial-form #jform_title{display: none;}

 .filial-form #jform_com_fields_echo_content-lbl{display: none;}
 .filial-form #jform_com_fields_echo_content{display: none;}
 
 .filial-form #jform_com_fields_gallery_module-lbl{display: none;}
 .filial-form #jform_com_fields_gallery_module{display: none;}
 
 .filial-form .field-media-preview{display: none;}
 .filial-form #jform_com_fields_jce_file{display: none;}
 .filial-form #jform_com_fields_jce_file ~ .wf-media-upload-button{display: none;}
 
 .filial-form #jform_catid-lbl{display: none;}
 .filial-form #jform_catid-lbl+joomla-field-fancy-select{display: none;}
 
 .sp-page-title .uni-page__intro-illustration{z-index: 0;}
 .sp-page-title .sp-page-title-heading {z-index: 1;position: relative;}


 #es .es-photos.pattern-tile.photos-1 .es-photo a.fit-height img{
    max-height: none !important;
    max-width: 600px;
 }