* {
  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: #000000;
  outline: 0;
  text-decoration: none;
  display: block;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.button:hover {
  background-color: #ffffff;
}

.button.white-button {
  background-color: #ffffff;
}

.button.white-button:hover {
  background-color: #f8ff23;
}

.main {
  overflow: hidden;
  position: relative;
}

.black-block {
  position: absolute;
  width: 477px;
  height: 910px;
  top: 0;
  background-color: #000000;
  z-index: -2;
  right: calc(50% - 788px);
}

.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: #ffffff;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
}

.menu ul a:hover {
  color: #f8ff23;
}

.phone {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: normal;
}

.main-content {
  padding-top: 100px;
  padding-bottom: 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: 450px;
  margin-bottom: 60px;
}

.main-image {
  position: absolute;
  top: 78px;
  right: -576px;
  z-index: -1;
}

.cars {
  background-color: #000000;
  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: #ffffff;
  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;
}

.cars-details {
  margin-left: 24px;
  display: flex;
  flex-direction: column;
}

.cars-details h4 {
  font-size: 30px;
  line-height: 120%;
  margin-bottom: 20px;
}

.cars-details p {
  font-size: 16px;
  line-height: 120%;
  letter-spacing: normal;
  color: #d4d4d4;
  height: 100%;
}

.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-weight: normal;
  font-size: 65px;
  line-height: 100%;
  margin-bottom: 40px;
}

.order p {
  font-size: 24px;
  line-height: 120%;
  color: #d4d4d4;
  margin-bottom: 60px;
  max-width: 449px;
}

.order-form {
  width: 344px;
}

::placeholder {
  color: #d4d4d4;
}

.order-form input {
  width: 100%;
  height: 68px;
  padding: 24px 20px;
  box-sizing: border-box;
  color: #ffffff;
  border: 1px solid #ffffff;
  background-color: transparent;
  margin-bottom: 15px;
  font-size: 16px;
  outline: nones;
}

.footer {
  padding: 47px 0;
  border: 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;
}



/* Адаптив */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding: 0 20px;
  }

  .header .container {
    flex-wrap: wrap;
  }

  .menu {
    margin-left: 50px;
    margin-right: 0;
  }

  .menu ul {
    gap: 30px;
  }

  .main-content {
    padding-top: 60px;
    padding-bottom: 100px;
  }

  .main-info h1 {
    font-size: 60px;
  }

  .main-info p {
    font-size: 20px;
  }

  .main-image {
    right: -400px;
    top: 120px;
    max-width: 600px;
  }

  .black-block {
    right: calc(50% - 500px);
    width: 350px;
    height: 700px;
  }

  .cars {
    padding: 80px 0;
  }

  .cars h2 {
    font-size: 50px;
  }

  .cars-content {
    flex-direction: column;
  }

  .cars-filter {
    margin-right: 0;
    margin-bottom: 30px;
    position: static;
  }

  .cars-filter ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .cars-filter ul li {
    width: auto;
    min-width: 100px;
    padding: 12px 16px;
  }

  .car {
    flex-direction: column;
  }

  .car img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .cars-details {
    margin-left: 0;
    margin-top: 20px;
  }

  .order {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .order img {
    position: relative;
    top: 0;
    left: 0;
    max-width: 400px;
    margin: 0 auto 40px;
    display: block;
  }

  .order form {
    margin-left: 0;
    max-width: 100%;
  }

  .order-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Телефоны (480px - 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 95%;
    padding: 0 15px;
  }

  .header {
    padding: 20px 0;
  }

  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .menu {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .menu ul {
    justify-content: center;
    gap: 20px;
  }

  .menu ul a {
    font-size: 12px;
  }

  .phone {
    font-size: 16px;
  }

  .main-content {
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
  }

  .main-info h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .main-info p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .button {
    width: 100%;
    max-width: 300px;
    height: 60px;
    font-size: 18px;
    margin: 0 auto;
  }

  .main-image {
    position: relative;
    top: 0;
    right: 0;
    max-width: 300px;
    margin: 30px auto 0;
    display: block;
  }

  .black-block {
    display: none;
  }

  .cars {
    padding: 60px 0;
  }

  .cars h2 {
    font-size: 36px;
    text-align: center;
  }

  .cars-filter ul {
    gap: 8px;
  }

  .cars-filter ul li {
    font-size: 14px;
    padding: 10px 12px;
    min-width: 80px;
  }

  .cars-details h4 {
    font-size: 24px;
  }

  .car-action ul {
    flex-direction: column;
    gap: 15px;
  }

  .car-action ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .order h3 {
    font-size: 36px;
    text-align: center;
  }

  .order p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
  }

  .order-form input {
    height: 56px;
    font-size: 16px;
  }

  .footer {
    padding: 30px 0;
  }

  .rights {
    font-size: 12px;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
  .main-info h1 {
    font-size: 28px;
  }

  .main-info p {
    font-size: 14px;
  }

  .cars h2 {
    font-size: 28px;
  }

  .order h3 {
    font-size: 28px;
  }

  .menu ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu ul li {
    flex: 1;
    min-width: auto;
    text-align: center;
  }

  .cars-filter ul li {
    font-size: 12px;
    padding: 8px 10px;
    min-width: 70px;
  }

  .car {
    padding: 15px;
  }

  .cars-details h4 {
    font-size: 20px;
  }

  .cars-details p {
    font-size: 14px;
  }

  .car-price {
    font-size: 20px;
  }

  .button {
    height: 50px;
    font-size: 16px;
    padding: 15px;
  }
}

/* viewport  */
@media (max-width: 767px) {
  .menu ul {
    flex-wrap: wrap;
  }
  
  .cars-items {
    row-gap: 20px;
  }
}
