@media only screen and (max-width: 768px) {
    .panel-header {
        display: block;
    }

    h1 {
        margin-bottom: 10px;
        font-size: 35px;
    }

    #content .wrap {
        padding: 20px 0;
    }
    #content iframe,
    #content object {
        max-width: 100% !important;
    }
    .avPlayerContainer {
        max-width: 100% !important;
    }
    .item-page {
        padding: 0 20px;
    }

    #page {
        min-height: auto;
        padding-top: 78px;
    }

    #page .wrap {
        width: auto;
        padding: 20px 0;
    }

    .is_overlay,
    .play-control {
        display: none;
    }

    #header {
        height: auto !important;
        text-align: center;
    }

    #header #slogan {
        display: none;
    }

    #header .inner {
        width: auto;
        max-width: 768px;
        min-width: 320px;
        margin: 0 auto;
    }

    #header .logo {
        float: none;
        position: relative;
        left: -5px;
        padding-top: 18px;
        margin-bottom: 18px;
    }

    #header .logo a {
        display: inline-block;
    }

    #header .social {
        padding-top: 0;
        text-align: center;
        float: none;
        margin-left: 0;
    }

    #header .phone {
        display: none;
        padding-top: 0;
        float: none;
        padding-bottom: 18px;
        border-bottom: 1px solid #5d5c5f;
    }

    #header .phone a {
        font-size: 21px;
        line-height: 42px;
        height: 42px;
    }

    #header .phone img {
        margin-right: 11px;
        top: 0;
        height: 42px;
        width: 42px;
    }

    #header .phone a:hover img {
        opacity: 0;
        top: -20px;
    }

    #header .phone small {
        font-size: 18px;
        text-align: center;
        padding-top: 13px;
    }

    #header .clear {
        margin-bottom: 18px;
    }

    #header .topline {
        display: none;
    }

    #menutop {
        display: none;
    }

    #menutop li {
        float: none;
    }

    #menutop li + li {
        margin-left: 0;
        margin-top: 10px;
    }

    #menutop li:last-child {
        float: none;
    }

    #menutop li a {
        font-size: 20px;
        padding-left: 0;
        line-height: normal;
        height: auto;
    }

    #menutop li a:after,
    #menutop li a:before {
        display: none;
    }

    .moduletable h3 {
        font-size: 30px;
        font-weight: normal;
        color: #000;
        margin-bottom: 20px;
        text-align: center;
    }

    #portfolio h3 {
        margin-left: 0;
    }

    #portfolio .owl-dots {
        display: none;
    }

    #portfolio .owl-nav {
        position: absolute;
        right: 0;
        top: 552px;
        width: 100%;
        z-index: 100;
    }

    #portfolio .owl-nav div {
        left: 0;
        transform: scale(0.5, 0.5);
    }

    #portfolio .owl-nav .owl-prev {
        float: left;
        margin-left: 100px;
    }

    #portfolio .owl-nav .owl-next {
        float: right;
        margin-left: 0;
        margin-right: 100px;
    }

    #portfolio .item {
        padding: 0;
    }

    #portfolio .view,
    .items-leading .lead-item,
    .blog_serv .items-leading .lead-item {
        float: none !important;
        width: 100%;
        height: 230px;
        border-radius: 0 !important;
    }

    .items-leading .lead-item + .lead-item {
        margin-top: 20px !important;
    }

    #portfolio .view + .view {
        margin-top: 20px;
    }

    #portfolio .item + .item {
        margin-top: 20px;
    }

    #portfolio .view:nth-child(2n) {
        float: none;
    }

    #portfolio .view:nth-child(n+3) {
        margin-top: 20px;
    }

    #portfolio .view:nth-child(3) {
        margin-top: 20px;
    }

    #portfolio .image {
        height: 200px;
        overflow: hidden;
    }

    #portfolio img {
        border-radius: 0 !important;
    }

    #portfolio h2 {
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        border-radius: 0;
    }

    #portfolio .mask {
        height: 230px;
        border-radius: 0;
    }

    #portfolio .title {
        font-size: 24px;
        padding-top: 60px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #a057c7;
    }

    #mid-form {
        padding: 0 10px;
    }

    #clients h3,
    #clients p {
        text-align: left;
        margin-left: 3%
    }

    #clients p {
        font-size: 14px !important;
    }

    #clients .wrap {
        padding: 20px 0;
    }

    #clients .item,
    .small-blocks {
        padding: 0 2%;
    }

    #clients .item:after {
        content: '';
        display: table;
        clear: both;
    }

    #clients .item div,
    .small-blocks div {
        padding: 0 5px;
        height: 70px;
        line-height: 70px;
        margin-bottom: 10px;
    }

    #clients .item div:hover,
    .small-blocks div:hover {
        border-radius: 25px;
    }

    #clients .owl-nav {
        right: 0;
        top: 10px;
    }

    #clients .owl-nav div {
        transform: scale(0.5, 0.5);
        float: left;
    }

    #clients .owl-nav .owl-next {
        margin-left: 0;
    }

    #clients a,
    .small-blocks span {
        height: 70px;
    }

    #guarantees {
        padding: 0 10px;
    }

    #qualif p {
        font-size: 22px !important;
        padding: 0 10px;
    }

    #reviews .nspArt,
    .actions .nspArt {
        width: 100%;
        padding: 0 10px !important;
        margin-bottom: 50px;
        float: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    #reviews .nspArt + .nspArt,
    .actions .nspArt + .nspArt {
        margin-left: 0;
    }

    #reviews .nspImageWrapper,
    .actions .nspImageWrapper {
        margin: 0 !important;
        margin-bottom: 10px !important;
        display: block;
        border-radius: 17px;
        overflow: hidden;
    }

    #reviews .nspHeader,
    .actions .nspHeader {
        font-size: 5.5vw;
        text-decoration: none;
    }

    #reviews p,
    .actions p {
        font-size: 4vw;
    }

    #reviews p + p + p,
    .actions p + p + p {
        font-size: 3vw;
    }

    .actions .readon {
        font-size: 4vw;
    }

    #services h3:after {
        border-radius: 0;
        font-size: 20px;
        padding: 20px;
    }

    #services .view {
        float: none;
        width: 100%;
        height: 180px;
        border-radius: 0;
    }

    #services .view + .view {
        margin-left: 0;
        margin-top: 20px;
    }

    #services .view:nth-child(2n) {
        float: none;
    }

    #services img {
        width: 100% !important;
        height: auto !important;
        left: 0;
        border-radius: 0;
    }

    #services h2 {
        width: 100%;
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        border-radius: 0;
    }

    #services .mask {
        height: 200px;
        width: 100%;
        padding-top: 10px;
        z-index: 0;
        opacity: 0;
    }

    #services p {
        font-size: 12px;
        margin-bottom: 10px;
        padding: 0 10px;
    }

    #services a:hover p {
        opacity: 1;
    }

    #services .readmore {
        position: relative;
        bottom: -200px;
        color: #9055af;
        line-height: 21px;
        height: 21px;
        padding: 0 10px;
        font-size: 12px;
    }

    #consult {
        background: url(../images/contacts.jpg) no-repeat center top;
        height: auto;
        padding: 0;
    }

    #consult .wrap {
        width: auto;
        max-width: 768px;
        min-width: 320px;
        padding: 0;
        border-radius: 0;
    }

    #consult h3 {
        font-size: 22px;
        color: #463737;
    }

    #consult .contacts {
        float: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 20px 10px;
    }

    #consult .contacts .title {
        margin-bottom: 5px;
    }

    #consult .contacts div {
        font-size: 12px;
        line-height: 44px;
        height: 44px;
    }

    #consult .contacts span {
        margin-right: 5px;
        line-height: 44px;
        height: 44px;
    }

    #consult .contacts img {
        transform: scale(0.8, 0.8);
    }

    #consult .contacts div:hover img {
        top: -5px;
    }

    #consult .consult-form {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        float: none;
        height: auto;
        width: 100%;
        padding: 20px 10px;
    }

    #consult .text {
        background: rgba(160, 87, 199, 0.92);
        padding: 20px 10px;
        color: #fff;
    }

    #consult li + li {
        margin-top: 10px;
    }

    #footer {
        height: auto;
        width: auto;
        max-width: 768px;
        min-width: 320px;
        padding: 20px 0;
        text-align: center;
    }

    #footer br {
        display: block;
    }

    #footer .logo {
        float: none;
        display: inline-block;
        margin-bottom: 20px;
    }

    #footer .phone {
        float: none;
        display: inline-block;
        padding-top: 0;
    }

    .stata {
        position: relative;
        left: auto;
        top: auto;
    }

    .stata p {
        margin-right: 0;
        float: none;
    }

    .pagination .inactive,
    .pagination a {
        font-size: 4vw;
        margin-bottom: 10px;
    }

    .portfolio-more {
        padding-top: 10px;
        text-align: center;
    }

    .calc .param {
        width: 100%;
        height: auto;
    }

    .calc .param > input[type="text"] {
        margin-bottom: 15px;
    }
}

#callto {
    display: none;
}

@media (max-width: 767px) {
    @-webkit-keyframes callto {
        0% {
            background-color: #fff;
        }

        30% {
            background-color: #fff;
        }

        50% {
            background-color: transparent;
        }

        70% {
            background-color: #fff;
        }

        100% {
            background-color: #fff;
        }
    }

    @keyframes callto {
        0% {
            background-color: #fff;
        }

        30% {
            background-color: #fff;
        }

        50% {
            background-color: transparent;
        }

        70% {
            background-color: #fff;
        }

        100% {
            background-color: #fff;
        }
    }

    #callto {
        background-color: #fff;
        display: block;
        border-radius: 50%;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
        webkit-animation: callto 2s linear 1s infinite;
        animation: callto 2s linear 1s infinite;
    }

    #callto a,
    #callto img {
        display: block;
    }
}
