@font-face {
    font-family: "Roboto Slab";
    src: url("../fonts/RobotoSlab-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face{
    font-family: "Roboto Slab";
    src: url("../fonts/RobotoSlab-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face{
    font-family: "Roboto Slab";
    src: url("../fonts/RobotoSlab-Light.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

body {
    font-family: 'Roboto Slab', serif !important;
	line-height: normal !important;
	margin: 0;
	padding: 0;
  	background: url(/images/template/bg_3.jpg);
}

h1,h2,h3,h4,h5,h6,p,blockquote,dl,address {
	margin: 0.5em 0;
}

fieldset {
	margin: 0.5em 0;
	padding: 0.5em 10px;
}

form {
	margin: 0;
}

ul {
	margin: 0 0 0 1em;
	padding: 0 0 0 1em;
	list-style-position: outside;
}
ol {
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	list-style-position: inside;
	}
li,dd {
    margin-left: 1em;
	padding-left: 0;
}

a:hover {
	text-decoration: underline;
}
h1, h2, h3, h4, h5 {
        font-size: 1.5em !important;
}

h1 {
	font-size: 28px;
	font-weight: bold;
	margin: 3px 0 10px 0;
	text-align: left;
}

h2 {
	line-height: 1.3;
	font-weight: bold;
	text-align: left;
}

h3 {
	font-weight: bold;
	text-align: left;
}

h4 {
	font-weight: bold;
	text-align: left;
}

h5 {
	font-weight: normal;
	text-align: left;
}

h6 {
	font-weight: normal;
	text-align: left;
}
/* ----------- MODULES ----------  */

/* ------ breadcrumb ------- */
ul.breadcrumb,
ul.breadcrumb li { 
    display: inline-block; 
}
ul.breadcrumb li {
    margin: 5px;
}
/* ------ MENUS ----------------  */

/* ======= TOPMENU =========== */

#topmenu a {
	font-size: 0.95em !important;
}

#topmenu div.moduletable h3 {
	display: none;
}

#topmenu   {
	margin: 0;
	padding: 0;
        width: 100%;
}

#topmenu .menu {
    display: block;
    list-style: none;
    margin: 10px 0 5px;
    padding: 0;
    background: #a70202;
}

#topmenu .menu > li {
    display: table-cell;
    white-space:nowrap;
    margin: 5px 0;
}

#topmenu .menu > li:last-child {
    border-right: none;
}

#topmenu  .menu > li > a {
    display: table-cell;
    text-align: center;
    width: 1000px;
    padding: 0 15px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
}

#topmenu .menu li a{	
	text-decoration: none;

    color: #ffffff;
}

#topmenu .menu > li ul {
    position: absolute;
    display: block;
    margin-left: 0;
    padding-left: 0;
    z-index: 300;
    background: #fff;
    border: 1px solid #000;
}

html#range_2 #topmenu .menu > li ul ul,
html#range_3 #topmenu .menu > li ul ul,
html#range_4 #topmenu .menu > li ul ul,
html#range_5 #topmenu .menu > li ul ul{
    left: 100%;
    margin-top: -2em;
}

#topmenu .menu > li ul li {
    display: block;
    
}

#topmenu .menu > li ul li a {
    
    padding: 5px 20px;
    display: block;
}

.menu_knop {
    display: none;
}

html#range_0 #topmenu,
html#range_1 #topmenu {
    
    margin-top: 10px;
}

html#range_0 #topmenu .menu_knop, 
html#range_1 #topmenu .menu_knop {
    display: inline-block;
    padding: 19px;
    border: 2px solid;
    border-radius: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    color: #e30000;
    background: #fff;
}

html#range_0 #topmenu .menu, 
html#range_1 #topmenu .menu  {
    display: none;
    background-color: #fff;
    border: 2px solid;
    border-radius: 5px;
    z-index: 1000;
    position: relative;
}

