/*********************************************************************************************/

@media all and (max-width: 1200px) {
    html,
    body {
        min-width: auto;
    }
    .block {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
    #hp_block2_photo {
        position: relative;
        right: -50%;
        top: 0px;
        margin-left: -229px;
        margin-bottom: 30px;
    }
    #hp_block1:after {
        right: 50%;
        margin-right: -128px;
    }
    #hp_block1_items {
        width: 100%;
        margin-left: 0px;
    }
    .hp_block3_item {
        width: 172px;
        height: 170px;
    }
    .hp_block3_item_img {
        width: 172px;
        height: 114px;
        line-height: 114px;
    }
    .hp_block3_item:nth-child(5) {
        margin-left: 30px;
        width: 403px;
        height: 114px;
    }
    .hp_block3_item:nth-child(5) .hp_block3_item_text {
        margin-left: 184px;
        height: 114px;
        line-height: 114px;
    }
    .hp_block3_item:nth-child(6) {
        margin-right: 30px;
        width: 403px;
        height: 114px;
    }
    .hp_block3_item:nth-child(6) .hp_block3_item_text {
        margin-left: 184px;
        height: 114px;
        line-height: 114px;
    }
    #hp_block4_slider {
        width: 830px;
        margin: 0 auto;
    }
    #hp_block5 {
        height: 521px;
    }
    #hp_block5_img {
        display: none;
    }
    #hp_block5_slider {
        margin: 0 auto;
    }
    #hp_block6_slider {
        margin: 0 auto;
        width: 693px;
    }
    #wrap_content {
        padding-bottom: 246px;
    }
    #message_form_wrap {
        position: relative;
        margin: 0 auto;
        margin-bottom: 10px;
    }
    .sertificat_item {
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    .sertificat_item:nth-child(3) {
        margin-right: 20px;
    }
}

/*********************************************************************************************/

@media all and (max-width: 971px) {
    #hp_block3_items {
        width: 460px;
        margin: 0 auto;
    }
    .hp_block3_item:nth-child(1) {
        margin-left: 15px;
    }
    .hp_block3_item:nth-child(4) {
        margin-right: 15px;
    }
    .hp_block3_item:nth-child(5) {
        width: 399px;
        margin-left: 15px;
    }
    .hp_block3_item:nth-child(6) {
        margin-right: 15px;
        width: 399px;
    }
}

/*********************************************************************************************/

@media all and (max-width: 904px) {
    .hp_block1_item:nth-child(3) {
        display: block;
        width: 100%;
        margin-left: 0px;
    }
    #hp_block2_photo {
        position: relative;
        right: 0px;
        top: 0px;
        margin-left: 0px;
        margin-bottom: 30px;
        float: left;
        width: 330px;
        height: 290px;
        line-height: 290px;
    }
    #hp_block2_video {
        float: none;
        clear: both;
        margin: 0 auto;
    }
    #hp_block2_right {
        margin-left: 0px;
        position: absolute;
        top: 61px;
        margin-left: 350px;
        height: 290px;
        overflow: hidden;
    }
    #hp_block2_right_title {
        font-size: 48px;
        line-height: 50px;
        margin-bottom: 5px;
        margin-top: -9px;
    }
    #hp_block2_right h2 {
        font-size: 24px;
        line-height: 26px;
        margin: 0px;
        margin-bottom: 8px;
    }
    #hp_block2_right li {
        font-size: 16px;
        line-height: 18px;
        margin-bottom: 10px;
    }
    #hp_block2 {
        padding-bottom: 40px;
    }
    #hp_block4_slider {
        width: 547px;
    }
    #hp_block5_slider {
        width: 550px;
    }
    #hp_block5_slider .slick-slide {
        width: 550px;
    }
    #hp_block6_slider {
        margin: 0 auto;
        width: 326px;
    }
    #message_form_wrap {
        max-width: 528px;
    }
    #message_form_table2 {
        width: 252px;
        float: left;
    }
    .form_checkbox {
        bottom: 0px;
        right: 46px;
        width: 215px;
    }
    #message_form_wrap {
        padding-bottom: 10px;
    }
	
	#footer{
		padding-top: 20px;
		padding-left: 20px;
		text-align: left;
	}
	
	#footer_tel, #messenger_cons{
		display: block;
		margin: 0px 0px 15px 0px;
	}

}

