.find-by-marks-desktop.active{
  background-color: #f4f5fc;
  padding: 80px ;
  margin: 0 auto;
}
@media(max-width:768px){
  .find-by-marks-desktop.active{
    background-color: #f4f5fc;
    padding: 16px ;
    margin: 0 auto;
  }
}

.main__banner {
    position: relative;
    padding: 48px 80px;
    border-radius: 16px;
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    color: #fff;
    background: linear-gradient(90deg, rgba(22, 22, 22, 1) 0%, rgba(54, 33, 185, 1) 100%);
}
.main__banner .image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    border-radius: 16px;
    background-size: 74%;
    background-position: right 28%;
    background-repeat: no-repeat;
}
.main__banner#banner-buyout .image {
    background-size: 50.5%;
    background-position: right 56%;
}

.main__banner#banner-payment .image {
    background-size: 50.5%;
    background-position: right 56%;
}
.main__banner#banner-promo .image {
    background-size: 54.5%;
    background-position: right 45.5%;
}
#banner-trade-in-promo .image {
    background-size: 54.5%;
    background-position: 100% 73%;
}
#banner-trade-in-payment .image {
    background-size: 54.5%;
    background-position: 97% 73%;
}

.main__banner#banner-trade-in .image { 
    background-size: 54.5%;
    background-position: 97% 73%;
}
.main__banner__container.container {
    margin-top: 20px;
    margin-bottom: 20px;
}
.main__banner__container.container .slider-buttons {
    height: 28px;
}
.main__banner__buttons {
    z-index: 1;
    display: flex;
    gap: 13px;
}

.percent-1 {
    top: -52px;
    right: 48px;
    position: absolute;
    width: 232px;
    height: 232px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/assets/img/percent_1.webp");
}
.feedback-banner__section {
    padding: 32px 80px;
    margin-top: 20px !important;
    margin-bottom: 60px !important;
    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;
    background: linear-gradient(86deg, #151515 14.88%, #382A8E 99.03%);
    border-radius: 16px;
    color: #fff;
}

.main__banner {
    position: relative;
    padding: 48px 80px;
    border-radius: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    color: #fff;
    background: -webkit-gradient(linear, left top, right top, from(rgb(22, 22, 22)), to(rgb(54, 33, 185)));
    background: linear-gradient(90deg, rgb(22, 22, 22) 0%, rgb(54, 33, 185) 100%);
}
.stocks-banner {
    position: relative;
    overflow: hidden;
}
.percent-2 {
    bottom: -113px;
    right: 200px;
    position: absolute;
    width: 326px;
    height: 326px;
    -webkit-transform: rotate(-16deg);
    transform: rotate(-20deg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/assets/img/percent_2.webp");
}

#banner-victory-day {
    height: 320px;
}

#banner-victory-day .image {
    background-size: 100%;
}
@media (max-width: 1100px) {
    #autocredit-modal .modal-custom__image{
        max-width: 100% !important;
        aspect-ratio: 16 / 12;
        min-height: max-content;
        overflow: hidden;
    }
    #autocredit-modal .modal-custom__image img {
        max-height: auto;
        -o-object-fit: cover;
        object-fit: cover;
        max-width: 100%;
        width: 100%;
        object-position: top;
        min-height: max-content;
        padding: 0;
    }
    .main__banner {
        border-radius: 0 0 16px 16px;
        padding: 24px 16px 0 16px;
        gap: 16px;
        overflow: hidden;
   }
    .main__banner.swiper-slide {
        max-height: 340px;
   }
    .main__banner__container.container {
        margin-top: 0;
        margin: 0;
   }
    .main__banner__buttons {
        margin-bottom: 120px;
   }
   .feedback-banner__section {
        margin: 0 !important;
        margin-bottom: 40px !important;
        border-radius: 0 0 16px 16px;
        padding: 24px 16px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 20px;
    }
    
    .footer__contents__rating__wrapper.mobile {
        display: flex !important;
    }
}
@media (max-width: 813px) {
    .main__banner#banner-trade-in .image {
        background-size: 64.5%;
        background-position: right bottom;
   }
   .stocks-banner .percent-2 {
    bottom: -13px;
    right: -10px;
    position: absolute;
    width: 116px;
    height: 116px;
    -webkit-transform: rotate(-16deg);
    transform: rotate(-20deg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("/assets/img/percent_2.webp");
}
.stocks-banner .percent-1 {
    top: -23px;
    right: -31px;
    position: absolute;
    width: 122px;
    height: 122px;
}
#banner-trade-in-payment .image {
    background-position: 100% bottom;
}
}
@media (max-width: 613px) {
    .main__banner#banner-promo .image {
        background-size: 61.5%;
        background-position: 100% 112%;
   }
    .main__banner#banner-payment .image {
        background-size: 70.5%;
        background-position: right bottom;
   }
   #banner-trade-in-promo .image {
        background-position: 100% bottom;
    }
}
@media (max-width: 922px) {
    .main__banner .image {
        background-position: bottom right;
   }
}


