/* MEDIA max-width:1164px */

@media(max-width:1164px) {
    .questions-form .image {
        max-width: 50%;
        padding-right: 15px;
    }
    footer a,
    footer p {
        font-size: 16px;
    }
    .footer-logo h1 {
        font-size: 30px;
        line-height: 36px;
    }
    .footer-logo h2 {
        font-size: 12px;
        line-height: 18px;
    }
    .footer .logo {
        width: 30px;
        height: 40px;
    }
    .footer__logo-box p {
        font-size: 16px;
    }
}


/* MEDIA max-width:1023px */

@media(max-width:1023px) {
    .header::before {
        z-index: 7;
    }
    .header-body {
        height: 80px;
        justify-content: space-between;
    }
    .header-logo {
        width: 250px;
    }
    .logo {
        width: 30px;
        height: auto;
    }
    .header-logo h1 {
        font-size: 40px;
        line-height: 45px;
    }
    .header-logo h2 {
        font-size: 15px;
        line-height: 18px;
    }
    .footer-logo h1 {
        padding: 0 5px;
        font-size: 25px;
        font-weight: 500;
        line-height: 30px;
    }
    .footer-logo h2 {
        font-size: 10px;
        font-weight: 300;
        line-height: 15px;
    }
    .header-menu {
        position: fixed;
        flex-direction: column-reverse;
        justify-content: flex-start;
        left: 0;
        padding-top: 100px;
        padding-bottom: 5px;
        top: -100%;
        width: 100%;
        height: auto;
        background-color: #fff;
        box-shadow: 1px 0px 5px 0px black;
        transition: opacity 0.3s linear 0s;
        opacity: 0;
    }
    .header-menu.active {
        top: 0;
        opacity: 1;
    }
    .header__conteiner {
        flex-direction: row;
        flex-basis: unset;
        z-index: 7;
        align-items: center;
    }
    .header__contacts {
        position: relative;
        top: 80px;
        z-index: unset;
    }
    .header__contacts-layer {
        justify-content: center;
    }
    .header-info {
        flex-direction: column;
        padding-top: 10px;
        justify-content: center;
        align-items: flex-start;
        z-index: 8;
        width: unset;
    }
    .social__button {
        display: flex;
        padding: 5px 0;
        justify-content: space-between;
        left: -25px;
        width: 100%;
    }
    .social__button a {
        margin: 0 5px;
        width: 30px;
    }
    .working-time,
    .contact-number {
        margin: 10px;
    }
    .footer .working-time {
        margin: unset;
    }
    .header-list {
        position: unset;
        justify-content: space-around;
        align-items: inherit;
        padding-top: 10px;
    }
    /* BURGER BEGIN */
    .header-burger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        z-index: 8;
    }
    .header-burger.active span {
        transform: scale(0);
    }
    .header-burger.active::before {
        transform: rotate(45deg);
        top: 9px;
    }
    .header-burger.active::after {
        transform: rotate(-45deg);
        bottom: 9px;
    }
    .header-burger span {
        position: absolute;
        left: 0;
        background-color: #372a4b;
        width: 100%;
        height: 2px;
        top: 8px;
        transition: all 0.3s ease 0s;
    }
    .header-burger::before,
    .header-burger::after {
        content: "";
        background-color: #372a4b;
        position: absolute;
        width: 100%;
        height: 2px;
        left: 0;
        transition: all 0.3s ease 0s;
    }
    .header-burger::before {
        top: 0;
    }
    .header-burger::after {
        bottom: 0;
    }
    section {
        padding-top: unset;
    }
    .contacts-list {
        flex-direction: column;
    }
    .contacts-list li {
        padding: 5px 10px;
    }
    .contacts-list *::before,
    .address a::before {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    .contacts-list a,
    .contacts-list p {
        font-size: 14px;
        line-height: 18px;
    }
    .contacts-list .working-time::before {
        top: 10px;
    }
    .footer-body {
        height: unset;
    }
    .footer a {
        font-size: 14px;
        line-height: 18px;
    }
    .footer .contact-number a {
        font-size: 16px;
    }
    .footer a.callback {
        font-size: 14px;
    }
    .footer p.copyright {
        font-size: 10px;
        margin-left: -50px;
    }
    section.primory {
        padding-bottom: unset;
    }
}