html#range_0 #topmenu .menu  li, 
html#range_1 #topmenu .menu  li,
html#range_0 #topmenu .menu  ul,
html#range_1 #topmenu .menu  ul,
html#range_0 #topmenu .menu  li a,
html#range_1 #topmenu .menu  li a{
    display: block;
    position: relative;
    text-align: left;
    white-space: normal;
    width: auto;
    box-sizing: border-box;
}

html#range_0 #topmenu .menu > li,
html#range_1 #topmenu .menu > li {
    padding-left: 10%;
    overflow-y: hidden;
    border-right: none;
}

html#range_0 #topmenu .menu  li a,
html#range_1 #topmenu .menu  li a,
html#range_0 #topmenu .menu  li ul, 
html#range_1 #topmenu .menu  li ul {
    margin-left: 40px;
    padding-left: 0;
}

html#range_0 #topmenu .menu  li ul, 
html#range_1 #topmenu .menu  li ul {
    margin-left: 7%;
}

html#range_0 #topmenu .menu  li ul, 
html#range_1 #topmenu .menu  li ul {
    width: 85%;
    margin-bottom: 5px;
    border-radius: 5px;
}

html#range_0 #topmenu .menu  li:before,
html#range_1 #topmenu .menu  li:before {
    display: inline-block;
    content:'';
    padding: 0 11px;
    height: 20px;
    float: left;
}

html#range_0 #topmenu .menu  span.menu_dutton_lev:before,
html#range_1 #topmenu .menu  span.menu_dutton_lev:before {
    font-family:'FontAwesome';
    content:'\f175';
    display: inline-block;
    float: left;
    z-index: 10;
    padding: 0 8px;
    border: 2px solid;
    border-radius: 4px;
    height: 27px;
    margin-left: -20px;
    cursor: pointer;
}

html#range_0 #topmenu .menu  span.menu_dutton_lev.menu_dutton_lev_up:before,
html#range_1 #topmenu .menu  span.menu_dutton_lev.menu_dutton_lev_up:before {
    content:'\f176';
}

html#range_0 #topmenu .menu  li.parent > a,
html#range_1 #topmenu .menu  li.parent > a {
    margin-left: 40px;
}

/* ----------- FOOTER -------------- */

#footer {
    margin-top: 40px;
}

/* ============== ARTICLES  =============== */

/* ------ Список материалов категории ------------- */

span.image {
    display: inline-block;
    background-position: center center;
    background-size: cover;
    width: 160px;
    height: 190px;
}

/* ---------------------  PAGINATION  --------------------- */
div.pagenavcounter {
	margin: 10px 0 0 0;
	padding: 0;
	text-align: left;
}

ul.pagenav {
	list-style-type: none;
	padding: 0;
	margin-top: 10px;
	text-align: center;
}

ul.pagenav li {
	display: inline;
	padding: 0px 4px;
	margin: 0;
}


ul.pagenav li a {
	display: inline;
	text-decoration: none
}

div.pagination {
	margin: 10px 0;
	padding: 10px 0;
	text-align: center;
}

div.pagination ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div.pagination li {
	display: inline;
	padding: 0;
	text-align: left;
	margin: 0 5px;
	background: #212529;
    border: 1px solid #9e9e9e;
    padding: 4px;
    border-radius: 3px;
    color: #fff;
}
	div.pagination li a {
		color:#fff;
	}
.counter {
  	padding: 5px;
}

div#content div.pagination p.counter {
	font-weight: bold;
	text-align: center;
}

/* --------------------- LOGIN/LOGOUT --------------------- */
div.login fieldset {
	border: 0;
	padding-left:0px;	
}

div.login-fields {
	margin: 10px 0 0 0;
}

div.login-fields label {
	display: inline-block;
	float:left;
	width: 100px;
}


div.login fieldset button.button {
	margin-top: 10px;
}

div.logout button.button {
	margin-top: 10px;
}



