* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
}

header {
  background-image: url(../img/main_back.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

header a {
  color: #fff;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
}

.header__menuWrap {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.menu__btn {
  width: 35px;
  padding: 10px 0 3px;
  text-align: center;
  display: none;
}

.menu__btn div {
  height: 3px;
  background-color: #fff;
  margin-bottom: 7px;
  border-radius: 6px;
}

.menu {
  display: flex;
  list-style: none;
  margin-bottom: 0;
}

.menu li a {
  font-family: "Bebas";
  font-size: 26px;
  line-height: 10px;
  padding: 12px;
  transition: all 0.2s ease-in-out;
}

.menu li a:hover {
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  text-shadow: 1px 1px 2px black;
}

.header__contacts {
  text-align: center;
}

.header__phone {
  font-family: "Roboto-medium";
  font-size: 36px;
  line-height: 48px;
}

.header__workTime {
  font-family: "Roboto-light";
  letter-spacing: 0.7px;
}

.main_btn {
  font-family: "Roboto-medium";
  padding: 10px 20px;
  background-color: #F14F4F;
  border: none;
  color: #fff;
  border-radius: 6px;
  margin-top: 12px;
  transition: all 0.2s ease-in-out;
}

.main_btn:hover {
  background-color: #D43232;
}

.header__main {
  padding: 40px 0;
}

h1 {
  font-family: "Bebas";
  font-size: 60px;
  text-align: center;
}

.header__subtitle {
  font-size: 26px;
  text-align: center;
  margin-bottom: 60px;
}

.header__advantages {
  display: flex;
  justify-content: space-between;
}

.header__advantages__item {
  display: flex;
  align-items: center;
}

.header__advantages__text {
  font-family: "Roboto-light";
  line-height: 20px;
  margin-left: 15px;
}

.orderBox {
  margin-top: 60px;
  font-family: "Roboto-light";
  text-align: center;
}

h2 {
  font-size: 26px;
  text-align: center;
}

.section__subtitle {
  font-family: "Roboto-light";
  text-align: center;
}

section {
  padding: 40px 0;
}

#services {
  background-image: url(../img/part_white.png);
  color: #333333;
}

.services__wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.services__item {
  width: 368px;
  margin-top: 32px;
  background-color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.services__item__image {
  max-width: 100%;
  height: 171px;
  margin: 0 auto;
}

.services__item__image img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

.services__item__name {
  font-family: "Roboto-bold";
  line-height: 28px;
  padding: 15px 0 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #D2D2D2;
}

.services__item__descr {
  font-family: "Roboto-light";
  padding-top: 15px;
}

#why {
  background-image: url(../img/part_grey.png);
  color: #fff;
}

.why__wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.why__item {
  width: 31%;
  margin-top: 30px;
  display: flex;
  align-items: center;
}

.why__item__image {
  margin-right: 15px;
}

.why__item__name {
  font-family: "Roboto-bold";
  padding-bottom: 8px;
  line-height: 28px;
  text-transform: uppercase;
}

.why__item__descr {
  font-family: "Roboto-light";
  line-height: 20px;
}

#cars {
  background-image: url(../img/part_white.png);
  color: #333333;
}

.cars__wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cars__item {
  width: 200px;
  margin-top: 25px;
}

.cars__image img {
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

.cars__model {
  font-family: "Roboto-light";
  line-height: 28px;
  margin-top: 10px;
  text-align: center;
}

#buy {
  background-image: url(../img/part_grey.png);
  color: #fff;
}

.buy__wrap {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.buy__item {
  width: 18%;
  text-align: center;
  position: relative;
}

.buy__item:before {
  content: url(../img/buy_arrow.png);
  position: absolute;
  top: 35px;
  right: -40px;
}

.buy__item:last-child:before {
  content: '';
}

.buy__text {
  max-width: 200px;
  margin: 0 auto;
}

.buy__step {
  font-family: "Roboto-bold";
  padding: 13px 0 8px;
}

.buy__descr {
  font-family: "Roboto-light";
}

#order {
  background-image: url(../img/part_white.png);
  color: #000;
}

.order__wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.order__item {
  width: 33%;
}

.order__text {
  font-family: "Roboto-light";
  line-height: 28px;
  margin-bottom: 25px;
}

.order__image {
  text-align: center;
  padding-right: 20px;
}

input, textarea {
  width: 100%;
  height: 45px;
  padding: 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  color: #000;
  border: 1px solid #BFBFBF;
}

textarea {
  height: 85px;
  resize: none;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #000 !important;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #000 !important;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
  color: #000 !important;
}

form {
  padding: 0 10px;
}

form .main_btn {
  margin-top: -4px;
}

.mailSent {
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid green;
  display: none;
}

#map {
  padding: 0;
  position: relative;
}

.map__address {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 10;
  color: #333333;
  text-align: center;
  font-family: "Roboto-light";
  line-height: 28px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px;
}

