.header {
    display: grid;
    grid-template-areas: "logo tel" "logo address" "logo time";
    grid-template-columns: 140px 1fr;
    padding-top: 18px;
    padding-bottom: 40px;
}

.header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #D22636;
    grid-area: logo;
}

.header__logo img {
    max-width: 240px;
}

.header__tel {
    display: block;
    grid-area: tel;
    padding-left: 13px;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    color: #000000;
}

.header__address {
    grid-area: address;
    font-size: 12px;
    line-height: 15px;
    color: #0D0D0D;
    padding-left: 13px;

}

.header__time-to-work {
    grid-area: time;
    padding-left: 13px;
    font-size: 10px;
    line-height: 12px;
}

#banner__parallax-1 {
    position: absolute;
    max-width: 194px;
}

#banner__parallax-2 {
    position: absolute;
    max-width: 309px;
    margin-left: 145px;
    margin-top: 38px;
}

#banner__parallax-3 {
    position: absolute;
    max-width: 240px;
    margin-left: 280px;
    margin-top: -329px;
}

.banner {
    background: rgba(210, 210, 208, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding-top: 17px;
    padding-bottom: 35px;
    margin-bottom: 100px;
}

.banner__bg {
    position: absolute;
    right: 0;
    max-width: 194px;
    bottom: -75px;
    z-index: -1;
}

.banner__bg--big {
    position: absolute;
    top: 0;
    max-height: 960px;
    left: 50%;
    z-index: -1;
}

.banner__title {
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    text-align: center;;
}


.banner__subtitle {
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    text-align: center;
}

.banner__btns {
    z-index: 1000;
}

.banner__btn {
    width: 300px;
    margin: 0 auto 25px;
}

.banner__img {
    padding: 20px;
    margin-bottom: -50px;
}

.work {
    background: rgba(217, 217, 217, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 11px;
    margin-bottom: 21px;
}

.work__head {
    display: flex;
    gap: 16px;
    margin-bottom: 5px;
}

.work__logo {
    width: 50px;
    height: 50px;
}

.work__title {
    display: flex;
    align-items: center;
}

.work__read-more {
    color: #D22636;
    cursor: pointer;
}

.cars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cars__title {
    grid-column: 1 / 3;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
}

.car {
    box-shadow: 0px 0px 20px rgba(33, 51, 88, 0.2);
    border-radius: 10px;
    position: relative;
    background: #FFE7E9;
}

.car__title {
    position: absolute;
    left: 9px;
    top: 9px;
    font-size: 20px;
    line-height: 20px;
    color: #D22636;
    max-width: 100px;
}

.car__img {
    padding-top: 10%;
    padding-left: 15%;
}

.russia {
    position: relative;
}

.russia__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    bottom: -40px;
    z-index: -1;
}

.russia__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.query {
    position: relative;
}

.query__content {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 48px;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.query__title {
    font-weight: 700;
    font-size: 20px;
    line-height: 40px;
    color: #FFFFFF;
}

.query__btn {
    width: 270px;
}

.btn--black {
    background: #0d0d0d;
}

.btn--black:hover {
    background: #FFF;
    color: #0d0d0d;
}

.to-work {
    position: relative;
    margin-bottom: 40px;
}

.to-work__wrapper {
    margin-bottom: 20px;
}

.to-work__title {
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    text-transform: uppercase;
    color: #0D0D0D;
    margin-top: 40px;
    margin-bottom: 50px;
}

.to-work__text-slide {
    font-size: 16px;
    line-height: 19px;
    color: #0D0D0D;
    padding-top: 7px;
}

.to-work__button-next,
.to-work__button-prev {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: #D22636;
    border-radius: 50%;
    top: calc(50% - 60px);
    z-index: 1000;
}

.to-work__button-next {
    right: 3px;
}

.to-work__button-prev {
    left: 3px;
}

.to-work__link {
    color: #D22636;
}

.to-work__link:hover {
    color: #D22636;
}

.to-work__bg {
    position: absolute;
    right: 0;
    top: 0;
    max-width: 215px;
    opacity: 0.3;
}

.spares {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
}

.spares .container {
    background: rgba(210, 210, 208, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding-top: 20px;
    padding-bottom: 200px;
}

.spires__bg {
    position: absolute;
    right: -77px;
    top: -6px;
    max-height: 150px;
    width: auto;
    transform: rotate(18.86deg);
    z-index: 1000;
}

.spires__bg--bottom {
    position: absolute;
    bottom: 33px;
    left: 71px;
    transform: rotate(-20deg);
    max-width: 500px;
}

.spares__title {
    font-weight: 700;
    font-size: 32px;
    line-height: 39px;
    text-transform: uppercase;
    color: #0D0D0D;
    margin-bottom: 20px;
    max-width: 230px;
}

.spares__bg {
    position: absolute;
    max-height: 960px;
    top: -300px;
    left: 30%;
    opacity: 0.5;
    z-index: -1;
}

.spare {
    margin-bottom: 15px;
}

.spare__title {
    text-align: center;
}

.avito {
    position: relative;
    background: #D22636;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 40px;
    padding-top: 17px;
    margin-top: -175px;
    overflow: hidden;
    z-index: 1;
}

.avito__logo {
    padding-bottom: 5px;
}

.avito__title {
    font-size: 24px;
    line-height: 40px;
    color: #FFFFFF;
    padding-left: 15px;
    padding-right: 15px;
}

.avito__btn {
    margin-left: 30px;
    margin-right: 30px;
}

.avito__site {
    padding-left: 60px;
    padding-right: 60px;
}

.avito__circle--gray {
    position: absolute;
    width: 450px;
    height: 450px;
    right: -194px;
    bottom: -104px;
    background: #D9DBE7;
    border-radius: 50%;
    z-index: -1;
}

.avito__circle--green {
    position: absolute;
    width: 90px;
    height: 90px;
    left: 30px;
    bottom: -5px;
    background: #63B209;
    border-radius: 50%;
    z-index: -1;
}

.avito__circle--orange {
    position: absolute;
    width: 150px;
    height: 150px;
    right: 25px;
    bottom: -70px;
    background: #FEB105;
    border-radius: 50%;
}

.avito__bottom {
    border-radius: 20px;
    z-index: -1;
    margin-top: -75px;
}

.map {
    padding-top: 25px;
    padding-bottom: 25px;
}

.map__map {
    position: relative;
}

.map__btn {
    position: absolute;
    bottom: 35px;
    left: calc(50% - 180px);
    width: 330px;
}

.footer {
    display: grid;
    grid-template-areas: "info" "logo" "copyright" "devs";
    padding-top: 50px;
    padding-bottom: 50px;
    justify-content: center;
    text-align: center;
}

.footer__info {
    grid-area: info;
}

.footer__logo {
    grid-area: logo;
    margin-top: 50px;
    margin-bottom: 50px;

    max-width: 244px;
}

.footer__copyright {
    grid-area: copyright;
    font-size: 12px;
    line-height: 40px;
}

.footer__devs {
    grid-area: devs;
    font-size: 12px;
    line-height: 40px;
    color: #D22636;
}

.footer__tel {
    display: inline-block;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 11px;
}

.footer__tel:hover {
    color: #000000;
}

.footer__address {
    font-size: 16px;
    line-height: 19px;
}

.footer__work {
    font-size: 16px;
    line-height: 19px;
}

.modal-amg {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(212, 1, 6, 0.3);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.modal-amg__success {
    padding: 30px;
    border-radius: 10px;
    background: #FFF;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-amg.active {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.modal-amg__wrapper {
    display: flex;
    justify-content: center;
    max-width: 750px;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(210, 38, 54, 0.3);
    border-radius: 49px;
}

.modal-amg__logo {
    width: 100px;
    margin: 0 auto 35px;
}

.modal-amg__input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #0D0D0D;
    border-radius: 5px;
    margin-bottom: 35px;
    font-size: 13px;
    line-height: 14px;
    padding: 13px 15px;
}

.modal-amg__form {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 300px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-amg__input::placeholder {
    color: #DEDEDE;
}

.modal-amg__rules {
    position: relative;
}

.modal-amg__text {
    padding-left: 35px;
}

.modal-amg__btn {
    max-width: 270px;
    width: 100%;
    margin-bottom: 30px;
    background: #0D0D0D;
}

.modal-amg__btn:hover {
    background: #D22636;
}

.modal-amg__link {
    color: #D22636;
}

.modal-amg__link:hover {
    color: #D22636;
}

.modal-amg__checkbox {
    position: absolute;
    left: 9px;
    top: 7px;
}

.modal-amg__error {
    font-size: 12px;
    line-height: 30px;
    color: #D22636;
    padding-left: 30px;

}

@media (min-width: 768px) {
    .spares {
        overflow: visible;
    }

    .header {
        grid-template-areas: "logo tel time" "logo address time";
        grid-template-columns: auto auto 1fr;
        padding-bottom: 15px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .header__logo {
        max-width: 245px;
        border-right: none;
    }

    .header__logo img {
        max-width: 240px;
    }

    .header__tel {
        align-self: end;
        justify-self: center;
        font-size: 24px;
        line-height: 29px;
    }

    .header__address {
        align-self: start;
        justify-self: center;
        font-size: 16px;
    }

    .header__time-to-work {
        align-self: center;
        justify-self: start;
        border-left: 1px solid #D22636;
        font-size: 16px;
        line-height: 19px;
        display: flex;
        flex-direction: column;
        margin-left: 30px;
        padding-left: 30px;
    }

    .banner {
        position: relative;
        padding: 40px;
        margin-bottom: 30px;
    }

    .banner__title {
        font-weight: 700;
        font-size: 64px;
        line-height: 77px;
        text-align: left;
        padding-bottom: 44px;
        max-width: 850px;
    }

    .banner__subtitle {
        font-weight: 400;
        font-size: 24px;
        line-height: 45px;
        color: #777777;
        padding-bottom: 108px;
        text-align: left;
        max-width: 500px;
    }

    .banner__img {
        position: absolute;
        right: 0;
        bottom: 57px;
        z-index: -1;
        width: 65%;
        max-width: 876px;
    }

    .banner__btns {
        display: flex;
        gap: 30px;
    }

    .banner__btn {
        margin: 0;
    }

    .works {
        margin-bottom: 75px;
    }

    .cars {
        grid-template-columns: repeat(4, 1fr);
    }

    .cars__title {
        margin-bottom: 60px;
        grid-column: 1 / 5;
    }

    .to-work__title {
        font-size: 48px;
        line-height: 58px;
        color: #D22636;
        margin-bottom: 75px;
        margin-top: 100px;
    }

    .to-work__button-next,
    .to-work__button-prev {
        top: calc(50% - 35px);
    }

    .categories {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .categories__title {
        font-weight: 700;
        font-size: 40px;
        line-height: 22px;
        text-transform: uppercase;
        margin-bottom: 30px;
    }

    .categories__item {
        display: block;
        font-size: 12px;
        line-height: 22px;
        color: #D22636;
        text-decoration: none;
    }

    .categories__item:hover {
        color: #D22636;
        font-weight: 700;
    }

    .spares__title {
        max-width: 100%;
    }

    .spires__subtitle {
        max-width: 70%;
        margin-bottom: 40px;
    }

    .spires__bg {
        right: -76px;
        top: 10px;
        max-height: 200px;
        z-index: 1
    }

    .footer {
        grid-template-areas: ". info ." "copyright logo devs";
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__copyright {
        align-self: center;
        justify-self: start;
    }

    .footer__devs {
        align-self: center;
        justify-self: end;
    }

    .footer__logo {
        margin: 50px auto;
    }
}

@media (min-width: 992px) {
    #banner__parallax-1 {
        max-width: 260px;
        left: 50%;
        top: 50%;
        margin-top: 183px;
        margin-left: 301px;
    }

    .work {
        padding: 22px;
        height: 100%;
        margin: 0;
    }

    .russia__title {
        padding-top: 120px;
        padding-bottom: 280px;
    }

    .query__content {
        justify-content: end;
        padding: 60px 60px;
    }

    .query__content {
        align-items: start;
    }

    .query__title {
        max-width: 740px;
        font-size: 23px;
        line-height: 29px;
    }

    .spires__bg {
        right: -60px;
        top: -7px;
        max-height: 258px;
    }

    .avito {
        display: flex;
        position: relative;
    }

    .avito__block {
        padding-bottom: 30px;
    }

    .avito__site {
        position: absolute;
        right: 0;
        top: 0;
        width: 426px;
    }

    .avito__btn {
        max-width: 270px;
    }

    .avito__title {
        padding-left: 30px;
        padding-bottom: 30px;
        max-width: 513px;
    }

    .avito__logo {
        max-width: 326px;
        padding-left: 15px;
    }

    .avito__circle--gray {
        right: -135px;
    }

    .avito__circle--green {
        right: 370px;
        left: auto;
    }

    .avito__bottom {
        max-height: 330px;
    }
}

@media (min-width: 1400px) {
    .russia__title {
        padding-top: 120px;
        padding-bottom: 280px;
    }

    .query__title {
        padding-bottom: 40px;
        font-size: 32px;
        line-height: 40px;
    }

    .to-work__button-next,
    .to-work__button-prev {
        top: calc(50% - 20px);
    }
}