@media (max-width: 554px) {
    #callback-widget-button {
        bottom: 6em;
    }
}


.baner-stock-blue{
    overflow:hidden;
    position:relative;
    background:#032AB8;
    background:-webkit-linear-gradient(90deg,rgba(3,42,184,1) 0%,rgba(217,233,255,1) 59%,rgba(3,42,184,1) 100%);
    background:linear-gradient(90deg,rgba(3,42,184,1) 0%,rgba(217,233,255,1) 59%,rgba(3,42,184,1) 100%);
    display:-ms-grid;
    display:grid;
    -ms-grid-rows:0fr;
        grid-template-rows:0fr;
    -webkit-transition:all .4s ease-in-out;
    transition:all .4s ease-in-out;
  }
  .baner-stock-blue .container{
    display: block;
  }
 
  .baner-stock-blue.active{
    -ms-grid-rows:1fr;
        grid-template-rows:1fr;
  }

  .baner-stock-blue__wrapper{
    background-size:cover;
    background-position:left;
  }
  

  

  .baner-stock-blue__image{
    position:absolute;
    top:0;bottom:0;
    height:100%;
  }
  .baner-stock-blue__image img{
    width:100%;height:100%;object-fit:fill;
  }
  .baner-stock-blue__image-car{
    max-width:509px;width:100%;
    position:relative;z-index:3;
    display:flex;
    aspect-ratio:30/7;
    margin-left:auto;
    margin-right: 30px;
  }
  .baner-stock-blue__image-car img{
    width:100%;height:100%;object-fit:cover;
    overflow: visible;
  }
  .baner-stock-blue__image-left{
    position:absolute;left:0;top:0;
    width:100%;height:100%;max-width:100%;
  }
  .baner-stock-blue__image-left img{
    width:100%;height:100%;object-fit:cover;max-width:100%;
  }
  

  .baner-stock-blue__content{
    z-index:3;
    position:relative;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
    -webkit-box-pack:justify;
        -ms-flex-pack:justify;
            justify-content:space-between;
  }
  

  .baner-stock-blue__left{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-direction:column;
            flex-direction:column;
    gap:12px;
    position:relative;
    max-width:40%;
  }
  .baner-stock-blue__left-title{
    color:#fff;
    
    font-size:26px;
    font-weight:700;
    line-height:32px;
    text-transform:uppercase;
  }
  .baner-stock-blue__left-title span{display:none;}
  .baner-stock-blue__left-title-bottom{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
    gap:10px;flex-wrap:wrap;
  }
  .baner-stock-blue__left-title-bottom h3{
    color:#fff;font-size:40px;font-weight:700;line-height:32px;
    text-transform:uppercase;
  }
  .baner-stock-blue__left-button{
    border-radius:16px;
    background:#fff;
    color:#2E58DB;
    cursor: pointer;
    font-size:14px;
    font-weight:700;
    line-height:20px;
    padding:10px 20px;
    -webkit-transition:all .2s ease-in-out;
    transition:all .2s ease-in-out;
  }
  .baner-stock-blue__left-button:hover{
    color: #9CA5B3;
  }
  
  .baner-stock-blue__right{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    gap:23px;
    -webkit-box-pack:justify;
        -ms-flex-pack:justify;
            justify-content:space-between;
    width:100%;max-width:70%;
    position:relative;height:100%;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
  }
  .baner-stock-blue__right-button{display:none;}
  

  .baner-stock-blue__time{
    background:#000;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
    gap:6px;border-radius:16px;padding:4px 16px;
  }
  .baner-stock-blue__time-wrapper{
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-direction:column;
            flex-direction:column;
    position:relative;z-index:3;
    -webkit-box-pack:justify;
        -ms-flex-pack:justify;
            justify-content:space-between;
    height:100%;
    margin-left: auto;
  }
  .baner-stock-blue__time-wrap{
    gap:10px;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-direction:column;
            flex-direction:column;
  }
  .baner-stock-blue__time-title{
    color:#fff;font-size:20px;font-weight:700;line-height:20px;
    text-align:center;margin:0 auto;
  }
  .baner-stock-blue__time-box{
    min-width:30px;
    border-radius:4px;
    -webkit-box-shadow:-1px 1px 10px rgba(0,0,0,.25);
            box-shadow:-1px 1px 10px rgba(0,0,0,.25);
    padding:8px 0;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-pack:center;
        -ms-flex-pack:center;
            justify-content:center;
    gap:4px;
  }
  .baner-stock-blue__time-box-number{
    color:#fff;font-size:24px;font-weight:700;line-height:20px;
  }
  .baner-stock-blue__time-box-label{
    color:#fff;font-size:24px;font-weight:700;line-height:20px;
  }
  
  
  .baner-stock-blue__close{
    position:absolute;top:10%;right: 5%;z-index:3;
    border-radius:50%;
    border:1px solid #F6F6F6;
    -webkit-backdrop-filter:blur(5px);
            backdrop-filter:blur(5px);
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-direction:column;
            flex-direction:column;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
    -webkit-box-pack:center;
        -ms-flex-pack:center;
            justify-content:center;
    width:32px;height:32px;padding:10px;
    cursor:pointer;
    -webkit-transition:all .2s ease-in-out;
    transition:all .2s ease-in-out;
  }
  .baner-stock-blue__close svg{
    -webkit-transition:all .2s ease-in-out;
    transition:all .2s ease-in-out;
    stroke:#F6F6F6;flex-shrink:0;
  }
  .baner-stock-blue__close:hover{
    border:1px solid #151515;
  }
  .baner-stock-blue__close:hover svg{
    -webkit-transform:scale(1.1);
        -ms-transform:scale(1.1);
            transform:scale(1.1);
            
  }
  
  @media (max-width:1400px){
    .baner-stock-blue__content{gap:10px;}
    .baner-stock-blue__left{padding:15px 0 20px;}
    .baner-stock-blue__left h3{font-size:30px;line-height:20px;}
    .baner-stock-blue__left-button{width:160px;text-align:center;}
    .baner-stock-blue__time{gap:7px;}
    .baner-stock-blue__time-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:start;}
    .baner-stock-blue__time-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;}
    .baner-stock-blue__close{position:absolute;top:10px;right:10px;}
  }
  
  
  @media (max-width:768px){
    .baner-stock-blue{background:#fff;}
    .baner-stock-blue__image-car{
      aspect-ratio:30/11;left:15%;z-index:1;overflow:visible;
    }
    .baner-stock-blue__image-left{width:100%;max-width:100%;padding:15px 0 0;}
    .baner-stock-blue__content{
      -webkit-box-orient:vertical;-webkit-box-direction:normal;
          -ms-flex-direction:column;flex-direction:column;
      -webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;
      padding:5px 4px 5px;
    }
    .baner-stock-blue__left{max-width:100%;gap:4px;width:100%;}
    .baner-stock-blue__left-title span{
      font-size:30px;line-height:28px;letter-spacing:-0.6px;
    }
    .baner-stock-blue__left h3{font-size:28px;line-height:24px;}
    .baner-stock-blue__left-button{font-size:14px;line-height:20px;border-radius:20px;}
    .baner-stock-blue__right{
      gap:15px;max-width:100%;
      -webkit-box-align:center;-ms-flex-align:center;align-items:center;
      position:static;
    }
    .baner-stock-blue__right-button{
      display:-webkit-box;display:-ms-flexbox;display:flex;
      border-radius:8px;background:#fff;color:#E74929;
      font-size:16px;font-weight:500;padding:10px 20px;
    }
    .baner-stock-blue__time{
      gap:4px;border-radius:20px;width:165px;
      -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
      padding:4px 12px;
    }
    .baner-stock-blue__time-title{font-size:15px;line-height:15px;margin-left:3px;}
    .baner-stock-blue__time-wrap{gap:4px;}
    .baner-stock-blue__time-wrapper{
      -webkit-box-orient:horizontal;-webkit-box-direction:normal;
          -ms-flex-direction:row;flex-direction:row;
      -webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;
      gap:10px;
    }
    .baner-stock-blue__time-box{min-width:20px;gap:4px;}
    .baner-stock-blue__time-box-number,
    .baner-stock-blue__time-box-label{font-size:16px;line-height:20px;}
    .baner-stock-blue__time-wrap{
      -webkit-box-orient:vertical;-webkit-box-direction:normal;
          -ms-flex-direction:column;flex-direction:column;
      -webkit-box-align:flex-start;-ms-flex-align:start;align-items:flex-start;
    }
    .baner-stock-blue__close{position:absolute;top:20px;right:16px;}
  }
  
  /* ---------- 500 px ---------- */
  @media (max-width:500px){
    .baner-stock-blue__image-car{aspect-ratio:23/11;}
  }

   /* ---------- modal ---------- */
 .quiz {
  width: 90vw;
  max-width: 1260px;
  background: var(--grey-100);
 border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 852px;
  position: relative;
  
}
.popup-quiz .is-close-btn{
  display: none;
}
.popup-quiz.fancybox__content{ 
  background: transparent !important;
  padding: 24px; 

 
}
.popup-quiz .popup__close{
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid #9CA5B3; 
  position: absolute;
  top: 40px;
  right: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background: transparent;
}
.popup-quiz .popup__close:hover{
  border: 1px solid black;
}
.quiz.fancybox__content .is-close-btn{
  top: 48px !important;
  right: 48px !important;
  background-color: inherit;
  width: 60px;
  height: 60px;
  
}
.quiz.fancybox__content .is-close-btn svg{
  stroke: var(--grey1) !important;
}
.quiz.fancybox__content .is-close-btn .is-close-btn{
  display: none;   
}

/* header */
.quiz__top {
  background: linear-gradient(90deg, #002691 0%, #5077ff 100%);
  padding: 32px 32px 24px;
  color: #fff;
}

.quiz__title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
 
  text-transform: none;
  line-height: 35px;
}

.quiz__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quiz-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
 border-radius: 16px;
  background: var(--blue-500);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  cursor: default;
 
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}

