.modal-megasale {
  width: 100%;
  height: 100%;
  padding: 0;
  --container-padding: 16px;
  --megasale--spacer-y: 20px;
  background: transparent;
}
.modal-megasale .fancybox-close-small {
  display: none;
}
.modal-megasale__wrapper {
  width: 100%;
  min-height: 100%;
  position: relative;
  background: transparent;
  background-image: url(../img/webp/megasale-bg.webp);
  background-size: cover;
  background-position: 10% 95%;
}
.modal-megasale__wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: inherit;
  background-image: url(../img/webp/megasale-fg.webp);
}
.modal-megasale__inner {
  display: grid;
}
.modal-megasale__inner::after {
  content: "";
  display: block;
  width: 100%;
  grid-column: 1/-1;
  aspect-ratio: 16/9;
  max-width: 30vw;
}
.modal-megasale__close {
  justify-self: end;
  margin: var(--megasale--spacer-y) 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 20px;
  gap: 8px;
  height: 40px;
  min-height: 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #a6adb5;
  border-radius: 20px;
  color: #4c5865;
  backdrop-filter: blur(10px);
}
.modal-megasale__close-text {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.33;
  text-transform: uppercase;
}
.modal-megasale__close-icon path {
  stroke: currentColor;
}
.modal-megasale__content {
  background: linear-gradient(to top, rgba(255, 255, 255, 0), #fff 220px);
  color: rgb(76, 88, 101);
  padding: var(--megasale--spacer-y) 20px 180px;
}
.modal-megasale__title-wrap {
  margin-bottom: 24px;
  font-size: clamp(40px, 10.8vw, 56px);
  line-height: 1.2;
  display: grid;
}
.modal-megasale__title-wrap > * {
  padding: 0.25em 0.4em;
  border-radius: 0.3em;
  background: rgb(227, 118, 57);
  color: #fff;
  margin: -20px -36px 0;
}
.modal-megasale__title-wrap > *:first-child {
  margin-top: 0;
}
.modal-megasale__title-accent {
  justify-self: start;
}
.modal-megasale__title-main {
  justify-self: end;
}
.modal-megasale__subtitle {
  margin-bottom: 12px;
  font-size: 18px;
  font-size: clamp(18px, 7vw, 36px);
  line-height: 1;
}
.modal-megasale__description {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1;
}
.modal-megasale__inputs {
  display: grid;
  grid-gap: 12px;
}
.modal-megasale__input {
  border-radius: 2px;
  border-bottom: 1px solid rgb(166, 173, 181);
}
.modal-megasale__submit-wrapper {
  margin-top: 8px;
}
.modal-megasale__btn {
  min-height: 48px;
  border-radius: 20px;
}
.modal-megasale__btn-badge {
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 12px;
  background: rgb(16, 16, 16);
  border-radius: 11px;
  margin-left: 10px;
}
@media only screen and (min-width: 993px) {
  .modal-megasale {
    --megasale--spacer-y: 120px;
  }
  .modal-megasale__wrapper {
    padding: 0 60px;
  }
  .modal-megasale__inner {
    grid-template-columns: 1fr auto;
  }
  .modal-megasale__content {
    max-width: 400px;
    order: -1;
  }
  .modal-megasale__title-wrap > * {
    margin-left: -80px;
    margin-right: -80px;
  }
}
@media only screen and (min-width: 993px) {
  .modal-megasale {
    --megasale--spacer-y: 40px;
  }
  .modal-megasale__content {
    padding-bottom: 180px;
  }
  .modal-megasale__inner::after {
    background-color: rgba(0, 0, 0, 0);
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 22vw;
  }
}

.modal-white {
  background: #f5f6f9;
  color: #303c48;
  margin: auto;
}
.modal-white .modal__title {
  text-transform: uppercase;
  font-weight: 500;
}

.modal-offer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  font-size: min(1rem, 3.5vw);
  display: grid;
  grid-template-columns: 275fr 187fr;
  --arrows-size: 3em;
}
.modal:has(.modal-offer) {
  overflow: visible;
  margin-top: 130px;
  position: relative;
}
.modal:has(.modal-offer) .modal-finance-form {
  margin-top: unset !important;
}
.modal:has(.modal-offer) .fancybox-close-small {
  top: 0 !important;
}
.modal-offer::after {
  content: "";
  grid-column: 1/2;
  grid-row: 1/2;
  background: #f5f6f9;
}
.modal-offer__discount {
  height: 5.5em;
  z-index: 2;
  grid-column: 1/2;
  grid-row: 1/2;
  margin-bottom: 1.875em;
  padding: 0.625em;
  padding-bottom: 1.125em;
  padding-left: calc(1em + var(--arrows-size));
  margin-left: calc(var(--arrows-size) * -1);
  padding-right: 5em;
  margin-right: -2em;
  background: #e37639;
  background-image: url(../img/webp/modal-offer-discount-asset.webp), url(../img/webp/modal-offer-discount-bg.webp);
  background-size: auto 100%, cover;
  background-position: right, center;
  background-repeat: no-repeat;
  color: #fff;
  display: grid;
  justify-content: start;
  align-items: center;
  clip-path: polygon(100% 0%, 100% 100%, calc(var(--arrows-size)) 100%, 0% 50%, calc(var(--arrows-size)) 0%);
}
.modal-offer__discount-title {
  font-size: 0.75em;
  line-height: 2;
  font-weight: 500;
}
.modal-offer__discount-sum {
  font-size: 1.5em;
  line-height: 1;
  font-weight: 900;
}
.modal-offer__date {
  height: 5.5em;
  margin-top: 1.875em;
  padding: 0.625em;
  padding-top: 2em;
  padding-left: 2.5em;
  padding-right: calc(2em + var(--arrows-size));
  margin-right: calc(var(--arrows-size) * -1);
  clip-path: polygon(calc(100% - var(--arrows-size)) 0%, 100% 50%, calc(100% - var(--arrows-size)) 100%, 0% 100%, 0% 0%);
  display: grid;
  justify-content: end;
  align-items: end;
  background: #303c48;
  position: relative;
}
.modal-offer__date::before {
  content: "";
  position: absolute;
  width: 2em;
  height: 1.875em;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #0e1216 26.75%, #303c48 100%);
  clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}
.modal-offer__date-badge {
  padding: 0.375em 0.625em;
  background: #fff;
  border-radius: 2px;
  color: #e37639;
  text-align: center;
}
.modal-offer__date-text {
  font-size: 0.8125em;
  font-weight: 500;
  text-transform: uppercase;
}
@media only screen and (max-width: 992px) {
  .modal-offer {
    --arrows-size: 1em;
  }
}

.modal-car {
  margin-bottom: 20px;
}
.modal-car__name {
  width: fit-content;
  font-weight: 500;
  text-transform: uppercase;
  background: #fff;
  color: #757575;
  border-radius: 2px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.modal-car__preview {
  padding: 16px;
  background: #fff;
  margin-bottom: 20px;
}
.modal-car__preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 38/25;
}
.modal-car__price-old {
  font-weight: 500;
  text-decoration: line-through;
}
.modal-car__price-current {
  font-size: 32px;
  font-weight: 700;
  color: #e37639;
}
@media only screen and (max-width: 992px) {
  .modal-car__price-current {
    font-size: 24px;
  }
}

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