.container {
    margin: 0 auto;
    width: calc(100% - 30px);
    #padding-right: 15px;
    #padding-left: 15px;
}

@media screen and (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media screen and (min-width: 992px) {
    .container {
        width: 970px;
    }

    .menu-toggle {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .container {
        width: 1140px;
    }
}

/******* Конец сетки ********/


@media screen and (max-width:1024px) {
    main {
        flex-direction: column;
    }

    aside {
        width: 750px;
        margin: 0 auto;
    }

    aside iframe {
        display: none;
    }

    .main-slider {
        margin: 0 auto;
    }

    .content {
        margin: 0 auto;
    }

    nav {
        left: 0;
        margin: 0 auto;
        bottom: -39px;
    }

    .header__blocks__right {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header__blocks__left {
        display: block;
    }

    header .description {
        margin: 0;
    }

    nav ul {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    footer {
        background: url(../img/footer-bg-left.jpg) no-repeat, #d7d7d7;
        background-size: cover;
    }
}

@media screen and (max-width: 992px) {
    .header__blocks__left {
        display: flex;
        width: 100%;
    }

    .header__adress,
    .header__call-back {
        flex-direction: column;
    }

    .header__blocks__left {
        flex-direction: column;
        width: auto;
    }

    .header__blocks__right {
        flex-wrap: nowrap;
    }

    .footer__top {
        flex-direction: column;
    }

    .footer__service {
        justify-content: center;
    }

    .footer__contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header .tel {
        margin-bottom: 10px;
    }

    header .geo {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 825px) {
    .scheme__blocks {
        justify-content: center;
    }

    main,
    .content {
        width: 100%;
    }

    .main-slider {
        width: 100%;
    }

    .service {
        margin: 0 auto;
    }

    aside {
        width: auto;
    }

    .spider__btn {
        position: relative;
    }

    .spider-1,
    .spider-2,
    .spider-3,
    .spider-4,
    .spider-5,
    .spider-6,
    .spider-7,
    .spider-8 {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
    }

    .spider-1 .spider__icon::after,
    .spider-2 .spider__icon::after,
    .spider-3 .spider__icon::after,
    .spider-4 .spider__icon::after,
    .spider-5 .spider__icon::after,
    .spider-6 .spider__icon::after,
    .spider-7 .spider__icon::after,
    .spider-8 .spider__icon::after,
    .spider-1::before,
    .spider-2::before,
    .spider-3::before,
    .spider-4::before,
    .spider-5::before,
    .spider-6::before,
    .spider-7::before,
    .spider-8::before {
        display: none;
    }

    .spider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }

    .spider__btn {
        margin: 30px 15px;
    }

    .spider-1 .spider__icon,
    .spider-2 .spider__icon,
    .spider-3 .spider__icon,
    .spider-4 .spider__icon,
    .spider-5 .spider__icon,
    .spider-6 .spider__icon,
    .spider-7 .spider__icon,
    .spider-8 .spider__icon {
        right: 0;
        left: 0;
        bottom: 0;
        top: -36px;
        margin: 0 auto;
    }

    .spider__middle,
    .spider__middle__img {
        display: none;
    }

    .faq__title {
        width: auto;
    }

    main {
        margin: 0;
    }

    aside {
        margin-top: 50px;
    }
    header {
            background: url(../img/header-left.jpg) no-repeat, #d7d7d7;
    }
}

@media screen and (max-width: 620px) {
    header {
        height: auto;
        background-size: cover;
    }

    .header__blocks {
        flex-direction: column;
    }

    .header__blocks__right {
        flex-wrap: wrap;
    }

    .header__blocks__right {
        margin: 15px 0;
    }

    .footer__copirait {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer__copirait .copirait {
        width: 100%;
        margin-left: 0;
    }

    .footer__linsks {
        text-align: center;
    }

    nav {
        bottom: 0;
        top: 0;
    }

    .nav-menu {
        flex-direction: column;
        height: auto;
    }

    nav ul li:first-child {
        border-radius: 0;
    }

    nav ul li:last-child {
        border-radius: 0 0 10px 10px;
    }

    nav ul li a {
        padding: 20px 17px;
        justify-content: center;
    }

    .menu-toggle {
        border: 0;
        background: rgba(0, 0, 0, 0);
        position: absolute;
        right: 0;
        top: 0;
        height: 40px;
        min-width: 50px;
        cursor: pointer;
        padding-bottom: 3px;
        background: #ff7e00;
    }

    .menu-icon {
        width: 27px;
        display: inline-block;
        vertical-align: middle;
        height: 3px;
        background-color: #fff;
        line-height: 67px;
        -webkit-transition-duration: .3s;
        transition-duration: .3s;
        position: relative;
        border-radius: 5px;
    }

    .menu-icon:after,
    .menu-icon:before {
        content: '';
        position: absolute;
        border-radius: 5px;
    }

    .menu-icon:before {
        width: 27px;
        top: -10px;
        left: 0;
        height: 3px;
        background-color: #fff;
        -webkit-transition-duration: .3s;
        transition-duration: .3s;
    }

    .menu-icon:after {
        width: 27px;
        bottom: -10px;
        height: 3px;
        left: 0;
        background-color: #fff;
        -webkit-transition-duration: .3s;
        transition-duration: .3s;
    }

    .menu-toggle.active .menu-icon {
        width: 0;
    }

    .menu-toggle.active .menu-icon:before {
        -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
        top: 0;
        left: -15px;
    }

    .menu-toggle.active .menu-icon:after {
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        bottom: 0;
        left: -15px;
    }

    nav,
    nav ul {
        width: 100%;
    }

    .nav-menu,
    .nav-services__title-ul {
        overflow: auto;
        opacity: 1;
        visibility: visible;
        display: block;
        max-height: 0;
        -webkit-transition: opacity 230ms ease, visability 230ms ease, max-height 230ms ease;
        -moz-transition: opacity 230ms ease, visability 230ms ease, max-height 230ms ease;
        -ms-transition: opacity 230ms ease, visability 230ms ease, max-height 230ms ease;
        -o-transition: opacity 230ms ease, visability 230ms ease, max-height 230ms ease;
    }

    .nav-menu.active,
    .nav-services__title-ul.active {
        overflow: auto;
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        display: block;

    }

    .nav-services {
        padding: 20px;
    }

    .nav-services__title::after {
        content: '';
        display: block;
        border: solid #0061c4;
        border-width: 0 4px 4px 0;
        display: inline-block;
        padding: 7px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        margin-top: 6px;
        float: right;
    }

    .scheme__blocks {
        margin: 0;
    }
    .contact-page__map__map {
        width: 100%;
    }
}

@media screen and (max-width: 414px) {
    .scheme__icons {
        display: none;
    }
    .header__blocks__right {
        justify-content: center;
    }
}
