/* Large Devices, Wide Screens */

@media only screen and (max-width: 1170px) {
    .container {
        width: 98%;
    }

    .div_5 .blocks {
        justify-content: space-around;
    }

    .div_5 .form input[type='text'] {
        width: 32%;
        max-width: inherit;
    }

    .div_5 .form form {
        justify-content: space-around;
    }
}


/* Medium Devices, Desktops */

@media only screen and (max-width: 1024px) {
    header .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    header .block {
        width: 100%;
        justify-content: center;
    }

    header .text {
        margin-right: 30px;
    }

    .header_menu ul li {
        padding: 15px 20px;
    }

    .div_2 .blocks {
        justify-content: space-around;
    }

    .div_2 .blocks .block {
        width: 45%;
        max-width: inherit;
    }

    .div_3 .blocks {
        justify-content: space-around;
        border: none;
    }

    .div_3 .blocks .img {
        width: 90%;
    }

    .div_3 .blocks .block {
        width: 100%;
    }

    .div_3 .blocks .block .text {
        margin: 40px auto 0;
    }

    .div_4 .blocks .container {
        align-items: flex-start;
        justify-content: space-around;
    }

    .div_4 .blocks .img {
        width: 35%;
        max-width: 700px;
    }

    .div_4 .blocks .block {
        width: 60%;
    }

    .div_5 .form {
        padding: 20px;
    }

    .div_5 .form form {
        max-width: 700px;
        margin: auto;
    }

    .div_5 .form input[type='text'] {
        width: 100%;
        max-width: inherit;
    }

    .div_6 .blocks {
        justify-content: space-around;
        text-align: center;
    }

    .div_6 .blocks .img {
        width: 100%;
        max-width: 400px;
    }

    .div_6 .blocks .block {
        width: 100%;
    }
}


/* Medium Devices, Tabs */

@media only screen and (max-width: 768px) {
    .div_4 .blocks .container {
        flex-direction: column-reverse !important;
        align-items: center;
    }

    .div_4 .blocks .img {
        width: 100%;
        margin-bottom: 50px;
        max-width: 400px;
    }

    .div_4 .blocks .block {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .div_9 .contacts {
        width: 100%;
        padding: 50px 10px;
    }

    .div_9 .contacts .container {
/*        align-items: center;*/
    }

    .div_9 .map {
        width: 100%;
        height: 400px;
    }
}


/* Small Devices, Phones */

@media only screen and (max-width: 767px) {
    body h1 {
        font-size: 30px;
    }

    body h2 {
        font-size: 30px;
    }

    body h3 {
        font-size: 22px;
    }

    body h4 {
        font-size: 20px;
    }

    .header_menu {
        display: none;
    }

    header .block {
        margin: 10px 0;
    }

    header .text {
        text-align: center;
        width: 100%;
        max-width: inherit;
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .review_slider .block {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-shadow: none;
    }

    .review_slider .block .img {
        width: 150px;
        margin-bottom: 20px;
        border-radius: 100%;
        overflow: hidden;
    }

    .review_slider .block .text_block {
        width: 100%;
        padding: 0;
        flex-direction: column;
        text-align: center;

    }

    .review_slider .block .text_block .name {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
