html {
    box-sizing: border-box; /* Чтобы при использовании паддингов и бордеров значение ширины (размер) элементов не менялось */ 
}

html, 
body {
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit; /* Наследование box-sizing от главного родителя, в данном случае html */    
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 10px;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
    font-size: 48px;
    font-weight: 700;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #151515;
}

.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__btn {
    padding: 0;
    border: none;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

.menu__btn span {
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.menu__list {
    display: flex;
    gap: 35px;
}

.menu__list-link {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.menu__list-link--active {
    color: #0066FF;
}

/* Футер */
.footer {
    padding: 50px 0 32px;
    background-color: #151515;
    color: #fff;    
}

.footer__menu {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
}

.footer__menu-list {
    max-width: 250px;
}

.footer__menu-item + .footer__menu-item {
    padding-top: 20px;
} /* Применяет свойство к вышестоящему соседу */

.footer__menu-title {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 20px;
}

.app {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 52px;
}

.footer__copy {
    max-width: 806px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 12px;
}

.copy__nav-list {
    display: flex;
    justify-content: center;    
    gap: 40px;
}
/* Окончание футера */

.main {
    flex-grow: 1;
}

.top {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;    
    color: #fff;
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
}

.title {
    padding-top: 90px;
    padding-bottom: 40px;
    font-size: 96px;
    font-weight: 700;
}

.top__link {
    padding: 23px;
    max-width: 430px;
    width: 100%; /* Чтобы применилась заданная в значении max-width ширина кнопки 430px */
    display: inline-block;
    background-color: #151515;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 700;  
}


.swiper::after {
    content: '';
    background: rgba(21, 21, 21, .3);
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.swiper-slide {
    height: 130vh;     
    background-repeat: no-repeat;
    background-size: cover;  
    background-position: center;    
}

.swiper-pagination-bullet {
    width: 120px;
    height: 3px;
    background-color: #151515;
    border-radius: 0;
    opacity: 1;
    margin: 0 15px !important;
} 

.swiper-pagination-bullet-active {
    height: 6px;
    background-color: #fff;
}

.swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: 50px;
}

.why-lease {
    padding: 150px 0;
}

.why-lease__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    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;
}

.how-does {
    padding-bottom: 150px;
}

.how-does__inner {
    max-width:  600px;
    margin: 0 auto;
}

.how-does__title {
    padding-top: 50px;
    font-size: 24px;
    font-weight: 700;
}

.how-does__list {
    padding: 50px 0 70px;
    counter-reset: myCounter;
}

.how-does__item {
    list-style-type: none;
    width: 270px;
    margin-left: auto;
    box-sizing: content-box;
    padding: 19px 0 19px 240px;
    min-height: 63px;
    position: relative;
}

.how-does__item + .how-does__item {
    margin-top: 40px; /* Чтобы у первого не было margin-top, а у остальных было */
}

.how-does__item::before {
    counter-increment: myCounter;
    content: counter(myCounter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #0066FF;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    top: 0;
    left: 0;
    position: absolute;
}

.video {
    padding-bottom: 150px;
}

.video__title {
    margin-bottom: 20px;
    text-transform: uppercase;
}

.video__text {
    text-align: center;
    font-size: 24px;
    font-weight: 700;    
    margin-bottom: 50px;
}

.video__content {
    display: block;
    margin: 0 auto;
}

.important {
    margin-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;
}

.contacts {
    padding: 100px 0 150px;
}

.contacts__title {
    margin-bottom: 20px;
}

.contacts__text {
    text-align: center;
    padding: 0 100px;
    font-size: 24px;
    font-weight: 700;    
    margin-bottom: 50px;    
}

.form { 
    max-width: 580px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Чтобы могли переноситься, если мало места */
}

.form__input {
    width: 270px;
    display: inline-block;
    padding: 18px 20px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #151515;
    border: 1px solid #0066FF;
    margin-bottom: 50px;
}

.form__input::placeholder,
.form__textarea::placeholder {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #151515;
    opacity: 0.5;
}

.form__textarea {
    resize: none; /* Для закрепления формы в твёрдом виде и невозможности её искажения */
    width: 100%;
    height: 290px;
    padding: 28px 20px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #151515;
    border: 1px solid #0066FF;
    margin-bottom: 50px;
}

.form__btn {
    text-transform: uppercase;
    margin: 0 auto;    
    padding: 13px 61px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    background-color: #151515;
    border: none;
}

.blog {
    padding-bottom: 150px;
}

.blog__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 70px;
}

.blog__item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blog__item-img {
    width: 100%;
    margin-bottom: 30px;
}

.blog__item-title {
    flex-basis: 446px;
    font-size: 24px;
    font-weight: 700;  
}

.blog__item-link {
    padding: 4px 20px;
    background-color: #0066FF;
    color: #fff;
}

.showmore-link {
    display: block;
    width: 225px;
    text-transform: uppercase;    
    text-align: center;
    margin: 0 auto;    
    padding: 13px;
    background-color: #151515;
    color: #fff;    
}

.choose {
    padding: 100px 0 150px;
}

.tabs {
    margin-bottom: 70px;
}

.tabs__btn {
    padding: 0 150px 100px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.tabs__btn-item {
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    border: none;
    background-color: transparent;    
    cursor: pointer;
}

.tabs__btn-item--active {
    color: #0066FF;
}

.tabs__content-item {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px 40px;
}

.tabs__content-item.tabs__content-item--active {
    display: grid;
}

.card {
    text-align: center;
}

.card__img {
    display: block; /* Чтобы убрать зазор между рамкой и картинкой, нужно сделать картинку блочным эл-том */
    width: 100%;
}

.card__content {
    padding: 0 5px;
    border: 1px solid #0066FF;
    border-top: 0;
}

.card__title {
    padding-top: 20px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.card__text {
    margin-bottom: 20px;
}

.card__price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.card__link {
    display: block;    
    color: #0066FF;
    border: 1px solid #0066FF;
    border-top: 0;
}

@media (max-width: 1180px) {
    .important__list {
        gap: 30px 20px;
    }
    .important__item-img {
        width: 100%;
    }

    /* New Cars */
    .tabs__content-item {
        grid-template-columns: repeat(3, 1fr);
    }
    .tabs__btn {
        padding: 0 0 50px;    
        gap: 20px;
    }

}

@media (max-width: 1040px) {
    .why-lease__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .video__content {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .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;
        padding-top: 200px;
        height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        align-items: center;
        /* justify-content: space-between; */
        transform: translateY(-100%);
        transition: transform .3s ease;
    }
    .menu__list.menu__list--active {
        transform: translateY(0%);
    }
    .important__list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* New Cars */
    .tabs__content-item {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title {/* 
        padding-bottom: 20px; */
        font-size: 70px;
    }
    .top__link {
        padding: 16px;
        max-width: 360px;
        font-size: 28px;
    }
    .swiper-pagination-bullet {
        width: 60px;
    }
    .swiper-pagination-bullet-active {
        height: 4px;
    }
    .video__content {
        height: 400px;
    }
    .footer__menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 650px) {
    /* New Cars */
    .tabs__btn-item {
        font-size: 18px;
    }
    .tabs__content-item {
        grid-template-columns: repeat(1, 1fr);
    }
    .blog__items {
        grid-template-columns: repeat(1, 1fr);
    }

    .contacts {
        padding: 50px 0;
    }
    .contacts__text {
        padding: 0;
    }
    .form__input {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 540px) {
    .title {
        font-size: 60px;
    }
    .top__link {
        max-width: 310px;
        font-size: 24px;
    }
    .swiper-pagination-bullets.swiper-pagination-horizontal {
        margin: 0 10px;
    }
    .swiper-pagination-bullet {
        width: 35px;
    }
    .why-lease {
        padding: 50px 0;
    }
    .section-title {
        font-size: 34px;
    }
    .why-lease__list {
        grid-template-columns: repeat(1, 1fr);
    }
    .how-does {
        padding-bottom: 50px;
    }
    .how-does__list {
        padding: 30px 0 40px;
    }
    .how-does__item {
        padding: 65px 0 19px 0px;
        margin-right: auto;
    }
    .how-does__item::before {
        right: 0;
        margin: 0 auto;
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    .video {
        padding-bottom: 50px;
    }
    .video__content {
        height: 200px;
    }
    .important {
        margin-bottom: 50px;
    }
    .important__list {
        grid-template-columns: repeat(1, 1fr);
    }
    .app,
    .copy__nav-list {
        flex-direction: column;
        align-items: center;
    }
    .app {
        gap: 30px;
    }
    .copy__nav-list {
        gap: 20px;
    }

    /* New Cars */

    .choose {
        padding: 50px 0;
    }
    .tabs__btn {
        flex-direction: column;
    }
    .tabs__content-item {
        gap: 40px;
    }
    .blog {
        padding-bottom: 50px;
    }
    .blog__item-title {
        margin-bottom: 10px;    
    }
    .blog__item-link {
        margin-left: auto;
    }



   

}