html{
    box-sizing: border-box;
}

*,
*::after,
*::before{
    box-sizing: inherit;
    padding: 0;
    margin: 0;
}

html, body{/*Для прижатия футера к низу страницы*/
    height: 100%;
}

body{
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

a{
    color: inherit;
}

.menu__btn{/*Кнопка меню при адаптиве*/
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

.menu__btn span{/*Кнопка меню при адаптиве*/
    height: 2px;
    background-color: #fff;
    width: 100%;
}

.wrapper{/*Для прижатия футера к низу страницы*/
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container{
    max-width: 1220px;
    padding: 0 10px;
    margin: 0 auto;
}

.section-title{
    margin-bottom: 50px;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
}

.header{
    background-color: #151515;
}

.main{/*Для прижатия футера к низу страницы*/
    flex-grow: 1;
}

        /*Home page*/

/*Header*/

.header-main{
    background-color: transparent;
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
}

.header__inner{
    padding-top: 40px;
    padding-bottom: 45px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;/*Выравнивание по низу*/
}

.menu__list{
    display: flex;
    gap: 35px;
}

.menu__list-link{
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.menu__list-link--active{
    color: #0066FF;
}



/*Section Top*/

.top{
    color: #fff;
    text-align: center;
    padding-top: 250px;/*Из-за z-index: 5; падинг нужно смотреть не от верхнего элемента, а от верха страницы*/
    padding-bottom: 50px;
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
}

.title{
    padding-bottom: 40px;
    font-size: 96px;
    font-weight: 700;
}

.top__link{
    background-color: #151515;
    padding: 23px;
    max-width: 430px;
    width: 100%;
    display: inline-block;/*Чтбы к ссылке корректно применялись все стили для блочных элементов*/
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 700;
}

/*Swiper*/

.swiper::after{
    content: '';
    background-color: rgba(21, 21, 21, .3);
    position: absolute;
    z-index: 5;
    /*Чтобы растянуть на весь экран*/
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.swiper-slide{
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.swiper-pagination-bullet{
    width: 120px;
    height: 3px;
    background-color: #151515;
    border-radius: 0;
    opacity: 1;
    margin: 0 15px !important;
}

.swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: 50px;
}

.swiper-pagination-bullet-active{
    height: 6px;
    background-color: #fff;
}

/*Section Why Lease*/

.why-lease{
    padding: 150px 0;
}

.why-lease__list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.why-lease__item{
    text-align: center;
}

.why-lease__item-img{
    margin-bottom: 30px;
}

.why-lease__item-title{
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.why-lease__item-text{
    text-align: left;
}

/*Section Lease Work*/

.lease-work{
    margin-bottom: 150px;
}

.lease-work__inner{
    max-width: 600px;
    margin: 0 auto;
}

.lease-work__subtitle{
    font-size: 24px;
    font-weight: 700;
    padding-top: 50px;
}

.lease-work__list{
    padding: 50px 0 70px;
    counter-reset: myCounter;/*Для стилизации цифр в нумерованном списке*/
}

.lease-work__item{
    list-style-type: none;/*Для стилизации цифр в нумерованном списке*/
    width: 270px;
    position: relative;
    margin-left: auto;
    box-sizing: content-box;
    padding: 19px 0 19px 240px;
    min-height: 63px;
}

.lease-work__item + .lease-work__item{
    margin-top: 40px;
}

.lease-work__item::before{/*Для стилизации цифр в нумерованном списке*/
    counter-increment: myCounter;
    content: counter(myCounter);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    background-color: #0066FF;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
}

/*Section Video*/

.video{
    padding-bottom: 150px;
}

.video-title{
    margin-bottom: 20px;
}

.video-subtitle{
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.video__content{
    margin: 0 auto;
    display: block;/*iframe - по умолчанию строчный элемент */
}

/*Section Important*/

.important{
    padding-bottom: 150px;
}

.important-title{
    margin-bottom: 20px;
}

.important-text{
    max-width: 580px;
    margin: 0 auto 50px;
}

.important__list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.important__item-img{
    margin-bottom: 20px;
}

        /*Page new cars*/

/*Section Choose Cars*/

.choose-cars{
    padding: 100px 0 150px;
}

.tabs__btn{
    padding: 0 150px 100px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.tabs__btn-item{
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background-color: transparent;
    padding: 0;
}

.tabs__btn-item--active{
    color: #0066FF;
}

.tabs__content-item{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 100px;
}

.card{
    text-align: center;
}

.card__content{
    padding: 0 5px;
    border: 1px solid #0066FF;
    border-top: 0;
}

.card__img{
    display: block;
    width: 100%;
}

.card__title{
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.card__text{
    margin-bottom: 20px;
}

.card__price{
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.card__link{
    display: block;
    color: #0066FF;
    border: 1px solid #0066FF;
    border-top: 0;
}

        /*Page contacts*/

/*Section Contacts*/

.contacts{
    padding: 100px 0 150px;
}

.contacts-title{
    margin-bottom: 20px;
}

.contacts-subtitle{
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 50px;
    padding: 0 100px;
}

.contacts__form{
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contacts__form-input{
    width: 270px;
    padding: 18px 20px;
    display: inline-block;
    border: 1px solid #0066FF;
    margin-bottom: 50px;
    /*Для инпутов лучше вегда указывать все стили для шрифтов*/
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
}

.contacts__form-input::placeholder{
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    opacity: .5;
}

.contacts__form-textarea{
    width: 100%;
    resize: none;
    padding: 28px 20px;
    height: 290px;
    border: 1px solid #0066FF;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    margin-bottom: 50px;
}

.contacts__form-textarea::placeholder{
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    opacity: .5;
}

.contacts__form-btn{
    text-transform: uppercase;
    color: #fff;
    background-color: #151515;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    padding: 13px 61px;
    border: none;
    margin: 0 auto;
    cursor: pointer;
}

/*Section Blog*/

.blog{
    padding-bottom: 150px;
}

.blog__items{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog__item{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.blog__item-img{
    margin-bottom: 30px;
    width: 100%;
}

.blog__item-title{
    flex-basis: 446px;
    font-size: 24px;
    font-weight: 700;
}

.blog__item-link{
    color: #fff;
    background-color: #0066FF;
    padding: 4px 20px;
}

.show-more-link{
    text-transform: uppercase;
    color: #fff;
    background-color: #151515;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    padding: 13px 61px;
    width: 225px;
    display: block;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
}

/*Footer*/

.footer{
    background-color: #151515;
    padding: 50px 0 32px;
    color: #fff;
}

.footer__menu{
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

.footer__menu-list{
    max-width: 250px;
}

.footer__menu-title{
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 20px;
}

.footer__menu-item + .footer__menu-item{
    padding-top: 20px;
}

.app{
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.footer__copy{
    max-width: 806px;
    margin: 0 auto 30px;
    text-align: center;
}

.copy__nav-list{
    display: flex;
    justify-content: center;
    gap: 40px;
}

/*Adaptive*/

@media (max-width: 1180px){
        /*Home page*/

    /*Section Important*/
    
    .important__list{
        gap: 30px 20px;
    }

    .important__item-img{
        width: 100%;
    }

        /*Page new cars*/

    /*Section Choose Cars*/
    
    .tabs__content-item{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1040px){
        /*Home page*/

    /*Section Video*/
    
    .video__content{
        width: 100%;
    }

        /*Page new cars*/

    /*Section Choose Cars*/

    .tabs__btn{
        padding: 0 0 50px;
        gap: 20px;
    }
}

@media (max-width: 860px){
        /*Home page*/

    /*Header Main*/
    
    .menu__btn{
        display: flex;
    }

    .menu__btn, .logo{
        position: relative;
        z-index: 10;
    }

    .menu__list{
        position: absolute;
        z-index: 5;
        background-color: #151515;
        flex-direction: column;
        align-items: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding-top: 200px;
        height: 100vh;
        /*Чтобы спрятать меню до нажатия на кнопку*/
        transform: translateY(-100%);
        transition: transform .4s ease;
    }

    .menu__list.menu__list--active{
        transform: translateY(0%);
    }

    /*Section Why Lease*/
    
    .why-lease__list{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /*Section Important*/

    .important__list{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
        /*Home Page*/

    /*Section Top*/
    
    .title{
        font-size: 70px;
    }

    .top__link{
        padding: 16px;
        max-width: 360px;
        font-size: 28px;
    }

    /*Section Slider*/

    .swiper-pagination-bullet{
        width: 60px;
    }

    .swiper-pagination-bullet-active{
        height: 4px;
    }

    /*Section Video*/
    
    .video__content{
        height: 400px;
    }

    /*Footer*/

    .footer__menu{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 650px){
        /*Page new cars*/

    /*Section Choose Cars*/

    .tabs__content-item{
        grid-template-columns: repeat(1, 1fr);
    }

    .tabs__btn-item{
        font-size: 18px;
    }

    .blog__items{
        grid-template-columns: repeat(1, 1fr);
    }

        /*Page Contacts*/

    /*Section Contacts*/
    
    .contacts{
        padding: 50px 0;
    }

    .contacts__form-input{
        width: 100%;
        margin-bottom: 30px;
    }

    .contacts-subtitle{
        padding: 0;
    }
}

@media (max-width: 540px){
        /*Home Page*/

    /*Section Top*/
    
    .title{
        font-size: 60px;
    }

    .top__link{
        max-width: 310px;
        font-size: 24px;
    }

    /*Section Slider*/

    .swiper-pagination-bullet{
        width: 35px;
        margin: 0 10px !important;
    }

    /*Section Why Lease*/

    .why-lease{
        padding: 50px 0;
    }

    .why-lease__list{
        grid-template-columns: repeat(1, 1fr);
    }

    .section-title{
        font-size: 34px;
    }

    /*Section Lease Work*/

    .lease-work{
        padding-bottom: 50px;
        margin-bottom: 25px;
    }

    .lease-work__list{
        padding: 30px 0 40px;
    }

    .lease-work__item{
        padding: 65px 0 19px 0;
        margin-right: auto;
    }

    .lease-work__item::before{
        right: 0;
        margin: 0 auto;
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    /*Section Video*/

    .video{
        padding-bottom: 50px;
    }

    .video__content{
        height: 220px;
    }

    /*Section Important*/

    .important__list{
        grid-template-columns: repeat(1, 1fr);
    }

        /*New Cars Page*/

    /*Section Blog*/

    .choose-cars{
        padding: 50px 0;
    }

    .tabs__btn{
        flex-direction: column;
    }

    .blog{
        padding-bottom: 50px;
    }

    /*Footer*/

    .app, .copy__nav-list{
        flex-direction: column;
        align-items: center;
    }

    .copy__nav-list{
        gap: 20px;
    }
}

@media (max-width: 440px){
        /*New Cars Page*/

    /*Section Blog*/
    
    .blog__item-title{
        margin-bottom: 10px;
    }

    .blog__item-link{
        margin-left: auto;
    }
}