/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~Start MAP~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.map{
	position: relative;
}
#map{
	height: 1000px;
	width: 100%;
}
.gm-style-iw * {
    display: block;
    width: 100%;
}
.gm-style-iw h4,
.gm-style-iw p {
    margin: 0;
    padding: 0;
}
.gm-style-iw a {
    color: #4272db;
}
.gm-bundled-control > .gmnoprint > div{
    background-color: rgb(0, 172, 239) !important;
}
.gm-bundled-control > .gmnoprint > div > div:nth-child(2){
    background-color: #00709b !important;
}
.map:before{
	display: block;
	content: "";
	position: absolute;
	top: 0;
	width: 100%;
	height: 55px;
	background: url('../img/contacts/bg-top.png') no-repeat top center;
	z-index: 1;
}
.map:after{
	display: block;
	content: "";
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 245px;
	background: url('../img/contacts/bg-bottom.png') no-repeat bottom center;
}
@media (max-width: 991px){
    .map:after{
        height: 215px;
        background: url('../img/products/products-bottom-sm.png') no-repeat top center;
    }
    #map {
        height: 950px;
    }
}
@media (max-width: 767px){
    .map:after{
        height: 120px;
        background: url('../img/contacts/bg-bottom-xs.png') no-repeat top center;
    }
    #map {
        height: 550px;
    }
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~Finish MAP~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Start MAP Open Modal~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.map-modal{
	position: absolute;
	right: 15px;
	bottom: 280px;
	height: 370px;
	width: 407px;
	padding-top: 26px;
	text-align: center;
}
.map-modal .modal-field{
    border-radius: 7px;
    background-color: rgb(250, 250, 250);
    box-shadow: inset 0px 2px 15px 0px rgba(0, 0, 0, 0.2);
    width: 340px;
    height: 50px;
    line-height: 50px;
    display: block;
    margin: 0 auto 10px;
    outline: none;
	border: none;
	padding: 0 30px;
	font-size: 16px;
	letter-spacing: 0.05em;
	font-family: "R-Light";
	resize: none;
}
.map-modal textarea.modal-field {
    height: 100px;
    margin-bottom: 60px;
}
.map-button{
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 4px 3.76px 0.24px rgba(0, 0, 0, 0.15);
    width: 60px;
    height: 60px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
	-moz-user-select: none;
}
.map-button:active{
    box-shadow: none;
}
a.map-button{
    position: relative;
    margin-right: 20px;
}
a.map-button:after{
    background-image: url('../img/icons/x.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    background-size: cover;
    display: block;
   	content: "";
   	-webkit-transition: transform .3s;
    transition: transform .3s;
	margin: 15px 0 0 15px;
}
a.map-button:hover:after{
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
input.map-button{
	background-image: url('../img/icons/plane.png');
    background-repeat: no-repeat;
    background-position: center;
}
.modal-field::-webkit-input-placeholder {color: #919191;}
.modal-field::-moz-placeholder          {color: #919191;}
.modal-field:-moz-placeholder           {color: #919191;}
.modal-field:-ms-input-placeholder      {color: #919191;}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Finish MAP Open Modal~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Start MAP Close Modal~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.map-modal.closed {
	background: none !important;
	width: auto;
	right: 135px;
	padding-top: 0;
	height: auto;
}
.map-modal.closed input,
.map-modal.closed textarea{
	display: none;
}
.map-modal.closed a.map-button{
    background-color: rgb(0, 61, 165);
    box-shadow: 0px 4px 3.76px 0.24px rgba(0, 0, 0, 0.15);
    width: 156px;
    height: 50px;
    border-radius: 25px;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px transparent;
    margin-right: 0;
}
.map-modal.closed a.map-button:hover{
    -webkit-animation-name: hvr-wobble-horizontal;
    animation-name: hvr-wobble-horizontal;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}
.map-modal.closed a.map-button:after{
    background-image: none;
	font-size: 16px;   
    font-family: "R-Bold";
    color: rgb(255, 255, 255);
    text-align: center;
    content: attr(data-after);
    margin: 0;
    height: 50px;
    width: 100%;
    line-height: 48px;
    letter-spacing: 0.025em;
}
.map-modal.closed a.map-button:hover:after{
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Finish MAP Close Modal~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Start MAP Thanks Modal~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
.map-modal.thanks {
    padding-top: 45px;
}
.thanks-massage{
	display: none;
}
.map-modal.thanks .thanks-massage{
	display: block;
}
.thanks-massage .title{
	margin-bottom: 35px;
}
.thanks-content{
	line-height: 36px;
	letter-spacing: 0.05em;
	margin-bottom: 100px
}
.map-modal.thanks input,
.map-modal.thanks textarea{
	display: none;
}
.map-modal.thanks a.map-button{
    margin-right: 0;
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~Finish MAP Thanks Modal~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@media (max-width: 991px){
    .map-modal {
        right: auto;
        bottom: auto;
        left:50%;
        top:50%;
        -webkit-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
                transform: translate(-50%,-50%);
    }
    .map-modal.closed {
        right: auto;
        left: 100px;
        top: 105px;
    }
    .map.opacity-map{
        background-color: #000;
    }
    .map.opacity-map #map{
        opacity: .5;
    }
}

@media (max-width: 767px){
    .map-modal.closed a.map-button:after {
        background-image: url('../img/icons/mail-blue.png');
        content: "";
        margin: 0;
        height: 48px;
        width: 47px;
        line-height: 47px;
    }
    .map-modal.closed a.map-button {
        width: 47px;
        height: 48px;
        background-color: transparent;
    }
    .map-modal.closed {
        right: auto;
        left: 30px;
        top: 80px;
    }
    .map-modal {
        background-image: url('../img/contacts/bg-xs.png')!important;
        height: 320px;
        width: 298px;
        z-index: 1;
    }
    .map-modal .modal-field {
        width: 240px;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
        font-size: 14px;
    }
    .map-modal textarea.modal-field {
        margin-bottom: 40px;
    }
    .map-button {
        width: 40px;
        height: 40px;
    }
    a.map-button:after {
        width: 24px;
        height: 24px;
        margin: 8px 0 0 8px;
    }
    input.map-button {
        background-size: 24px 24px;
    }
}