.quiz-tag--accent {
  background: #d02d2d;
}

/* steps nav */
.quiz__steps {
  display: flex;
  gap: 32px;
  padding: 24px 32px 0;
}

.quiz-step-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-400);
  cursor: default;
  position: relative;
  width: 100%;
  border-bottom: 2px solid #E4ECF8;
  padding-bottom: 4px;
}

.quiz-step-nav__index {
  padding: 2px 8px;
  border-radius: 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--grey-400);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; 
  border: 1px solid #DCE1E9;
  color: #646970;

}
.quiz-step-nav__index-text{
  color: #646970;
}

.quiz-step-nav--done .quiz-step-nav__index {
  background: var(--green-500);
  color: #fff;

}
.quiz-step-nav::after{
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #0A945A 0%, #E4ECF8 100%);
  height: 2px;
  width: 0;
  transition: all 0.4s ease-in-out;

}

.quiz-step-nav--active::after{
  width: 100%;
  
}

.quiz-step-nav--active .quiz-step-nav__index {
  border: 1px solid #0A945A;
  color: #0A945A;
}

/* content wrapper */
.quiz__content {
  padding: 40px 32px 40px; /* место под footer */
  position: relative;
  flex: 1;
 
  /* position: relative; */
}


/* ---------- step общие элементы ---------- */
.quiz__step {
  display: none;
  flex-direction: column;
 
}

