body {
  height: 100vh;
}

/* .ads__content {
  min-height: 265px;
} */

.main__title {
  padding: 20px 0;
}

.cars__row {
  -ms-grid-columns: 1fr;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  padding-bottom: 30px;
}

.cars__card-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.recover__ads {
  display: none;
}

.cars__card-wrap.blur {
  position: relative;
  background: url(/img/error.webp) no-repeat 50% 40% #47334c;
  background-size: cover;
  background-blend-mode: soft-light;
  background: #47334c;
}

.cars__card-wrap.blur .car__slider,
.cars__card-wrap.blur .car__main {
  opacity: 0;
  pointer-events: none;
}

.cars__card-wrap.blur .recover__ads {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: none;
}

.car__slider {
  width: 25%;
  border-radius: 0;
}

.car__img {
  height: 180px;
}

.car__main {
  background: none;
  border-radius: 5px;
  padding: 23px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ads__link {
  text-decoration: underline;
  font-weight: 600;
  color: var(--btn-color);
}

.car__info-col {
  -ms-flex-item-align: end;
  align-self: flex-end;
  gap: 20px;
}

.car__name,
.car__info-col p,
.car__info-col span {
  margin-bottom: 0;
  color: var(--main-color);
}

.car__info-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}

.car__info-row .car__info-price {
  font-size: 18px;
}

.views__count {
  gap: 5px;
}

.used__options {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 240px;
  gap: 10px;
  margin-bottom: 0;
}

.used__options span {
  width: 47%;
  padding: 5px 10px;
}

.remove__ads {
  text-decoration: underline;
  font-weight: 600;
  font-size: 16px;
  color: var(--main-color);
}

.best-offers__form-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  min-height: 150px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.best-offers__form {
  width: 100%;
  min-height: 130px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  margin: 10px;
  padding: 40px 30px;
  gap: 20px;
}

.label {
  height: auto;
}

.form__select,
.form__input {
  margin-top: 5px;
}

.form__input {
  margin-bottom: 0;
  height: 50px;
}

#file-input {
  display: none;
}

.custom-file-upload {
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 50px;
  color: var(--blue-color);
  background: var(--white-color);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  border: 1px solid rgba(71, 79, 160, 0.2);
  padding: 8px 15px;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  margin-top: 5px;
}

.label__photo {
  position: absolute;
  top: 36px;
  right: 15px;
  fill: var(--btn-color);
  pointer-events: none;
}

.label__arrow {
  top: 41px;
}

.sortable {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

.photo__btn {
  width: 190px;
  margin: 20px 0;
}

.close__img {
  width: 20px;
  height: 40px;
  font-weight: 600;
  font-size: 30px;
  line-height: 40px;
  color: var(--blue-color);
}

.image__input-block {
  min-width: 130px;
  max-width: 400px;
  width: 100%;
}

.sort_images {
  position: relative;
  /*transition: all .3s ease;*/
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  min-width: 130px;
  float: left;
}

.file__btn {
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: var(--bg-card);
  border-radius: 50%;
  padding: 3px;
  font-size: 18px;
  line-height: 18px;
  color: var(--blue-color);
  z-index: 2;
  cursor: pointer;
  /*pointer-events: none;*/
}

.sort_images:hover .file__btn,
.sort_images.hover__effect .file__btn {
  opacity: 1;
  visibility: visible;
}

.file__img {
  position: relative;
  width: 100%;
  height: 110px;
  -o-object-fit: cover;
  object-fit: cover;
  cursor: pointer;
}

.photo__title {
  margin: 15px 0;
}

.ad__btn {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  color: var(--blue-color);
  border-radius: 30px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  padding: 15px 25px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background: -o-linear-gradient(top, rgba(202, 234, 148, 0.53) 0%, #c4e888 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(202, 234, 148, 0.53)), to(#c4e888));
  background: linear-gradient(180deg, rgba(202, 234, 148, 0.53) 0%, #c4e888 100%);
  -webkit-box-shadow: 0px 22.3363px 17.869px rgba(71, 79, 160, 0.0417275), 0px 12.5216px 10.0172px rgba(71, 79, 160, 0.035), 0px 6.6501px 5.32008px rgba(71, 79, 160, 0.0282725), 0px 2.76726px 2.21381px rgba(71, 79, 160, 0.0196802);
  box-shadow: 0px 22.3363px 17.869px rgba(71, 79, 160, 0.0417275), 0px 12.5216px 10.0172px rgba(71, 79, 160, 0.035), 0px 6.6501px 5.32008px rgba(71, 79, 160, 0.0282725), 0px 2.76726px 2.21381px rgba(71, 79, 160, 0.0196802);
  margin: 30px 0;
}

/* ------------------- @media ---------------------- */

@media screen and (max-width: 1199px) {
  .car__slider {
    max-width: 300px;
    width: 100%;
  }

  .remove__ads {
    position: absolute;
    top: 23px;
    right: 23px;
  }
}

@media screen and (max-width: 1000px) {
  .car__main {
    position: relative;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 20px;
  }
}

@media screen and (max-width: 768px) {
  .car__img {
    height: 260px;
  }
}

@media screen and (max-width: 767px) {
  .cars__card-wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .car__slider {
    max-width: 100%;
  }

  .car__img {
    height: 220px;
  }

  .remove__ads {
    top: 14px;
    right: 18px;
  }

  .cars__card-wrap.blur .recover__ads {
    top: 50%;
  }

  .cars__card-wrap.blur .car__slider {
    opacity: 0.5;
  }
}

@media screen and (max-width: 460px) {
  .cars__card-wrap {
    border: 1px solid rgba(71, 79, 160, 0.05);
  }

  .car__main {
    max-width: 240px;
    border: none;
    padding: 10px;
  }

  .car__img {
    height: 180px;
  }

  .remove__ads {
    position: initial;
    margin-right: auto;
  }

  .car__info-col,
  .car__info-row {
    width: 100%;
  }

  .cars__card-wrap.blur .recover__ads {
    top: 35%;
  }

  .best-offers__form {
    padding: 10px;
    gap: 15px;
  }

  .sortable {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}