.main_form {
    height: 805px;
    background: url(images/man.gif) center no-repeat, url(images/main_form_fon.jpg) center 100%;
    box-sizing: border-box;
    padding-top: 325px;
}
.wr_main_form_container {
    background: url(images/form_line_fon.png) repeat;
    opacity: 1;
    width: 100%;
}
.main_form_container {
    width: 1280px;
    height: 95px;
    margin: 0px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.main_form:hover .wr_main_form_toggle {
    opacity: 1;
}
.main_form.send_ok:hover .wr_main_form_toggle {
    opacity: 0;
}
.wr_main_form_toggle {
    background: url(images/form_line_fon.png) repeat;
    opacity: 0;
    width: 100%;
    font-size: 20px;
    color: #ffffff;
}
.main_form_toggle {
    width: 1280px;
    height: 30px;
    margin: 0px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.main_form_toggle span {
    margin-right: 30px;
}
.phone_link {
    cursor: pointer;
    color: #ffffff;
}
.service_link {
    cursor: pointer;
    color: #ffffff;
}
.main_form.phone .phone_link {
    font-weight: bold;
    border-bottom: none;
}
.main_form.phone .service_link {
    font-weight: normal;
    border-bottom: dashed 1px #ffffff;
}
.main_form.service .phone_link {
    font-weight: normal;
    border-bottom: dashed 1px #ffffff;
}
.main_form.service .service_link {
    font-weight: bold;
    border-bottom: none;
}
.wr_main_form_input {
    margin-right: 55px;
    max-width: 30%;
}
.main_form.service:hover .wr_main_form_request {
    opacity: 1;
}
.main_form.send_ok:hover .wr_main_form_request {
    opacity: 0;
}
.wr_main_form_request {
    background: url(images/form_line_fon.png) repeat;
    opacity: 0;
    width: 100%;
    font-size: 20px;
    color: #ffffff;
}
.main_form_request {
    width: 1280px;
    margin: 0px auto;
    box-sizing: border-box;
    padding: 20px 0px;
}
.main_form_request textarea {
    font-size: 20px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 7px;
    opacity: 1;
    padding: 5px 10px;
    width: 100%;
    height: 200px;
    box-sizing: border-box;
}
.main_form_request.error textarea {
    background-color: lightpink;
}
.wr_main_form_input.phone, .wr_main_form_input.email {
    display: none;
}
.main_form.phone .wr_main_form_input.phone {
    display: block;
}
.main_form.service .wr_main_form_input.email {
    display: block;
}
.main_form_input {
    box-sizing: border-box;
    border: none;
    height: 50px;
    font-size: 20px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 7px;
    opacity: 1;
    padding: 5px 10px;
}
.wr_main_form_input.error .main_form_input {
    background-color: lightpink;
}
.main_form_button {
    box-sizing: border-box;
    border: solid 1px #ffffff;
    height: 50px;
    font-size: 20px;
    background-color: transparent;
    color: #ffffff;
    border-radius: 7px;
    opacity: 1;
    padding: 8px 10px 4px;
    cursor: pointer;
    display: none;
}
.main_form.phone .main_form_button.phone {
    display: block;
}
.main_form.service .main_form_button.service {
    display: block;
}
.main_form_button:active {
    top: 2px;
}
.callback_title {
    font-size: 20px;
    color: #ffffff;
}
.callback_row {
    font-size: 20px;
    color: #ffffff;
}

@media only screen and (max-device-width: 650px) {
    .main_form {
        display: none;
    }
}
@media only screen and (min-device-width: 651px) and (max-device-width: 1279px) {
    .main_form {
        height: 370px;
        background: url(images/man.gif) center no-repeat, url(images/main_form_fon.jpg) center 100%;
        box-sizing: border-box;
        padding-top: 25px;
    }
    .main_form_container {
        width: 100%;
        box-sizing: border-box;
        padding: 0px 10px;
    }
    .wr_main_form_toggle {
        opacity: 1;
    }
    .main_form_toggle {
        width: 100%;
        box-sizing: border-box;
        padding: 0px 10px;
    }
    .main_form_request {
        width: 100%;
        box-sizing: border-box;
        padding: 0px 10px;
    }
    .main_form_container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .wr_main_form_input {
        margin-right: 0px;
    }
    .main_form_input {
        height: 40px;
        font-size: 18px;
        padding: 5px 10px;
    }
}