/*Перенесено с home*/

.result__img img {
    max-width: 100%;
    height: 180px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.mamma_hub_img {
    background: url(/wp-content/themes/happy-house/assets/img/infra/5.jpg) center no-repeat;
    background-size: cover;
}

.about_project_img {
    background: url(/wp-content/themes/happy-house/assets/img/proj_bg.jpg) center no-repeat;
    background-size: cover;
    background-position: 0% 35%;
}

/* .gallery_slider img {
    transform: translateY(-300px);
} */


/*Перенесено с footer*/

.modal_window__container {
    display: block;
    position: fixed;
    z-index: 80;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.3);
}

#clock {
    margin: 0px auto;
    width: 100%;
    position: relative;
    padding: 14px 14px 28px;
    box-sizing: border-box;
    pointer-events: none;
    text-align: center;
}

#clock div {
    margin: 5px;
    width: 20%;
    text-align: center;
    display: inline-block;
}

#clock div span {
    display: block;
    width: 100%;
    border: #f00 1px solid;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    letter-spacing: 2pt;
    margin-top: 10px;
    border-radius: 4px;
}

.modal__close {
    position: absolute;
    right: 0;
    top: 0px;
    color: #aaa;
    font-weight: bold;
    cursor: pointer;
}

.modal_window {
    max-width: 432px;
    width: 90%;
    max-width: 400px;
    padding: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    background: #ffffff;
    border: 1px solid red;
    border-radius: 4px;
    color: #000000;
}

.text_timer {
    text-align: center;
    /* font-size: 34px; */
	font-size: 26px; 
    padding: 10px 0px;
}

@media only screen and (max-width: 768px) {
    .modal_window {
        width: 98%;
        padding: 16px 0;
    }
    .text_timer {
        font-size: 25px;
    }
}

.promotions_btn {
    padding: 15px;
}

.promotions_btn {
    position: fixed;
    background-color: #ed1c24;
    opacity: .9;
    position: fixed;
    z-index: 1000;
    top: calc( 74% - 120px);
    padding: 8px;
    line-height: 8px;
    text-align: center;
    transform: rotate(-90deg);
    border-radius: 2px;
    width: auto;
    transform-origin: left top;
    padding-left: 12px;
    padding-right: 12px;
}

.virtualnyj_shou_rum {
    top: calc( 32% + 120px);
    right: -168px;
}

.reklama {
    top: calc( 63% + 120px);
    right: -151px;
    /* display: none; */
}

.promotions_btn__link {
    color: #fff;
}

@media only screen and (max-width: 1024px) {
    .promotions_btn {
        display: none;
    }
}

.compass {
    -moz-transform: rotate(45deg);
    /* Для Firefox */
    -ms-transform: rotate(45deg);
    /* Для IE */
    -webkit-transform: rotate(45deg);
    /* Для Safari, Chrome, iOS */
    -o-transform: rotate(45deg);
    /* Для Opera */
    transform: rotate(45deg);
}

.main_name h1 {
    display: inline-block;
}


/*Main page mobile renders*/

@media screen and (max-width:480px) {
    .gitem__1 {
        background: url(/wp-content/themes/happy-house/assets/img/gallery/gal1-mob.jpg) center no-repeat;
        background-size: cover;
    }
    .gitem__2 {
        background: url(/wp-content/themes/happy-house/assets/img/house_render-mob.jpg) center no-repeat;
        background-size: cover;
    }
    .gitem__4 {
        background: url(/wp-content/themes/happy-house/assets/img/gallery/gal4-mob.jpg) center no-repeat;
        background-size: cover;
    }
}

.rassrochka-btn {
    justify-content: center;
    -webkit-justify-content: center;
}

.rassrochka-a {
    margin-right: 20px;
}

.rassrochka-b {
    margin-right: 46px;
}

.rassrochka-btn a {
    text-decoration: none;
}