/* ---------------------  CONTACT --------------------- */


/*стиль выравнивания картинок для десктопа*/

.img-article-left {
    float:left;
    margin: 0 17px 4px 0;
}
.img-article-right {
    float:right;
    margin: 0 0 4px 17px;
}


/*For index.php*/
.glavnaya .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

/* ---------------------  new code --------------------- */


.bl1 {
    background: #adaea9 url("/images/template/shapka.jpg") center no-repeat;
}

.menu {
    
}

.bl1-1 img {
    padding: 26px 0;
}


.bl2 {
    background: #f1f1f1 url("/images/template/shapka2.jpg") center;
    /*background-size: cover;*/
}

.bl2-1 p {
    margin-top: 17px;
    line-height: 151%;
}
    .bl2-1 p a {
        text-decoration: underline;
        color: #a70202;
    }
    .bl2-2 ul {
        margin-top: 16px;
        font-size: 0.9em;
    }
.bl4-0 {
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85em;
}
    .bl4-0 p {
        margin-top: 5px;
    }
    .bl4-0:hover p {
        color: #a70202;
        transition: 0.5s;
    }

.bl4-1 {
    background: #ccc;
    height: 188px;
    margin-top: 10px;
    border: 2px solid #4c5f99;
    transition: 0.5s;
}
.bl4-1:hover {
    margin-top: 5px;
    transition: 1s;
    border: 2px solid #e00202;
}


    .bl4-1-1 {
        background: url("/images/template/perila.jpg") center no-repeat;
    }
    .bl4-1-2 {
        background: url("/images/template/ograjdeniya.jpg") center no-repeat;
    }
    .bl4-1-3 {
        background: url("/images/template/navesi.jpg") center no-repeat;
    }
    .bl4-1-4 {
        background: url("/images/template/zabory.jpg") center no-repeat;
    }
    .bl4-1-5 {
        background: url("/images/template/lestnicy.jpg") center no-repeat;
    }
    .bl4-1-6 {
        background: url("/images/template/ograshdeniya.jpg") center no-repeat;
    }
    .bl4-1-7 {
        background: url("/images/template/kalitki.jpg") center no-repeat;
    }
    .bl4-1-8 {
        background: url("/images/template/plazma.jpg") center no-repeat;
    }
    .bl4-1-9 {
        background: url("/images/template/taburet.jpg") center no-repeat;
    }
    .bl4-1-10 {
        background: url("/images/template/mangaly.jpg") center no-repeat;
    }
    .bl4-1-11 {
        background: url("/images/template/podsvechniky.jpg") center no-repeat;
    }
    .bl4-1-12 {
        background: url("/images/template/kaminnie-nabory.jpg") center no-repeat;
    }
    .bl4-1-13 {
        background: url("/images/template/veshalky.jpg") center no-repeat;
    }
    .bl4-1-14 {
        background: url("/images/template/zerkala.jpg") center no-repeat;
    }
    .bl4-1-15 {
        background: url("/images/template/shkafy.jpg") center no-repeat;
    }
    .bl4-1-16 {
        background: url("/images/template/elementy-decora.jpg") center no-repeat;
    }

.bl5 {
    background: url("/images/template/podval.jpg");
    background-size: cover;
    color: #e6e6e6;
}
    .bl5-4 ul li {
        display: table-cell;
        padding: 0 5px;
    }
.bl5-1 img {
    margin-top: 33px;
}
.bl5-2, .bl5-3 {
    padding-top: 28px;
    font-size: 1.2em;
}

.bl5-2 img {
    height: 17px;
    margin-top: -5px;
}
.bl5-3 p {
    margin-left: 63px;
}
    .bl5-3 a {
        color: #da0000;
    }
    .bl5-3 a:hover {
        color: #b70000;
    }