.map__address__title {
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

footer {
  background-image: url(../img/part_carb.png);
  color: #fff;
}

.footer__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.footer__text {
  font-family: "Roboto-light";
  line-height: 28px;
  text-align: center;
}

/*modal*/
.modal h3 {
  padding: 20px 10px;
  font-family: "Roboto-bold";
  color: #333333;
}

.modal input, textarea {
  margin-bottom: 15px;
}

.modal .main_btn {
  margin-top: 0;
}

.close {
  width: 40px;
  height: 40px;
}

.close span {
  font-size: 35px;
}

/*404*/
.error404{
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  padding: 100px 0 100px;
}
.error404 a{
  font-size: 20px;
  text-decoration: none;
  display: block;
  margin-top: 50px;
}
.error404 img{
  margin-top: 30px;
}

/*------- media  --------*/
@media (max-width: 1199px) {
  .header__top, .footer__wrap {
    flex-wrap: wrap;
  }
  .header__menuWrap {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    position: relative;
  }
  .header__phone {
    font-size: 30px;
  }
  .order__item {
    width: 40%;
  }
  .footer__text {
    order: 3;
    width: 100%;
    margin-top: 32px;
  }
  .services__item {
    width: 32%;
  }
  .cars__item {
    width: 18%;
  }
}

@media (max-width: 991px) {
  h1 {
    font-size: 50px;
  }
  .header__advantages {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .header__advantages__item {
    width: 33%;
    justify-content: center;
    margin-bottom: 30px;
  }
  .header__advantages__text {
    margin: 0 15px;
  }
  header .orderBox {
    margin-top: 30px;
  }
  .services__item {
    width: 47%;
  }
  .why__item {
    width: 47%;
  }
  .buy__wrap {
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 0;
  }
  .buy__item {
    width: 33%;
    margin-top: 40px;
  }
  .buy__item:before {
    content: '';
  }
  .order__item {
    width: 49%;
  }
}

@media (max-width: 767px) {
  .header__logo img {
    max-width: 220px;
  }
  .header__menuWrap {
    order: -3;
    justify-content: flex-start;
    margin-top: 0;
  }
  .menu {
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #fff;
    border-radius: 6px;
    padding-top: 8px;
    display: none;
  }
  .menu li {
    padding: 8px 0;
  }
  .menu li a {
    color: #000;
    padding: 12px 30px;
  }
  .menu li a:hover {
    color: #487DB3;
    text-shadow: none;
  }
  .menu__btn {
    display: block;
  }
  .header__subtitle {
    font-size: 22px;
  }
  .header__advantages__item {
    width: 49%;
    justify-content: flex-start;
  }
  .why__item {
    width: 100%;
    max-width: 350px;
    margin: 30px auto 0;
  }
  .cars__item {
    width: 31%;
  }
  .buy__item {
    display: flex;
    width: 100%;
    align-items: center;
    text-align: left;
  }
  .buy__text {
    max-width: 100%;
    margin: 0;
  }
  .buy__image {
    margin: 10px 20px 0 0;
  }
  .order__wrap {
    flex-wrap: wrap;
  }
  .order__item {
    width: 100%;
  }
  .order__text {
    text-align: center;
  }
  form {
    margin-top: 40px;
  }
  form .main_btn {
    display: block;
    margin: -4px auto 0;
  }
}

@media (max-width: 575px) {
  .header__contacts {
    width: 100%;
  }
  .header__logo {
    width: 100%;
    text-align: center;
    margin: 20px 0 40px;
  }
  .header__logo img {
    max-width: 100%;
  }
  .header__advantages {
    display: block;
  }
  .header__advantages__item {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 30px;
  }
  .services__item {
    width: 100%;
    max-width: 450px;
    margin: 32px auto 0;
  }
  .map__address {
    position: static;
    transform: translate(0, 0);
  }
  #map-yandex {
    height: 400px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 42px;
  }
  .why__item {
    width: 100%;
    max-width: 360px;
    margin: 25px auto 0;
  }
  .cars__item {
    width: 46%;
  }
  .buy__image img {
    max-width: 85px;
  }
  form {
    padding: 0;
  }
  .footer__text {
    font-size: 14px;
  }
}

/*------- fonts --------*/
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf");
  font-style: normal;
  font-weight: regular;
}

@font-face {
  font-family: "Roboto-light";
  src: url("../fonts/Roboto-Light.ttf");
  font-style: normal;
  font-weight: light;
}

@font-face {
  font-family: "Roboto-medium";
  src: url("../fonts/Roboto-Medium.ttf");
  font-style: normal;
  font-weight: Medium;
}

@font-face {
  font-family: "Roboto-bold";
  src: url("../fonts/Roboto-Bold.ttf");
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: "Bebas";
  src: url("../fonts/BebasNeue Regular.otf");
  font-style: normal;
  font-weight: regular;
}