@media(max-width:820px) {
    .advantages .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .advantage {
        margin: 5px;
    }
    .questions-form .wrapper {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
}


/* MEDIA max-width:768px */

@media(max-width:768px) {
    .primory .sqere {
        padding-top: 50px;
    }
    h1 {
        font-size: 30px;
        line-height: 40px;
        font-weight: 500;
    }
    h2 {
        font-size: 20px;
        line-height: 25px;
        font-weight: 500;
    }
    .sqere div {
        height: 30px;
        flex-basis: 30px;
        top: 20px;
        left: 20px;
    }
    /* BURGER END  */
    /* Content  */
    .primory .image {
        margin-top: -20px;
        margin-right: -80px;
    }
    .primory .sqere {
        max-width: 100%;
        left: -25px;
    }
    .primory .text {
        margin-top: 45px;
    }
    .advantages .wrapper,
    .materials .wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer p,
    a.footer-link {
        font-size: 13px;
    }
    .footer__logo-box {
        flex-basis: 150px;
    }
    .questions-form-container {
        max-width: 300px;
    }
    .material {
        margin: unset;
        margin-bottom: 15px;
        border: 1px solid #a7aaab;
    }
    .contact-number {
        align-items: center;
    }
    .footer-body {
        flex-direction: column;
        align-items: center;
    }
    .footer-body__container {
        justify-content: center;
        padding: 20px 0;
    }
    .footer__logo-box,
    .footer__info {
        max-width: 200px;
        margin: 30px 50px;
    }
    .contacts-list *::before {
        left: -25px;
    }
}

@media(max-width:655px) {
    .footer-body {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
}

@media(max-width:615px) {
    .header-list {
        position: relative;
        flex-direction: column;
        height: 100px;
        align-items: center;
        justify-content: flex-end;
    }
    .header-menu {
        padding-top: 130px
    }
    hr {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        border-style: double;
        border-width: 4px;
        position: relative;
        left: -12px;
    }
    .hedaer-link {
        line-height: 30px;
    }
}


/* MEDIA max-width:560px */

@media(max-width:560px) {
    .header-info p {
        font-size: 14px;
        line-height: 16px;
    }
    .contact-number .callback,
    .contact-number .callback:hover,
    .contact-number .callback:active,
    .contact-number .callback:visited {
        font-size: 14px;
        line-height: 16px;
    }
    .contact-number .tel,
    .contact-number .tel:hover,
    .contact-number .tel:active,
    .contact-number .tel:visited {
        font-size: 18px;
        line-height: 18px;
    }
    .contact-number {
        align-items: center;
    }
}

@media (max-width:460px) {
    .primory .text {
        position: relative;
    }
    .primory .image {
        position: absolute;
        z-index: -1;
        right: 0;
        top: -40px;
    }
    .footer-logo h1 {
        padding: 0 5px;
        font-size: 20px;
        font-weight: 500;
        line-height: 25px;
    }
    .footer-logo h2 {
        font-size: 8px;
        font-weight: 300;
        line-height: 10px;
    }
    .footer .logo {
        height: 25px;
    }
    .header-info p {
        font-size: 12px;
        line-height: 14px;
    }
    .contact-number .callback,
    .contact-number .callback:hover,
    .contact-number .callback:active,
    .contact-number .callback:visited {
        font-size: 12px;
        line-height: 14px;
    }
    .contact-number .tel,
    .contact-number .tel:hover,
    .contact-number .tel:active,
    .contact-number .tel:visited {
        font-size: 16px;
        line-height: 16px;
    }
    .working-time,
    .contact-number {
        margin: unset;
    }
    .working-time::before,
    .contact-number::before,
    .footer *::before,
    .footer a::before {
        font-size: 10px;
        line-height: 10px;
        width: 15px;
        height: 15px;
        left: -18px
    }
    .info-title::before {
        content: " ";
        background-color: #4dcfe0;
        width: 86px;
        height: 3px;
        position: absolute;
        top: 45px;
        left: unset;
    }
    .social__button {
        left: unset;
    }
    .footer-body__container,
    .footer__contacts-container {
        flex-direction: column;
    }
}