.quiz__step--active {
  display: flex;

}
.quiz__step--active span{
  color: #2E58DB;
}
.quiz__step__head{
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
}
.quiz__step__head-title{
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
}

.quiz-input {
  width: 320px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; 
  
  height: 40px;
  color: #646970;
  padding: 4px 16px 4px 40px;
  border-radius: 16px;
  border: 1px solid #9CA5B3;
  font-size: 14px;
  background-color: transparent !important;
  background: #fff url('data:image/svg+xml,%3Csvg xmlns%3D"http://www.w3.org/2000/svg" width%3D"24" height%3D"24" fill%3D"none" stroke%3D"%239CA5B3" stroke-linecap%3D"round" stroke-linejoin%3D"round" stroke-width%3D"1" class%3D"feather feather-search"%3E%3Ccircle cx%3D"11" cy%3D"11" r%3D"8"/%3E%3Cline x1%3D"21" y1%3D"21" x2%3D"16.65" y2%3D"16.65"/%3E%3C/svg%3E') 12px 50% / 20px 20px no-repeat;
  cursor: pointer;
}
.quiz-input::placeholder{
  color: #9CA5B3;
  transition: all 0.2s ease-in-out;
}
.quiz-input:hover::placeholder{
  color: #646970;
}
.quiz-input:focus{
  border: 1px solid #2E58DB;
  outline: none;
}



