* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #212121;
  font-family: 'Helvetica', sans-serif;
  letter-spacing: -1px;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.button {
  width: 344px;
  height: 69px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: #F8FF23;
  color: #000;
  outline: 0;
  text-decoration: none;
  display: block;
  border: 0;
  cursor: pointer;
  font-size: 24px;

  transition: background-color .2s ease;
}

.button:hover {
  background-color: #A8AE16;
}

.button.button_white {
  background-color: #fff;
}

.button.button_white:hover {
  background-color: #F8FF23;
}

.main {
  overflow: hidden;
  position: relative;
}



.header {
  padding: 46px 0;
}

.header .container {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 129px;
  vertical-align: bottom;
}

.menu {
  margin-left: 177px;
  margin-right: auto;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 65px;
}

.menu ul a {
  font-size: 14px;
  color: #ffff;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: color .2s ease;
}

.menu ul a:hover {
  color: #F8FF23;
}

.phone {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: normal;
}




.main-content {
  padding: 100px 0 175px;
}

.main-content .container{
  position: relative;
}

.main-info {
  max-width: 755px;
}

.main-info h1 {
  font-size: 80px;
  line-height: 100%;
  margin-bottom: 40px;
  font-weight: normal;
}

.main-info p {
  font-size: 24px;
  line-height: 120%;
  color: #D4D4D4;
  max-width: 478px;
  margin-bottom: 60px;
}

.main-image {
  position: absolute;
  top: 78px;
  right: -576px;
  z-index: -1;
}

.black-block {
  position: absolute;
  width: 477px;
  height: 910px;
  top: 0;
  background-color: #000;
  z-index: -2;
  right: calc(50% - 780px);
}



.cars {
  background-color: #000;
  padding: 130px 0;
}

.cars h2 {
  font-size: 65px;
  font-weight: normal;
}

.cars-content {
  display: flex;
  padding-top: 60px;
}

.cars-filter {
  margin-right: 77px;
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

.cars-filter ul {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  list-style: none;
}

.cars-filter ul li {
  width: 127px;
  padding: 16px;
  text-align: center;
  border: 1px solid white;
  font-size: 16px;
  color: #fff;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
}

.cars-filter ul li.active,
.cars-filter ul li:hover {
  color: #F8FF23;
  border-color: #F8FF23;
}

.cars-items {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.car {
  background-color: #212121;
  padding: 20px;
  display: flex;
}

.car img {
  max-width: 568px;
}

.car-details {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
}

.car-details h4 {
  font-size: 30px;
  line-height: 120%;
  margin-bottom: 20px;
}

.car-details p {
  font-size: 16px;
  line-height: 120%;
  letter-spacing: normal;
  color: #D4D4D4;
  height: 100px;
}

.car-action {
  margin-top: auto;
}

.car-action ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.car-period {
  font-size: 16px;
  line-height: 120%;
  color: #D4D4D4;
  margin-bottom: 5px;
}

.car-price {
  font-size: 24px;
  line-height: 120%;
}


.car-price span {
  font-size: 16px;
  line-height: 120%;
  color: #D4D4D4;
}

.car-action .button {
  width: 100%;
}




.order {
  padding-top: 159px;
  padding-bottom: 130px;
}

.order .container {
  position: relative;
}

.order img {
  position: absolute;
  top: -25px;
  left: -530px;
}

.order form {
  margin-left: 714px;
  max-width: 486px;
}

.order h3 {
  font-size: 65px;
  font-weight: normal;
  line-height: 100%;
  margin-bottom: 40px;
}

.order p {
  font-size: 24px;
  line-height: 120%;
  color: #D4D4D4;
  margin-bottom: 60px;
  max-width: 445px;
}

.order-form {
  width: 344px;
}

::placeholder {
  color: #D4D4D4;
}

.order-form input {
  width: 100%;
  height: 68px;
  padding: 24px 20px;
  box-sizing: border-box;
  color: #fff;
  border: 1px solid #fff;
  background-color: transparent;
  margin-bottom: 15px;
  font-size: 16px;
  outline: none;

  transition: border-color 0.3s ease;
}

.order-form input.error {
  border-color: red !important;
}

.order-form input.valid {
  border-color: green !important;
}

.order-form input:focus {
  border-color: #F8FF23 !important;
}



.footer {
  padding: 47px 0;
  border-top: 1px solid #5F5F5F;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rights {
  font-size: 14px;
  line-height: 90%;
  letter-spacing: normal;
  font-weight: bold;
  text-transform: uppercase;
}