/*********************************************************************************************/

@media all and (max-width: 640px) {
    #hp_block2line {
        background: linear-gradient(to top, #f3f8fc, #ffffff);
    }
    #logo h1 {
        font-size: 30px;
        line-height: 32px;
        text-align: center;
    }
    p {
        font-size: 13px;
        line-height: 16px;
    }
    .hp_block1_item_img {
        width: 57px;
        height: 57px;
        line-height: 57px;
    }
    .hp_block1_item:nth-child(2) .hp_block1_item_img img {
        width: 62px;
    }
    .hp_block1_item {
        width: 150px;
        margin-right: 0px;
        margin-left: 0px;
        margin-bottom: 0px;
    }
    #hp_block2_photo {
        position: relative;
        right: 0px;
        top: 0px;
        margin-left: 16px;
        margin-bottom: 158px;
        float: left;
        width: 120px;
        height: 105px;
        line-height: 105px;
    }
    #hp_block1:after {
        bottom: -18px;
        right: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #e6f0fc;
        border-right: transparent 47px solid;
        margin-right: -47px;
    }
    #hp_block2_right {
        top: 31px;
        padding-left: 156px;
        height: 264px;
        margin-left: 0px;
    }
    #hp_block2_right_title {
        font-size: 20px;
        line-height: 22px;
        margin-bottom: 5px;
        margin-top: 0px;
    }
    #hp_block2_right h2 {
        font-size: 16px;
        line-height: 19px;
        margin: 0px;
        margin-bottom: 8px;
    }
    #hp_block2_video {
        width: 294px;
        height: 223px;
    }
    #hp_block2 {
        padding-top: 32px;
        padding-bottom: 32px;
		width: 300px;
		padding-left: 0px;
		padding-right: 0px;
    }
    #hp_block2_right li {
        font-size: 13px;
        line-height: 15px;
        margin-bottom: 10px;
    }
    #hp_block2_right li:before {
        width: 15px;
        height: 11px;
        background: transparent url(../img/hp_block2_right_li.png) 0px 0px no-repeat;
        left: -24px;
        top: 1px;
        background-size: 100% 100%;
    }
    #hp_block2_right ul {
        padding-left: 24px;
        position: absolute;
        top: 116px;
        left: 0px;
    }
    .all_block_title {
        font-size: 24px;
        line-height: 26px;
        text-align: center;
    }
    #hp_block3_items {
        width: 320px;
        margin: 0 auto;
    }
    .hp_block3_item {
        margin-left: 5px;
        margin-right: 5px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 130px;
        margin-bottom: 10px;
        height: 163px;
    }
    .hp_block3_item_img {
        width: 130px;
        height: 87px;
        line-height: 87px;
    }
    .hp_block3_item_text p {
        font-size: 14px;
        line-height: 16px;
        margin: 0px;
        max-height: 64px;
        overflow: hidden;
    }
    .hp_block3_item:nth-child(1) {
        margin-left: 5px;
    }
    .hp_block3_item:nth-child(4) {
        margin-right: 5px;
    }
    #hp_block2:after {
        bottom: -18px;
        left: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #f3f8fc;
        border-right: transparent 47px solid;
        margin-left: -47px;
    }
    #hp_block2_video iframe {
    width: 400px;
    margin-left: -50px;
	}
    .hp_block3_item:nth-child(5) {
        width: 290px;
        margin-left: 5px;
        height: 86px;
    }
    .hp_block3_item:nth-child(5) .hp_block3_item_text {
        margin-left: 140px;
        height: 86px;
        line-height: 86px;
    }
    .hp_block3_item:nth-child(6) {
        width: 290px;
        margin-right: 5px;
        height: 86px;
    }
    .hp_block3_item:nth-child(6) .hp_block3_item_text {
        margin-left: 140px;
        height: 86px;
        line-height: 86px;
    }
    #hp_block3 {
        padding-top: 25px;
        padding-bottom: 12px;
        padding-left: 0px;
        padding-right: 0px;
    }
    #logo {
        margin-bottom: 21px;
    }
    #hp_block1_items {
        padding-bottom: 0px;
    }
    #hp_block3:after {
        bottom: -18px;
        left: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #f3f8fc;
        border-right: transparent 47px solid;
        margin-left: -47px;
    }
    #hp_block4_slider {
        width: 264px;
    }
    #hp_block4 {
        padding-top: 25px;
        padding-bottom: 35px;
    }
    #hp_block4:after {
        bottom: -18px;
        left: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #f3f8fc;
        border-right: transparent 47px solid;
        margin-left: -47px;
    }
    #hp_block5 {
        padding-top: 25px;
        height: 327px;
    }
    #hp_block5_slider {
        width: 300px;
    }
    #hp_block5_slider .slick-slide {
        width: 300px;
        height: 220px;
    }
    .hp_block5_slide_title p {
        font-size: 18px;
        line-height: 20px;
    }
    .hp_block5_slide_text p {
        margin: 0px;
        font-size: 13px;
        line-height: 15px;
    }
    #hp_block5 .all_block_title {
        margin-bottom: 20px;
    }
    #hp_block5:after {
        bottom: -18px;
        left: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #b1cef8;
        border-right: transparent 47px solid;
        margin-left: -47px;
    }
    .sertificat_item {
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 20px;
    }
    .sertificat_item:nth-child(3) {
        margin-right: 0px;
    }
    #hp_block6 {
        padding-top: 25px;
    }
    #sertificat_items {
        margin-bottom: 20px;
    }
    .hp_block6_slide_img {
        width: 115px;
        height: 87px;
        line-height: 87px;
    }
    .hp_block6_slide_text {
        margin-left: 120px;
        padding-right: 5px;
    }
    .hp_block6_slide_text p {
        font-size: 16px;
        line-height: 20px;
        padding-top: 14px;
        height: 60px;
    }
    .hp_block6_slide {
        width: 265px;
        height: 87px;
        border-right: none;
    }
    #hp_block6_slider {
        width: 265px;
    }
    #hp_block6_slider .slick-prev {
        left: -28px;
		top: 24px;
    }
    #hp_block6_slider .slick-next {
        right: -28px;
		top: 24px;
    }
    #hp_block6:after {
        bottom: -18px;
        left: 50%;
        border-left: transparent 47px solid;
        border-top: 19px solid #ffffff;
        border-right: transparent 47px solid;
        margin-left: -47px;
    }
    #hp_block7_left {
        float: none;
        width: 300px;
        padding-right: 0px;
        margin: 0 auto;
    }
    #hp_block7_right {
        margin-left: 0px;
        padding-bottom: 36px;
        margin-top: 0px;
    }
    #message_form_wrap {
        max-width: 300px;
    }
    .form_title span {
        font-size: 18px;
    }
    .form_title span:before {
        border: 12px solid transparent;
        border-right: 12px solid #d21c0d;
        left: -24px;
    }
    .form_title span:after {
        border: 12px solid transparent;
        border-left: 12px solid #d21c0d;
        right: -24px;
    }
    #message_form_wrap {
        max-width: 278px;
        padding-bottom: 43px;
    }
    #message_form_table1 {
        width: 278px;
    }
    #message_form_table2 {
        width: 278px;
        margin-top: 1px;
    }
    .form_checkbox {
        bottom: 27px;
        width: 278px;
        left: 10px;
    }
    .form_submit_wrap {
        bottom: 6px;
        right: 50%;
        margin-right: -40px;
    }
    #wrap_content {
        padding-bottom: 100px;
    }
    #hp_block7 {
        padding-top: 25px;
    }
}

/*********************************************************************************************/
