@media only screen and (max-height: 930px) {
    main .main-inner {
        margin: 60px auto;
    }
}

@media only screen and (max-height: 910px) {
    main .main-inner {
        margin: 50px auto;
    }
}

@media only screen and (max-height: 900px) {
    main .main-inner {
        margin: 40px auto;
    }
}

@media only screen and (max-height: 850px) {
    main .main-inner {
        margin: 20px auto;
    }
}

@media only screen and (max-height: 830px) {
    .wrapper:after {
        display: none;
    }

    html, body {
        height: auto;
    }

    .wrapper {
        margin-bottom: 50px;
        margin-top: 50px;
        min-height: inherit;
    }

    main .main-inner {
        margin: 0 auto;
    }

    footer {
        height: auto;
    }
}


@media only screen and (max-height: 385px) {
    .ui-widget.ui-widget-content {
        padding-top: 45px;
        padding-bottom: 45px;
        height: 260px !important;
    }
    #aaaa{
        width:385px !important;
        height: auto !important;
    }
}

@media only screen and (max-width: 1030px) {
    main,
    .container {
        max-width: 900px;
    }

    footer .footer-menu li {
        padding-left: 70px !important;
    }

    footer .footer-menu .ekeng-list {
        padding-left: 0 !important;
        padding-right: 30px;
    }

    .contacts-link,
    main .left .txt {
        text-align: center;
    }
    #aaaa{
        width: 100% !important;
        height: 100% !important;
    }
}

@media only screen and (max-width: 950px) {

    main,
    .container {
        max-width: 850px;
    }

    footer .footer-menu li {
        padding-left: 50px !important;
    }

    footer .footer-menu .ekeng-list {
        padding-left: 0 !important;
        padding-right: 25px;
    }


    footer .copyright-block  {
        width: 415px;
    }
}

@media only screen and (max-width: 900px) {
    main,
    .container {
        max-width: 800px;
    }

    footer .footer-menu li {
        padding-left: 40px !important;
    }

    footer .footer-menu .ekeng-list {
        padding-left: 0 !important;
        padding-right: 20px;
    }

}

@media only screen and (max-width: 850px) {

    footer .helix-logo {
        margin-top: 22px;
    }

    main, .container {
        max-width: 750px;
    }

    footer .footer-top, footer .footer-menu ul {
        height: auto;
    }

    footer .footer-menu ul {
        display: block;
    }

    footer .footer-top {
        padding: 20px 0;
    }

    footer .footer-top li {
        display: block;
        margin-bottom: 20px;
    }

    footer .footer-top li:last-child {
        margin-bottom: 0;
    }

    footer .footer-menu {
        text-align: center;
    }

    footer .footer-menu a {
        display: inline-block;
    }

    footer .footer-menu .ekeng-list {
        border: none;
        border-bottom: 1px solid rgba(255,255,255,.2);
        padding-bottom: 10px;
        width: auto;
    }

    footer .footer-menu .ekeng-list >div {
        display: inline-block;
    }

    footer .footer-menu .ekeng-list .ekeng-txt {
        display: block;
        padding-right: 0;
        padding-bottom: 10px;
    }

    footer .footer-menu li {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    footer .copyright-block {
        display: inline-block;
        text-align: left;
        float: none;
    }

    footer .footer-bottom {
        text-align: center;
    }

    footer .right-block {
        float: none;
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }


    footer .helix-logo {
        display: block;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 800px) {

    main, .container {
        max-width: 740px;
    }
}

@media only screen and (max-width: 767px) {

    main .right {
        display: block !important;
        float: none;
    }

    html, body {
        height: inherit;
    }

    .wrapper {
        margin-bottom: 0;
        min-height: inherit;
    }

    .wrapper:after {
        display: none;
    }

    main .main-inner {
        margin: 0 !important;
    }

    .wrapper,
    main {
        margin-top: 0 !important;
    }

    main .right.contact-block .contacts-inner,
    main .right.success-block .success-inner,
    main .right .select-out {
        display: block;
        margin: 0 auto;
    }

    main .right .select-out,
    main .right.success-block .success-inner,
    main .right.contact-block .contacts-inner {
        padding: 50px 0;
    }

    main .right.active .select-out {
        padding: 0;
    }

    main .right.active .select-out {
        margin: 50px auto;
    }

    main, .container {
        max-width: inherit;
        width: 100%;
    }

    main {
        height: auto;
        margin-bottom: 0;
    }

    main .left > div {
        padding: 60px 30px;
    }

    main .right, main .left {
        width: 100%;
    }

    main .left {
        float: none;
        height: auto;
        margin-top: 0;
        padding: 0;
    }

    main .main-inner {
        vertical-align: top;
    }
}

@media only screen and (max-width: 520px) {

    main .left > div {
        padding: 40px 15px;
    }

    footer .copyright-block {
        margin: 10px 15px 20px;
        padding-left: 75px;
        width: auto;
    }

    footer .helix-logo {
        margin-top: 0;
    }
    .ui-widget.ui-widget-content {
        padding: 50px;
        height: 275px !important;
        width: 90% !important;
    }
    #aaaa{
        width: 100% !important;
        height: 100% !important;
    }

}

@media only screen and (max-width: 370px) {
    .ui-widget.ui-widget-content {
        height: 320px !important;
    }
    #aaaa{
        width: 100% !important;
        height: 100% !important;
    }
}