@media screen and (max-width:575px) {
    .rassrochka-btn {
        flex-direction: column;
    }
    .rassrochka-btn>* {
        margin-right: 0px;
        width: 100%;
    }
}


/*custom*/

.mfp-content .contact_form {
    position: relative;
    width: 95%;
    margin: 40px auto 10px;
    max-width: 1000px;
    padding: 40px;
}

.mfp-content .main_name {
    background: none;
}

.presentation-form-call {
    cursor: pointer;
}

.iti {
    width: 100%;
}

.iti--allow-dropdown input[type=tel] {
    padding-left: 0px !important;
}

#callback-form-main .iti--allow-dropdown input[type=tel] {
    padding-left: 40px !important;
}

.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
    right: auto !important;
    left: 10px !important;
}

#callback-form-main .iti--allow-dropdown .iti__flag-container,
#callback-form-main .iti--separate-dial-code .iti__flag-container {
    right: auto !important;
    left: 55px !important;
}

.div_input_tel {
	margin-bottom: 16px;
}

a.btn_red {
	text-decoration: none;
}

.rngst_phone_button {
	pointer-events: none;
}

.rngst_phone_icon {
	pointer-events: auto;
}

.floor-choose{
    padding: 30px 0;
}

.floor-choose .floor-wrapper{
    position: relative;
    height: 500px;
}

.floor-choose .floor{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .3s;
    width: 100%;
    pointer-events: none;
}

.floor-choose .floor img{
    max-width: 100%;
}
.floor-choose .floor svg{
    width: 100%;
}

/* .svg_links{
    pointer-events: all;
} */
.svg_links path{
    fill: #ed1c24;
    opacity: 0.2;
    transition: 0.4s;
}    .svg_links:hover path{
    opacity: 0.4;
}

.floor-choose .floor.active{
    opacity: 1;
    pointer-events: all;
}

.floor-choose input{
    height: 40px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 40px;
}

.toggle-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	
}

.toggle {
	position: relative;
	display: inline-block;
}

label.toggle-item {
	width: 60px;
	background: #2e394d;
	height: 30px;
	display: inline-block;
	border-radius: 50px;
	margin: 40px;
	position: relative;
	transition: all .3s ease;
	transform-origin: 20% center;
	cursor: pointer;
}
label.toggle-item:before {
    position: absolute;
    content: '';
    display: block;
    transition: all .2s ease;
    width: 2.3em;
    height: 2.3em;
    top: .25em;
    left: .25em;
    border-radius: 2em;
    border: 2px solid #88cf8f;
    transition: .3s ease;
}

.transparent label{
    background: transparent;
    border: 3px solid red;
    height: 34px;
}
.transparent label:before {
    border: 3px solid red;
    width: 20px;
    height: 20px;
    top: 1px;
    left: 4px;
    background: red;
}

#transparent:checked + label:before {
		transform: translateX(21px);
}

.com-inner{
    display: flex;
    flex-direction: column;
    max-width: 40%;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    position: relative;
}

.com-inner .mfp-close-btn-in .mfp-close{
    color: black;
}

.com-inner__img{
    max-width: 100%;
}

.com-inner__content{
    flex-shrink: 0;
    padding: 20px;
}

.com-inner__title{
    margin-bottom: 30px;
    text-align: center;
    font-size: 18px;
}

.com-inner ul li + li{
    margin-top: 10px;
}

@media screen and (max-width: 1023px){
    .com-inner{
        max-width: 95%;
    }

    .floor-choose .floor-wrapper{
        height: 285px;
    }
}


@media screen and (max-width: 640px){

    .floor-choose .floor-wrapper{
        height: 200px;
    }
}

.ico_instagram {
	margin-right: 12px;
}

.personal_information {
	font-size: 12px;
    margin-bottom: 10px;
	line-height: 1.3em;
}

.personal_information_2 {
	font-size: 12px;
    margin-bottom: 10px;
	line-height: 1.3em;
	color: grey;
    text-align: left;
}

.department_maps:hover {
	color: #ed1c24;
}