.ref-container {
  overflow-x: hidden;
}
.ref-container * {
  box-sizing: border-box;
}

.ref-first-block {
  margin-top: 24px;
  position: relative;
}

.ref-first-image {
  position: absolute;
  left: 355px;
  top: -45px;
  z-index: 10;
}

.ref-first-title {
  font-size: 42px;
  line-height: 56px;
  font-weight: 600;
  color: var(--subtitle-color);
  margin-bottom: 24px;
  max-width: 460px;
}

.ref-first-text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--link-color);
  margin-bottom: 24px;
  max-width: 460px;
}

.ref-first-button {
  display: block;
  text-align: center;
  width: fit-content;
  background: var(--btn-background-2);
  border-radius: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  padding: 12px 24px;
  color: var(--btn-color-2);
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s all ease 0s;
}
.ref-first-button:hover {
  background: var(--btn-background-2-hover);
}
.ref-first-button:active {
  background: var(--btn-background-2-hover);
}

.ref-work-block {
  margin-top: 120px;
}

.ref-work-title {
  font-size: 32px;
  line-height: 42px;
  font-weight: 600;
  color: var(--subtitle-color);
  margin-bottom: 40px;
}

.ref-work-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.ref-work-card {
  display: flex;
  flex-direction: column;
  background: var(--q-form-background);
  border: 1px solid var(--q-form-border);
  border-radius: 8px;
  padding: 20px 16px;
}

.ref-work-card-img-block {
  position: relative;
  border-radius: 20px;
  background: var(--text-color);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  padding: 15px;
}

.ref-work-card-img {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.ref-work-card-img-counter {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: var(--popup-background);
  border-radius: 50%;
  border: 1px solid var(--link-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
  color: var(--link-color);
}

.ref-work-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--link-color);
  margin-bottom: 4px;
}

.ref-work-card-text {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-color-gray);
}

.ref-banner {
  margin-top: 64px;
  overflow: hidden;
  border-radius: 24px;
  height: 270px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px 80px;
}

.ref-banner-image {
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
}
.ref-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-banner-title {
  position: relative;
  z-index: 2;
  font-size: 24px;
  line-height: 32px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
  max-width: 475px;
}

.ref-banner-text {
  position: relative;
  z-index: 2;
  font-size: 14px;
  line-height: 20px;
  color: #ACB4BA;
  max-width: 570px;
}

.ref-adv-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 64px;
}

.ref-adv-card {
  border-radius: 8px;
  border: 1px solid var(--q-form-border);
  background: var(--q-form-background);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ref-adv-card-img {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.ref-adv-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--subtitle-color);
  margin-bottom: 4px;
}

.ref-adv-card-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-color-gray);
}

.ref-faq-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  color: var(--subtitle-color);
}

.ref-description {
  margin-top: 64px;
}

.main-filter-section {
  margin-top: 32px;
}

.main-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.main-filter-item {
  border-radius: 100px;
  padding: 4px 12px;
  background: var(--main-filter-background);
  color: var(--text-color-gray);
  cursor: pointer;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  flex-shrink: 0;
}
.main-filter-item:hover {
  color: var(--main-filter-color-active);
}
.main-filter-item.active {
  color: var(--main-filter-color-active);
  cursor: default;
}

.main-filter-cars-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 40px;
}
.main-filter-cars-list .main-top-cars__item {
  margin: 0;
  width: 100%;
}

.main-filter-show {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  margin-top: 44px;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  outline: none;
}
.main-filter-show span {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-color-gray);
}
.main-filter-show:hover {
  opacity: 0.5;
}

.preloader {
  position: relative;
}
.preloader:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: #c8c8c8;
  border-radius: 20px;
  z-index: 30;
}
.preloader:after {
  content: "";
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  z-index: 40;
  width: 40px;
  height: 40px;
  background: transparent;
  border-left: 2px solid #333;
  border-right: 2px solid #333;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 50%;
  animation: spinning 1s ease infinite;
}

@keyframes spinning {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 992px) {
  .ref-first-image {
    position: static;
    width: 150%;
  }

  .ref-first-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ref-first-text {
    font-size: 14px;
    line-height: 20px;
  }

  .ref-first-button {
    max-width: 380px;
    width: 100%;
  }

  .ref-work-block {
    margin-top: 15px;
  }

  .ref-work-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ref-work-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ref-banner {
    margin-top: 31px;
    padding: 22px;
    height: 360px;
    justify-content: flex-start;
  }

  .ref-adv-list {
    margin-top: 31px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ref-adv-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 16px;
  }

  .ref-adv-card-text-wrap {
    flex-grow: 1;
    flex-basis: min-content;
  }

  .ref-adv-card-img {
    margin-bottom: 0;
  }

  .ref-adv-card-title {
    font-size: 16px;
    line-height: 24px;
  }

  .ref-faq {
    margin-top: 40px !important;
  }
  .ref-faq .loyalty-faq__items {
    margin-top: 24px;
  }
  .ref-faq .loyalty-faq__item_a {
    font-size: 14px;
    line-height: 20px;
  }

  .ref-faq-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ref-description {
    margin-top: 40px;
  }

  .ref-container .question-form {
    margin-top: 40px;
  }
  .ref-container .question-form__description {
    margin-top: 8px;
  }
  .ref-container .question-form__btns {
    margin-top: 24px;
  }
  .ref-container .question-form__btns svg {
    width: 21px;
    height: auto;
  }
  .ref-container .question-form__btns span br {
    display: none;
  }

  .main-filter-section {
    margin-top: 24px;
  }

  .main-filter-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .main-filter-cars-list {
    margin-top: 24px;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
  }

  .main-filter-show {
    display: none;
  }
}

/*# sourceMappingURL=main.css.map */
