html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.section-title {
  margin-bottom: 50px;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 10px;
}

.header {
  background-color: #151515;
  padding-top: 23px;
  padding-bottom: 30px;
}

#header2 {
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 10;
}


.header-main.fixed {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.9);
  top: 0;
}

.header-main {
  background-color: transparent;
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.menu__list {
  display: flex;
  gap: 35px;
}

.menu__list-link {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

.menu__list-link--active {
  color: #0066ff;
}

.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-weight: 700;
  font-size: 24px;
  padding-bottom: 20px;
}

.footer__menu-item + .footer__menu-item {
  padding-top: 20px;
}

.app {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 52px;
}

.footer__copy {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

.footer__copy-text {
  span {
    text-decoration: underline;
  }
}

.copy__nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.top {
  color: #fff;
  text-align: center;
  padding-top: 250px;
  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;
  display: inline-block;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 700;
  border-radius: 30px;
  width: 100%;
  transition: all 0.3s ease-out;
} */
 .top__link {
  position: relative;
  background-color: #151515;
  padding: 23px;
  max-width: 430px;
  display: inline-block;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 700;
  border-radius: 30px;
  width: 100%;
  transition: all 0.3s ease-out;
  overflow: hidden;
  cursor: pointer;
}

.top__link:hover {
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 33px;
  max-width: 400px;
}

.swiper-slide {
  height: 100vh;
  width: 100%;
}

.swiper::after {
  content: "";
  position: absolute;
  background: rgba(21, 21, 21, 0.3);
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.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 {
  background-color: #fff;
  height: 6px;
}

.why-lease {
  padding: 150px 0;
}

.why-lease__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.why-list__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 {
  font-size: 24px;
  font-weight: 700;
  padding-top: 50px;
}

.how__does-list {
  padding: 50px 0 70px;
  counter-reset: myCounter;
}

.how__does-item {
  list-style-type: none;
  width: 270px;
  position: relative;
  margin-left: auto;
  box-sizing: content-box;
  padding: 19px 0 19px 240px;
  min-height: 63px;
}
.how__does-item + .how__does-item {
  margin-top: 40px;
}

.how__does-item::before {
  counter-increment: myCounter;
  content: counter(myCounter);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: 700;
  background-color: #0066ff;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  color: #fff;
  position: absolute;
  left: 0;
  top: 0;
}

.video {
  padding-bottom: 150px;
}

.video__title {
  margin-bottom: 20px;
}

.video__text {
  flex: 24px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
}

.video__content {
  display: block;
  margin: 0 auto;
}

.important {
  padding-bottom: 150px;
}

.important__title {
  margin-bottom: 20px;
}

.important__text {
  max-width: 580px;
  margin: 0 auto 50px;
}

.important__list {
  column-gap: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.important__item-img {
  margin-bottom: 20px;
}


/* contacts page */

.contacts {
  padding: 100px 0 150px;
}

.contacts__title {
  margin-bottom: 20px;
}

.contacts__text {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 50px;
  padding: 0 100px;
}

.form {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 580px;
  margin: 0 auto;
}

.form__input {
  width: 270px;
  padding: 18px 20px;
  display: inline-block;
  border: 1px solid #0066ff;
  margin-bottom: 50px;
  font-family: "Inter", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.form__input::placeholder,
.form__textarea::placeholder {
  font-family: "Inter", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  opacity: 0.5;
}

.form__textarea {
  width: 100%;
  resize: none;
  padding: 28px 20px;
  font-family: "Inter", serif;
  font-size: 16px;
  border: 1px solid #0066ff;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  height: 290px;
  margin-bottom: 50px;
}

.form__btn {
  text-transform: uppercase;
  color: #fff;
  background-color: #151515;
  font-family: "Inter", serif;
  font-size: 16px;
  font-weight: 400;
  padding: 13px 61px;
  border: none;
  margin: 0 auto;
  border-radius: 10px;
  transition: all 0.2s ease-out;
}

.form__btn:hover {
    background-color: #151515e5;
transform: scale(0.95);
}

.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 {
  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;
  border-radius: 7px;
  transition: all 0.2s ease-out;
}

.blog__item-link:hover {
transform: scale(0.95);
border-radius: 10px;
}

.showmore-link {
  text-transform: uppercase;
  background-color: #151515;
  padding: 13px;
  color: #fff;
  width: 225px;
  margin: 0 auto;
  text-align: center;
  display: block;
  border-radius: 10px;
  transition: all 0.2s ease-out;
}

.showmore-link:hover {
    transform: scale(0.95);
    border-radius: 20px;
  
}

/* new-cars page */

.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 {
  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: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px 40px;
}

.tabs__content-item.tabs__content-item--active {
  display: grid;
}

.card {
  text-align: center;
  transition: all 0.3s ease-out;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.card__content {
  padding: 0 5px;
  border: 1px solid #0066ff;
  border-top: 0;
}

.card__img {
  display: block;
}

.card__title {
  padding-top: 20px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card__text {
  margin-bottom: 20px;
}

.card__price {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}

.card-subtext {
  color: #0066ff;
  border: 1px solid #0066ff;
  border-top: 0;
}

.menu__btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: transparent;
    display: none;
    span {
        height: 1.5px;
        background-color: #fff;
        width: 100%;
        transition: transform 0.3s, opacity 0.3s;
        
    }

}


.menu__btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 5px);
}

.menu__btn.active span:nth-child(2) {
  opacity: 0;
}

.menu__btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -5px);
}

.card__img {
  width: 100%;
}


/* Adaptive */

@media screen and (max-width: 1180px) {
    .important__list {
        gap: 30px 20px;
    }
    .important__item-img {
        width: 100%;
    }
    .tabs__content-item {
      grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1040px) {
    .video__content {
        width: 100%;
    }
    .tabs__btn {
      padding: 0 0 50px;
      gap: 20px;
    }
}


@media screen and (max-width: 860px) {
    .why-lease__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .important__list {
        grid-template-columns: repeat(2, 1fr);
    }
    .tabs__content-item {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
  .top__link {
    padding: 16px;
    max-width: 360px;
    font-size: 28px;
  }

  .swiper-pagination-bullet {
    width: 60px;
  }

  .swiper-pagination-bullet-active {
    height: 4px;
  }
  .title {
    font-size: 70px;
  }
  .video__content {
    height: 400px;
  }
  .footer__menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .card:hover {
  transform: none;
  box-shadow: none;
}
}

@media screen and (max-width: 650px) {
  .tabs__content-item {
      grid-template-columns: repeat(1, 1fr);
    }
    .tabs__btn-item {
      font-size: 18px;
    }
    .blog__item {
      grid-template-columns: repeat(1, 1fr);

    }
    .contacts {
      padding: 50px 0;
    }
    .form__input {
      width: 100%;
      margin-bottom: 30px;
    }
    .contacts__text {
      padding: 0;
    }
}


@media screen and (max-width: 540px) {
  .title {
    font-size: 60px;
  }
  .top__link {
    font-size: 24px;
    max-width: 310px;
  }
  
.swiper-pagination-bullet {
  margin: 0 10px !important;
}
.swiper-pagination-bullet {
  width: 35px;
}

.why-lease__list {
  grid-template-columns: repeat(1, 1fr);
}

.why-lease {
  padding: 50px 0;
}

.section-title {
  font-size: 34px;
}

.how__does-list {
  padding: 30px 0 40px;
}
.how-does {
  padding-bottom: 50px;
}

.video__content {
  height: 200px;
}

.how__does-item {
  margin-right: auto;
  padding: 65px 0 19px 0;
}

.how__does-item::before {
  right: 0;
  margin: 0 auto;
  width: 50px;
  height: 50px;
  font-size: 32px;
}

.video {
  padding-bottom: 50px;
}

.important__list {
  grid-template-columns: repeat(1, 1fr);
}

.app,
.copy__nav-list {
  flex-direction: column;
  align-items: center;
}

.copy__nav-list {
  gap: 20px;
}
.blog__item-title {
      margin-bottom: 10px;
    }
.blog__item-link {
      margin-left: auto;
    }

    .tabs__btn {
      flex-direction: column;
    }
    .choose {
      padding: 50px 0;
    }
  .tabs__content-item {
    gap: 40px;
  }
  .blog {
    padding-bottom: 50px;
  }
}


@media screen and (max-width: 440px) {
    .header {
      padding-top: 10px;
      padding-bottom: 10px;
    }
    .menu__btn {
        display:flex;
    }
    .menu__btn,
    .logo {
        position: relative;
        z-index: 10;
    }
    .menu__list {
      position: fixed;
        /* position: absolute; */
        z-index: 5;
        background-color: #151515;
        flex-direction: column;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        align-items: center;
        padding-top: 200px;
        height: 100vh;
        transform: translateY(-100%);
        
        transition: transform 0.3s ease;
    }
    .menu__list.menu__list--active {
        transform: translateY(0%);

    }
    
}


.top__link::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
  animation: btnanim 12s ease-out infinite; 
}

@keyframes btnanim {
  0% {
    left: -100px;
  }
  10% {
    left: 100%; 
  }
  11% {
    left: 100%; 
  }
  100% {
    left: 100%; 
  }
} 