.bl5-4 hr {
    border: none; /* Убираем границу для браузера Firefox */
    color: red; /* Цвет линии для остальных браузеров */
    background-color: #adaea9; /* Цвет линии для браузера Firefox и Opera */
    height: 1px; /* Толщина линии */
}
.bl5-4 ul {
    max-width: 550px;
    margin: 0 auto;
}
.bl5-4 ul li {
    display: inline-block;
    text-align: center;
    margin-left: 0;
}
.bl5-4 ul li a {
    display: block;
    text-transform: uppercase;
    color: #fff;
    font-size: 0.85em;
}
.bl6 {
    background: #000000;
    color: #777777;
    text-align: right;
    font-size: 0.7em;
}
    .bl6 a {

        color: #777777;
    }
        .bl6-1 p {
            margin-bottom: 5px;
        }

.breadcrumb {
    background: inherit !important;
}

.eventgallery-events-gridlist h2 {
  font-size:1.2em !important;
}


#footerwrap {
    padding-right: 0;
    padding-left: 0;
}
.nav-child li {
    background: #4f4f4f;
    margin-left: 0;
    padding-left: 0;
}
.nav-child li:hover {
    background: #f10000;
    transition: 0.7s;
}
.nav-child li a {
    margin-left: 0;
    padding-left: 0;
}
.tel4 a {
    font-size: 1.6em;
}
.zag {
    text-transform: uppercase;
}
.btn-primary {
    background-color: #da000a !important;
    border-color: #9d1619 !important;
}
#events .item .eg-content .data {
    background-color: rgb(56 56 56 / 80%) !important;
}
#events .imagecount {
    display:none !important;
}
.btn-group-lg>.btn, .btn-lg {
    font-size: 0.9em !important;
}
.cme-form {
    z-index: 1000 !important;
}

/*расстояние между блоками фото*/
#events .item-container {
    padding: 20px;
}
.event-thumbnails {

}

.eventgallery-tile h2 {
  font-size:1em !important;
}
.eventgallery-tile .data {
      background: #fff;
}

#events {
  margin-bottom: 50px;
}

@media (min-width: 800px) and (max-width: 7000px) {
    #topmenu .menu > li {
        position: relative;
        float: left;
        min-width: 10%;
        line-height: inherit;
        box-sizing: border-box;
        display: inherit!important;
    }
    #topmenu .menu {
        display: flex!important;
      	margin-top: 27px;
  	}
    #topmenu .menu > li > a {
      text-align: inherit;
      width: inherit;
      text-transform: inherit;
  	}
}

.pswp__bg {
    background: none !important;
}
.img-caption {
  	color:#000;
  	font-size: 1.5em;
}

.pswp__ui--fit .pswp__caption {
    background-color: #efd712;
}
.mfp-bg {
  	background:none;
}
.wf-mediabox-overlay {
  	    background-color: inherit;
}

/*скрол таблицы на мобильнике*/
@media (min-width: 1020px) and (max-width: 1025px) {
    #topmenu a {
        font-size: 0.8em;
    }
}

@media (max-width: 769px) {
    table {
        display: block;
        overflow-x: auto;
    }
    .bl5-4 {
        display:none;
    }
    .bl5-3 p {
        margin-left: inherit;
    }
    .bl1 {
        background-size: cover;
    }
    #topmenu .menu li a {
        color: #202020;
    }
    #topmenu a {
        font-size: 1.9em;
    }
    #topmenu .menu > li {
        padding-left: 19px !important;
    }
    .nav-child li {
        background: #fff;
    }
      #topmenu .menu li a {
        margin-left: 22px !important;
    }
  	#topmenu .menu li ul {
    margin-left: 15px !important;
      width: 95% !important;
	}
}


@media (max-width: 668px) {
    .img-article-left, .img-article-right, .mobimg {
        float: inherit;
        width: 100%;
        text-align: center;
        margin: 0 auto 5px auto !important;
        padding: 0;
    }
  	.bl1-1 img, .bl5-1 img {
    	width: 90%;
	}

}