.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1150px;
  max-height: 288px; 
  overflow-y: auto;
  padding-right: 10px;
  padding-bottom: 20px;
  /* min-height: 288px; */
}
.terms{
  min-height: 288px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
 border-radius: 16px;
  background: #fff;
  color: var(--black);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  max-width: calc(16% - 6px);
  width: 100%;
  border: 1px solid transparent;
  height: 48px;

}
.brand-card__icon{
  max-width: 30px;
  max-height: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.brand-card__icon svg{
  max-width: 100%;
  max-height: 100%;
}
.brand-card span{
  color: #151515;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.brand-card:hover {
  border: 1px solid #2E58DB;
}

.brand-card--selected {
  border: 1px solid #2E58DB;
}

/* ---------- models list (step‑2) ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: 380px;
  padding-top: 40px;
  border-radius: 16px;
  padding-bottom: 90px;
  height: 100%;
  padding-right: 10px;
}


.model-card {
  border: 1px solid var(--grey-200);
 border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  border: 1px solid transparent;
}

.model-card:hover {
  border: 1px solid #2E58DB;
}

.model-card--selected {
  border: 1px solid #2E58DB;
}

.model-card__img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--grey-100);
  
}
.model-card__img img{
  object-fit: cover;
  width: 100%;
  height: 100%;
  
}

.model-card__body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.model-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);

  overflow: hidden;             
  text-overflow: ellipsis;      
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
}

.model-card__price {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}

.model-card__price-current {
  font-weight: 700;
  color: var(--blue-500);
}

.model-card .model-card__price-old {
  text-decoration: line-through;
  color: #9CA5B3;
  font-size: 12px;
}

.model-card__payment {
  margin: 0;
  font-size: 12px;
  color: var(--blue-500);
  border-radius: 16px;
  background-color: #E4ECF8;
  padding: 4px 12px;
}

/* ---------- term buttons (step‑3) ---------- */
.term-btn {
 border-radius: 16px;
  border: 1px solid var(--grey-300);
  background: #fff;
  
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  cursor: pointer;
  transition: 0.2s;
  padding: 40px 60px;
  max-height: 108px;
}
.term-btn:hover{
  border: 1px solid #2E58DB;
  color: #2E58DB;
  background-color: white;

}

.term-btn--active {
  background: var(--blue-500);
  color: #fff;
}

.quiz-btn--form{
  position: relative;
  bottom: -90px;
  z-index: 4;
} 
.quiz__step--form-wrapper{
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz__step__form{
  padding: 40px;
  border-radius: 16px;
  background: #FFF;
  max-width: calc(50% - 5px);
}
.quiz__step__form-inputs{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:100%
  
}
.quiz__step__form-inputs input{
  width: 100%;
  border-radius: 16px;
  border: 1px solid #9CA5B3;
  padding: 16px;
  background: none;
  
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; 
  height: auto;
}
.quiz__step__form h3{
  
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
  padding: 0;
  margin: 0;
} 
.quiz__step__form p{
  
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; 
} 

.quiz__step__form{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz__step--form-bg{
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  
}
.quiz__step--form-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}


.quiz__step__advertising{
  position: relative;
  border-radius: 16px;
  background: radial-gradient(79.79% 112.06% at 65.08% 85.57%, rgba(181, 242, 255, 0.44) 0%, rgba(151, 71, 255, 0.00) 100%), linear-gradient(81deg, #161616 -14.78%, #3621B9 115.79%);
  max-width: calc(50% - 6px);
  width: 100%;
  align-self: normal;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: auto;
  gap: 10px;
  overflow: hidden;
}
.quiz__step__advertising-head{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  flex-grow: 1;
  z-index: 1;
}
.quiz__step__advertising-title{
  color: #FFF;
  text-align: right;
  
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px; 
  flex-grow: 1;
}
.quiz__step__advertising h5{
  color: #FFF;
  text-align: right;
  
  font-size: 54px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px; /* 81.481% */
  text-transform: uppercase;
}
.quiz__step__advertising h6{
  color:  #FFF;
  text-align: right;
  
  font-size: 51px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
}
.quiz__step__advertising h6 span{
  color:  #FFF;
  text-align: right;
  
  font-size: 100px;
  font-style: normal;
  font-weight: 700;
  line-height: 99px;
}
.quiz__step__advertising-middle{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  z-index: 1;
}
.quiz__step__advertising-down{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}
.quiz__step__advertising-down p{
  max-width: 312px;
  color: #F6F6F6 ;
  
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}
.quiz__step__advertising-down-right{
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 140px;
    align-items: flex-end;

}
.quiz__step__advertising-down-right p{
  color: #FFF;
  text-align: right;
  
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  
}


/* ---------- footer ---------- */
.quiz__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: var(--grey-100);
}
.quiz__footer-right{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.selection-label{
  color: #646970;
 
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;



}
.selection-label__value{
  color: #2E58DB;
  font-weight: 700;
 
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; 
}

   /* .quiz__footer::after{
  content: '';
  position: absolute;
  width: 100%;
  top: -80px;
  right: 0;
  left: 0;
  height: 40px;
  width: 100%;
  background: linear-gradient(180deg, rgba(242, 245, 250, 0.00) 0%, #F3F6FB 100%);
} */

.quiz-btn {
  padding: 18px 24px;
 border-radius: 16px;
  border: none;
  font: 700 14px/1 "PT Root UI", sans-serif;
  cursor: pointer;
  transition: 0.2s;
}
.quiz-btn--primary:disabled{
  background:  #9CA5B3;
}
.quiz-btn--primary:disabled:hover{
  background:  #9CA5B3;
  cursor: no-drop;
}
.quiz-btn--primary {
  background: var(--blue-500);
  color: #fff;
  margin-left: auto;
}
.quiz-btn--primary:hover{
  background-color: #1641BC;
}


.quiz-btn--secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid black;
  transition: all 0.2s ease-in-out;

}
.quiz-btn--secondary:hover {
  border: 1px solid #9CA5B3;
 
  
}

.quiz-btn:disabled {
display: none;
}

/* затемнение фона */
.popup-success{
position:fixed;
inset:0;
display:flex;
align-items:center;
justify-content:center;
background:#000000c0;          /* 75 % прозрачный чёрный */
z-index:9999;
}

/* карточка */
.popup-success__card{
max-width:560px;
padding:40px 64px;
background:#fff;
border-radius:16px;
text-align:center;
display: flex;
flex-direction: column;
gap: 24px;
}

/* иконка-чек */
.popup-success__icon{
width:60px;
height:60px;
margin:0 auto;
border-radius: 24px;
background:#e4ecf8;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
color:var(--blue-600);
}

/* заголовок */
.popup-success__title{
color: #151515;
text-align: center;
/* Desktop/H1 */

font-size: 36px;
font-style: normal;
font-weight: 700;
line-height: 44px; 
}

/* подзаголовок */
.popup-success__text{
color:  #151515;
text-align: center;
/* Desktop/Text 2 */

font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px;
}

/* кнопка */
.popup-success__btn{
min-width:120px;
height:44px;
padding:0 24px;
background:var(--blue-500);
color:#fff;
font-weight:700;
border:none;
border-radius:12px;
cursor:pointer;
font-family: PT, sans-serif;
transition: all .2s ease-in-out;
}

.popup-success__btn:hover{
background:var(--blue-600);
}
.popup-quiz.fancybox__content{
  padding: 16px;
  height: 100%;
}
@media(max-width:1024px){
  .quiz__steps{
    gap: 10px;
  }
  .quiz-step-nav{
    flex-direction: column;
  }
  .quiz__step__head-title{
    max-width: 45%;
    width: 100%;
  }
}
@media(max-width:768px){
  .quiz-step-nav{
    padding-bottom: 6px;
    align-items: flex-start;
    
  }
  .quiz__steps{
    gap: 0;
  }
  .quiz__step__head{
    flex-direction: column;
    align-items: self-start;
  }
  .quiz-input{
    width: 100%;
  }
  .brands{
    max-height: 380px;
    gap: 6px 12px;
  }
 
  .popup-quiz.fancybox__content{
    padding: 0px;
    height: 100%;
  }
  .popup-quiz .modal{
    max-width: 100%;
  }
  .popup-quiz .close-modal {
    display: none !important;
  }
   .fancybox__slide{
    padding: 0;
    margin: 0;
  }
  .fancybox__slide::before, .fancybox__slide::after{
    display: none;
  }
  .jquery-modal:has(.quiz)::before {
    display: none;
  }
  .jquery-modal:has(.quiz)::after{
    display: none;
  }
  .quiz {
    height: 100%;
    width: 100%;
    border-radius: 0;
  }
  .popup-quiz{
    max-width: 100% !important;
    height: 100% !important;
  }
  .brand-card{
    max-width: calc(50% - 6px);
    
  }
 
  .quiz__title{
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 15px;
    max-width: 260px;
    text-wrap: balance;

  }
  .quiz-tag{
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; 
    padding: 4px 12px;
    max-width: calc(50% - 4px);
    width: 100%;
    text-wrap: wrap;
  }
  .quiz-tag svg{
    flex-shrink: 0;
  }
  .quiz-tag:first-child{
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    justify-content: center;
  }
 
  .quiz-step-nav__index{
    font-size: 12px;
    line-height: 16px;

  }
  .quiz-step-nav__index-text{
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    display: none;
  }
  .quiz__top{
    padding: 16px;
  }
  .quiz__steps{
    padding: 16px;
  }
  .quiz__content{
    padding: 0px 16px;
  }
  .selection-label{
    text-align: end;
  }
  .quiz-btn{
    font-size: 12px;
    padding: 12px;
    line-height: 16px;
  }
  .quiz-btn--primary{
    padding: 13px;
  }
  .selection-label{
    font-size: 12px;
    line-height: 16px;
  }
  .selection-label__value{
    font-size: 12px;
    line-height: 16px;
  }
  .quiz__footer{
    gap: 10px;
  }
  .models{
    padding-top: 0;
    gap: 6px;
  }
  .quiz__step__head{
    gap: 10px;
    padding-bottom: 20px;
  }
  .term-btn{
    max-height: fit-content;
    padding: 24px;
  }
  .popup-quiz .popup__close{
    top: 16px;
    right: 16px;
  }
  .model-card__body{
    padding: 12px;
  }
  .model-card__price{
    flex-wrap: wrap;
    gap: 1px 5px;
  }
  .model-card__payment {
    font-size: 11px;
    color: var(--blue-500);
    border-radius: 16px;
    background-color: #E4ECF8;
    padding: 4px 12px;
    text-wrap: balance;
    line-height: 15px;
}
.quiz__footer{
  padding: 16px;
}
.quiz-step-nav {
  gap: 4px;
}
.quiz__step__head-title {
  max-width: 100%;
}
.terms{
  gap: 10px !important;
}
.term-btn{
  font-size: 16px;
  line-height: 20px;
  padding: 16px 20px;
}
.selection-label{
  display: none !important;
}
.quiz__step--form-wrapper{
  flex-wrap: wrap;
  max-height: 380px;
  overflow-y: auto;
  border-radius: 16px;
}
.quiz__step__form{
  max-width: 100%;
  padding: 16px;
  gap: 15px;
}
.quiz__step__form h3 {
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px;
  padding: 0;
  margin: 0;
}
.quiz__step__form p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
}


.quiz__step__advertising{
  max-width: 100%;
}
.quiz__step__form-inputs input {
  width: 100%;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.quiz-btn--form{
  bottom: -30px;
}
.quiz__step__advertising-title{
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 12px;
}
.quiz__step__advertising{
  padding: 12px 16px;
}
.quiz__step__advertising-middle h5{
  text-align: right;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px; /* 122.222% */
  text-transform: uppercase;
}
.quiz__step__advertising-middle h6{
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
}
.quiz__step__advertising-middle span{
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 64px;
}
.quiz__step__advertising-down p{
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  
}
.quiz__step__advertising-down-right p{
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
}
.popup-success__card{
  padding: 30px;
  gap: 10px;
}
.popup-success__title{
  font-size: 24px;
  line-height: 27px;
}
.popup-success__text {
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
}
















