@media (max-width: 479px)
{
    /*---------------
        Main styles
    ---------------*/
    .block_head
    {
        margin-bottom: 20px;
    }


    .block_head.with_carousel
    {
        min-height: 0;
        margin-bottom: 85px;
        padding: 0;

        text-align: center;

        justify-content: center;
    }

    .block_head.with_carousel .title
    {
        width: calc(100% - 20px);
    }


    .owl-carousel .owl-nav button
    {
        top: -68px;
    }

    .owl-carousel .owl-nav button.owl-prev,
    .cases .owl-carousel .owl-nav button.owl-prev
    {
        right: 0;
        left: 50%;

        margin-left: -55px;
    }

    .owl-carousel .owl-nav button.owl-next,
    .cases .owl-carousel .owl-nav button.owl-next
    {
        right: 50%;

        margin-right: -55px;
    }



    .page_head
    {
        margin-bottom: 25px;
    }


    .page_title
    {
        font-size: 25px;
    }



    .text_block h2
    {
        font-size: 20px;
        line-height: 24px;
    }

    .text_block h3
    {
        font-size: 18px;
        line-height: 22px;
    }



    /*---------------
        Header
    ---------------*/
    header .logo a,
    header .logo img
    {
        max-width: 147px;
    }


    header .contacts
    {
        width: 165px;
    }

    header .contacts .links
    {
        margin-top: 8px;
        margin-left: 0;
    }


    header .menu
    {
        padding: 40px;
    }



    /*---------------
        Sidebar
    ---------------*/



    /*---------------
        Main section
    ---------------*/
    .first_section .form
    {
        padding: 35px 40px 40px;
    }



    .portfolio .item .logo img
    {
        max-height: 38px;
    }



    .steps .data .items
    {
        margin-bottom: -15px;
        margin-left: -15px;

        justify-content: center;
    }

    .steps .data .items:before
    {
        background: #ff6000;
    }

    .steps .data .item
    {
        width: calc(33.333% - 15px);
        margin-bottom: 15px;
        margin-left: 15px;
    }


    .steps .video_review .thumb
    {
        width: 160px;
        height: 120px;
    }

    .steps .video_review .info
    {
        width: calc(100% - 180px);
    }

    .steps .video_review .name
    {
        font-size: 20px;
    }

    .steps .video_review .author
    {
        font-size: 14px;
    }


    .steps .form
    {
        margin: 40px auto 0;
        padding: 35px 40px 40px;
    }

    .steps .form .title
    {
        text-align: center;
    }


    .steps .bg
    {
        height: 366px;
    }



    .cases .item
    {
        font-size: 16px;
    }

    .cases .item .info
    {
        padding: 25px;
    }



    .tz .cont .img .flex > *
    {
        width: calc(50% - 5px);
    }

    .tz .cont .img img.logo
    {
        top: 10px;
        left: 10px;

        width: 50px;
    }

    .tz .cont .img .name
    {
        font-size: 12px;
        font-weight: normal;

        top: 35px;
    }

    .tz .cont .img .maximum
    {
        font-size: 17px;

        width: 190px;
        height: 60px;
    }

    .tz .cont .img .maximum b
    {
        font-size: 19px;
    }

    .tz .cont .img .flex:before
    {
        top: 15px;

        width: 60px;
        height: 24px;
        margin-left: -30px;
    }

    .tz .cont .img .flex:after
    {
        bottom: 15px;

        width: 26px;
        height: 26px;
        margin-left: -13px;
    }



    .structure .col .item
    {
        font-size: 13px;
    }



    .clients .slider
    {
        margin-top: 0;
    }



    .articles .article .name
    {
        font-size: 16px;
    }



    #map .ymaps-2-1-74-balloon__content
    {
        background: #fafafa;
    }



    .service_info
    {
        min-height: 527px;
    }

    .service_info .info .title
    {
        font-size: 26px;
        line-height: 32px;
    }



    .service_info .slide
    {
        height: 527px;
    }



    .article_info .head
    {
        margin-top: -10px;
    }



    /*---------------
        Footer
    ---------------*/



    /*---------------
        PopUp
    ---------------*/
    .fancybox-slide--html .fancybox-close-small
    {
        width: 50px;
        height: 50px;
        padding: 10px;
    }


    .modal
    {
        padding: 35px 40px 40px;
    }



    .case_modal
    {
        padding: 20px;

        border-radius: 10px;
    }

    .case_modal .case_title
    {
        font-size: 22px;

        padding-right: 30px;
    }


    .case_modal .info .gallery figure.big,
    .case_modal .info .gallery figure
    {
        width: 100%;
    }

    .case_modal .info .gallery figure .img
    {
        position: relative;

        height: auto;
        padding-bottom: 100%;
    }

    .case_modal .info .gallery figure img
    {
        position: absolute;
        top: 0;
        left: 0;
    }


    .case_modal .stages
    {
        width: calc(100% + 40px);
        margin-right: -20px;
        margin-left: -20px;
        padding: 30px 20px;
    }
}
