#mainblocktrb .ImgBlock {
    border: none;
}
#mainblocktrb{
	margin: 2% 0;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #333;
}
#rites{
	width:99%;
	padding:10px 0;
	overflow: hidden;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}
.rite_txt{
	width:100%;
	padding:1% 2%;
}
#rites .form_in,#rites .rite_out{
	width:48%;
	padding:10px 1%;
	float:left;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
}

@media screen and (max-width: 639px) {
	#rites .form_in,#rites .rite_out{
		width:95% !important;
		margin:0 auto;
	}
	#rite_out_hdr {
		font-size: 1em;
	}
}

#rite_form{
    padding: 1% 2%;
    background: rgba(124,101,73,.1);
    border-radius: 6px;
    min-width: 98%;
}

#rite_form {
    float: left;
}
#rite_form label{
	display:block;
	padding-top:1rem;
	padding-bottom:0.3rem;
}
#rite_form #trebaDescription, #rite_form #namesalert{
	font-style:italic;
	padding:4px 2%;
} 
#rite_form #namesalert{
	color:#f00;
}
#rites img{border:none !important}
/*#rite_form label,
#rite_type,
#rite_id {
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}*/
.toPay, .payresult{width:auto;}
.toPay td, .payresult td {padding:4px;}
#rite_form input, #rite_form select, #rite_form textarea, .toPay input, .toPay select,  .toPay  textarea{
    width: 100%;
    padding: 0.5rem !important;
    border: 1px solid #A89F93 !important;
    border-radius: 4px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
	background-color:#fff;
	color: #333;
}

#rite_form .submit, .toPay.submit  {
    text-align: center;
    margin: .5em 0 0;
	color: #333;
}


#add_new {display: none;}
.js #add_new {display: inline;}

.t_treb{
	border-spacing: 0;
	background-image: url(/www/pics/all.jpg);
	background-size: 100%;
}
.t_treb tr{
    border-collapse: separate;
    border-spacing: 0;
	padding:0;
	margin:0;
}
.t_treb td{
	padding:0;
	margin:0;
	border-spacing: 0;
}
.t_treb img{
	width:100%;
	height:auto;
	padding:0;
	margin:0;
}
.rite_out {
    float: left;
    min-height: 490px;
    background-color: white;
    /*padding: 1.5em;*/
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 4px 8px rgba(0,0,0,.2);
    -webkit-box-shadow: 0 4px 8px rgba(0,0,0,.2);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    width: calc(100% - 340px);
}

	#rite_out_hdr {
        font-size: 1.4em;
		font-style: normal;
		text-align: center;
		color: #5D4323;
		padding: 1% 9%;
	}
	
	#rite_out_hdr span {
	   font-family: 'Oranienbaum', serif;
	   font-size: 1.5em;
	   display: none;
	}
	
    #rite_out_names {
        margin: 1em 0 0;
        font-size: 1.2rem;
		counter-reset: list 0;
		padding: 0 9%;
    }
	
	#rite_out_names li{
		/*border-bottom: 1px dotted #DCD2C5;*/
		padding: .2em 0 .2em 1.5em;
		color: #333;
		list-style-type: none;
	}
	
	#rite_out_names li:before {
    	counter-increment: list;
        content: counters(list, '.') '. ';
        display: inline-block;
        float: left;
        font-size: .875em;
        line-height: 1.6;
        width: 2em;
        text-align: right;
        margin-left: -2.5em;
        color: #5D4323;
        opacity: .8;
    }
	

#rite_out_total {
	text-align: right;
	padding: 0 10% 10px 30%;
	font-size: 12px;
	margin: 0;
}

.ImgBlock{
    position: relative;
    width: 100%;    
     overflow:hidden;
}
.ImgBlock::before {
    content: "";
    display: block;
    padding-top: 52%;
}
.ImgBlock img{
     width:100%;
     height:auto;
    position: absolute;
    top: 0;
    left: 0;
     min-height:100%;
	 border:none;
}
.ibbot::before {
    padding-top: 21%;
}
.rite_content {
    background: url(/www/pics/middle.jpg) repeat-y top left; 
    background-size: 100% auto; 
	min-height:232px;
}
#SendRIte{width:600px;height:100px; border:#aaa solid 1px;display:none;}


a.button24:hover { background: linear-gradient(#F0CC3A, #f59500) #f5ae00; }
a.button24:active { background: linear-gradient(#F0CC3A, #f5ae00) #f59500; }
input::-webkit-input-placeholder {
    color: #ccc;
   } 
   input::-moz-placeholder {
    color: #ccc;
   }

.button24 {
    text-shadow:none;
}

.sberblock{
    position: relative;
    display:block; 
	margin:0 auto;
}
.sberQR {
    /*position: relative;*/
    display: block;
    margin: 0 auto;
}
.sberQR img{
    /*top: -20px;
	left: -31px;
    position: relative;*/
}
.sberform {
    padding: 15px;
    border: 1px dotted #bbb;
    margin: 5px;
    display: block;
    margin: 0 auto;
}
span.sberspan, p.sberspan {
    display: block;
    margin: 0 auto;
    padding: 10px 0;
	font-weight:bold;
	font-size:16px;
}
.treba_days{
	margin:10px 0;
}
.treba_days label{
	width: fit-content;
    float: left;
}
.treba_days input{
	width: 36px;
    float: left;
}


@media  screen and (max-width: 767px){
	span.sberspan, p.sberspan, .sberQR {
		display: none;
		}
	table.payresult {
		font-size: 10px;
	}
}
.slow{
	display:none;
}
#showhram, #showcontact{
	float:right;
	font-size:14px;
	padding-left:30px;
	padding-top:5px;
	cursor:pointer;
}
.btns{
	width:100% !important;
}
	
.ranger {
    -webkit-appearance: none;
    width: 99%;
    height: 5px;
    border-radius: 5px;
    background: #4CAF50;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin: 0;
    padding: 0 !important;
}

.ranger::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%; 
    background: #007bff;
    cursor: pointer;
}

.ranger::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}
#priceout {
	width:100%;
    font-size: 2rem;
    font-weight: 800;
    color: #007bff;
	text-align:center;
}
	
#increase{
	display:none;
	text-align:center;
	font-size:1.1rem;
	margin-top:3rem;
	border: 1px solid #aaa;
    padding: 1rem;
    border-radius: 1rem;
    background-color: #fff;
	}
.entry-content .overlay {position: relative !important}	
	
	
.pte_popup-fade {
	display: none;
	font-size:1rem;
}
.pte_popup-fade:before {
	content: '';
	background: #000;
	position: fixed; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	opacity: 0.7;
	z-index: 99;
}
.pte_popup {
    position: fixed;
    top: 10vh;
    left: 20vw;
    width: 60vw;
    background: #fff;
    opacity: 1;
    height: 80vh;
    z-index: 500;
	border-radius: 10px;
	border: 1px solid #aaa;
}
.pte_middle{
	margin: 3vh;
    overflow: auto;
    max-height: 72vh;
}
.pte_popup-close{
    background-image: url(/www/pics/overlay/close.png);
    position: absolute;
    right: -23px;
    top: -22px;
    cursor: pointer;
    height: 35px;
    width: 35px;
    z-index: 10000;
}
#pte_popup_content p{
	font-size:1rem;
}