#content .middle > .contacts{
    display: flex;
    width: 100%;
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    color: #292929;
    margin: 35px 0;
}
.contact-form{
    position: relative;
}
.contacts .text-block h1{
    font-size: 24px;
    display: block;
    padding: 30px 0;
}
.contacts .text{
    font-weight: 300;
    font-size: 14px;
    line-height: 24px;
    margin: 0 0 15px;
}
.contacts .contact-phone,
.contacts .contact-mail{
    text-decoration: none;
    color: #292929;
    display: block;
    margin: 0 0 5px;
    font-weight: 400;
}
.contacts table td{
    width: 160px;
}
.contacts .contact-value{
    font-weight: 400;
}
.form-block{
    padding: 45px 85px;
    box-sizing: border-box;
    border: solid 1px rgba(84, 78, 78, 0.13);
    box-shadow: 0px 0px 11px rgba(84, 84, 84, 0.38)
}
.contact-form .form-header,
.contact-form .form-subheader{
    text-align: center;
}
.contact-form .form-header{
    font-size: 24px;
}
.contact-form .form-subheader{
    font-size: 14px;
    margin: 25px 0;
}
.contact-input{
    position: relative;
}
.contact-input .form-label{
    color: #9e9e9f;
    font-size: 14px;
    font-weight: 300;
    position: absolute;
    left: 10px;
    top: 10px;
    transition: all 0.5s;
}
.form-input{
    min-width: 410px;
    width: 100%;
    height: 35px;
    border: none;
    border-bottom: solid 1px #9e9e9f;
    font-size: 14px;
    font-weight: 300;
    margin: 0 0 30px;
    display: block;
    box-sizing: border-box;
    padding: 0 10px;
    outline: none;
}
.contact-input .form-input:focus + .form-label,
.contact-input .form-label.active{
    color: #00cde1;
    top: -10px;
}
.contact-input.error .form-input{
    border-bottom: solid 1px #D20006;
}
.contact-input.error .form-label{
    color: #D20006;
}
.contact-send-button{
    width: 100%;
    height: 50px;
    border: none;
    background: #00cde1;
    text-transform: uppercase;
    color: white;
    font-weight: 300;
    font-size: 13px;
    border-radius: 35px;
    outline: none;
}
.contact-form .form-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    background: white;
    z-index: 1;
    align-items: center;
}
.contact-form .close{
    width: 23px;
    height: 23px;
    background-image: url('../../img/close.png');
    background-size: cover;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
.contact-form .close:hover{
    background-image: url('../../img/close-hover.png');
}
.contacts .contact-form .form-overlay,
.contacts .contact-form .form-overlay .message{
    display: none;
}
.contacts .contact-form .form-overlay.active{
    display: flex;
    align-items: center;
    justify-content: center;
}

#map{
    width: 100%;
    margin: 0 auto 50px;
}

@media screen and (max-width: 895px) {
    #content .middle > .contacts{
        flex-wrap: wrap;
    }
    #content .middle > .contacts .text-block{
        flex: 1 1 100%;
        text-align: center;
    }
    #content .middle > .contacts .contact-phones{
        margin: 0 auto;
    }
    .form-block{
        padding: 0;
        margin: 20px auto;
    }
}
@media screen and (max-width: 430px) {
    .form-block{
        width: 100%;
    }
    .contact-form .form-subheader{
        margin: 15px 0;
    }
    .form-input {
        min-width: 100%;
    }
}