/*--------------------------------------------*/
/*--------- Блок заголовка страницы ---------*/
/*------------------------------------------*/

.trade-in__title {
    /*background: #ffffff;*/
    /*padding: 48px 64px 64px 64px;*/
    padding: 42px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 64px;
    background-color: #fff;
    /*margin-bottom: 80px;*/
}

.trade-in__title a:hover {
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 991px) {
    .trade-in__title a:hover {
        text-decoration: none;
        color: #175CFF;
    }
}

@media (max-width: 991px) {
    .trade-in__title {
        /*padding: 48px;*/
        background: linear-gradient(25.2deg, #175CFF 10.5%, rgba(85, 188, 248, 0.585) 36.54%, rgba(255, 255, 255, 0) 51.25%);
        background-color: #fff;
        /*margin-bottom: 64px;*/
        margin-bottom: 48px;
    }
}

@media (max-width: 767px) {
    .trade-in__title {
        padding: 32px 24px 24px 24px;
        border-radius: 20px;
        margin-bottom: 36px;
    }
}

/*------------------------------*/

.trade-in__title-head {
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    color: #163560;
    margin-bottom: 36px;
}

@media (max-width: 1400px) {
    .trade-in__title-head {
        margin-bottom: 24px;
    }
}

@media (max-width: 991px) {
    .trade-in__title-head {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .trade-in__title-head {
        font-size: 18px;
    }
}

/*------------------------------*/

.trade-in__title-h1 {
    font-style: normal;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.1;
    color: #163560;
    margin-bottom: 64px;
    max-width: 55%;
}

@media (max-width: 1400px) {
    .trade-in__title-h1 {
        margin-bottom: 48px;
        max-width: 50%;
    }
}

@media (max-width: 1200px) {
    .trade-in__title-h1 {
        font-size: 36px;
        max-width: 60%;
    }
}

@media (max-width: 991px) {
    .trade-in__title-h1 {
        margin-bottom: 360px;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .trade-in__title-h1 {
        font-size: 28px;
        margin-bottom: 242px;
        display: grid;
        gap: 8px;
    }
    .trade-in__title-h1 span {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .trade-in__title-h1 {
        margin-bottom: 220px;
    }
}

/*------------------------------*/

.trade-in__title-btn {
    background: #175CFF;
    border-radius: 6px;
    padding: 15px 20px;
    max-width: 196px;
    display: flex;
    justify-content: center;

    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #FFFFFF;
    position: relative;
    z-index: 10;
    transition: background .3s ease;
}

.trade-in__title-btn:hover {
    background: #0f4bd7;
}

.trade-in__title-btn:active {
    background: #3c71fb;
}

@media (max-width: 991px) {
    .trade-in__title-btn {
        background: #ffffff;
        max-width: unset;
        color: #175CFF;
    }

    .trade-in__title-btn:hover {
        background: #eadddd;
    }

    .trade-in__title-btn:active {
        background: #f1ebeb;
    }
}

/*------------------------------*/

.trade-in__title-img {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    height: 100%;
    z-index: 1;
    background-image: url("/local/templates/wishmaster/images/trade-in/trade-in-bg-desktop.png");
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover
}

@media (max-width: 991px) {
    .trade-in__title-img {
        left: 0;
        right: unset;
        top: 170px;
        /*bottom: -170px; */
        height: unset;
        width: 100%;
        background-image: url("/local/templates/wishmaster/images/trade-in/trade-in-bg-mobile.png");
        background-position: top;
        background-size: cover;
        bottom: 0;
    }
}

@media (max-width: 767px) {
    .trade-in__title-img {
        top: 130px;
    }
}

@media (max-width: 575px) {
    .trade-in__title-img {
        top: 200px;
    }
}

@media (max-width: 500px) {
    .trade-in__title-img {
        top: 220px;
        bottom: 0;
    }
}

/*------------------------------*/

.trade-in__title-img img {
    object-fit: cover;
    max-width: 800px;
    max-height: 100%;
}
@media (max-width: 1199px) {
    .trade-in__title-img img {
        max-height: 70%;
        margin-top: auto;
    }
}
@media (max-width: 991px) {
    .trade-in__title-img img {
        display: flex;
        max-width: 100%;
        width: 100%;
        max-height: unset;
    }
}

/*----------------------------------------------------*/
/*------- Блок "Воспользуйтесь калькулятором" -------*/
/*--------------------------------------------------*/

.trade-in__calc {
    background: linear-gradient(0deg, #175CFF, #175CFF),
    linear-gradient(88.36deg, #1862FF 27.37%, #1863FF 35.02%, #1766FF 42.67%, #166BFF 50.32%, #1473FF 57.98%, #127CFF 65.63%, #1087FF 73.28%, #0D94FF 80.93%, #0BA0FF 88.58%, #08ADFF 96.24%, #06B8FF 103.89%, #04C2FF 111.54%, #02C9FF 119.19%, #01CEFF 126.85%, #00D1FF 134.5%, #00D2FF 142.15%);
    padding: 42px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    margin-bottom: 64px;
}

.trade-in__calc a:hover {
    text-decoration: none;
    color: #175CFF;
}

@media (max-width: 1200px) {
    .trade-in__calc {
        min-height: 300px;
    }
}
@media (max-width: 991px) {
    .trade-in__calc {
        /*padding: 48px;*/
        margin-bottom: 48px;
        min-height: 620px;
    }
}

@media (max-width: 767px) {
    .trade-in__calc {
        margin-bottom: 36px;
        padding: 32px 24px 24px 24px;
        border-radius: 20px;
        min-height: 428px;
    }
}

/*------------------------------*/


.trade-in__calc-btn {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px 20px;
    max-width: 196px;
    display: flex;
    justify-content: center;

    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #175CFF;
    position: relative;
    z-index: 10;
    transition: background .3s ease;
}

.trade-in__calc-btn:hover {
    background: #eadddd;
}

.trade-in__calc-btn:active {
    background: #f1ebeb;
}

@media (max-width: 991px) {
    .trade-in__calc-btn {
        max-width: unset;
    }
}

/*------------------------------*/

.trade-in__calc-head {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .trade-in__calc-head {
        font-size: 28px;
    }
}

/*------------------------------*/

.trade-in__calc-text {
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.25;
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .trade-in__calc-text {
        font-size: 18px;
    }
}

/*------------------------------*/

.trade-in__calc-img {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    background-image: url("/local/templates/wishmaster/images/trade-in/calc.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    height: 100%;
    width: 50%;
}

@media (max-width: 1650px) {
    .trade-in__calc-img {
        width: 60%;
    }
}

@media (max-width: 991px) {
    .trade-in__calc-img {
        background-image: url("/local/templates/wishmaster/images/trade-in/calc-mobile.png");
        background-position: top;
        top: unset;
        bottom: 0;
        width: 100%;
        height: 90%;
    }
}

@media (max-width: 768px) {
    .trade-in__calc-img {
        height: 80%;
    }
}

@media (max-width: 575px) {
    .trade-in__calc-img {
        height: 70%;
    }
}

/*------------------------------------------------------------*/
/*--- Блок слайдеров "Этапы обмена" и "Наши преимущества" ---*/
/*----------------------------------------------------------*/

.trade-in__stages-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 64px;
    position: relative;
}

@media (max-width: 1200px) {
    .trade-in__stages-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
@media (max-width: 991px) {
    .trade-in__stages-wrapper {
        margin-bottom: 48px;
    }
}

@media (max-width: 767px) {
    .trade-in__stages-wrapper {
        gap: 0;
        margin-bottom: 48px;
    }

    .trade-in__stages-wrapper--adv {
        margin-bottom: 48px;
    }
}

@media (min-width: 768px) {
    .trade-in__stages-wrapper {
        display: grid !important;
        transform: unset !important;
    }
}

/*------------------------------*/


.trade-in__stages-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    flex-direction: column;
    justify-content: start !important;
    align-items: start !important;
    text-align: left !important;
}

@media (max-width: 1650px) {
    .trade-in__stages-item {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (max-width: 991px) {
    .trade-in__stages-item {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .trade-in__stages-item {
        padding: 20px;
        max-width: 500px;
        height: auto !important;
    }
}

@media (max-width: 575px) {
    .trade-in__stages-item {
        max-width: 300px;
    }
}

/*------------------------------*/

.trade-in__stages-item-number {
    background: #F8F9FA;
    border-radius: 50%;
    padding: 10px 18px;
    max-width: 48px;

    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    display: flex;
    align-items: center;
    color: #175CFF;
    margin-bottom: 24px;
}

@media (max-width: 1650px) {
    .trade-in__stages-item-number {
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {
    /*.trade-in__stages-item-number {*/
    /*    margin-bottom: 20px;*/
    /*}*/
}

@media (max-width: 767px) {
    .trade-in__stages-item-number {
        margin-bottom: 16px;
    }
}

/*------------------------------*/

.trade-in__stages-item-text-title {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #163560;
    margin-bottom: 8px;
}
@media (max-width: 1650px) {
    .trade-in__stages-item-text-title {
        font-size: 20px;
    }
}
@media (max-width: 767px) {
    .trade-in__stages-item-text-title {
        font-size: 18px;
    }
}

.trade-in__stages-item-text-title--low {
    text-align: center;
    margin: 0 auto 8px auto;
}

/*------------------------------*/

.trade-in__stages-item-text {
    width: 100%;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #8A9AAF;
}

@media (max-width: 1650px) {
    .trade-in__stages-item-text {
        font-size: 16px;
    }
}

.trade-in__stages-item-text--low {
    text-align: center;
}

/*------------------------------*/

.trade-in__stages-title {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.3;
    text-align: center;
    color: #163560;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    .trade-in__stages-title {
        margin-bottom: 24px;
        font-size: 28px;
    }
}

/*------------------------------*/

.swiper-stages {
    position: relative;
}

.swiper-stages-pagination {
    position: absolute;
    bottom: -20px !important;
    left: calc(50% - 70px) !important;
}


.swiper-stages-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 4px;
    background: #8A9AAF40;
    border-radius: 8px;
    opacity: 1;
}


.swiper-stages-pagination .swiper-pagination-bullet-active {
    width: 80px;
    height: 4px;
    background: #175CFF;
    border-radius: 8px;
}

/*------------------------------*/

.trade-in__stages-item-img {
    max-height: 160px;
    margin: 0 auto 20px auto;
}

.trade-in__stages-item-img img {
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 991px) {
    .trade-in__stages-item-img {
        max-height: 120px;
    }
}

@media (max-width: 767px) {
    .trade-in__stages-item-img {
        margin: 0 auto 12px auto;
        max-height: 140px;
    }
}

/*-----------------------------------------------*/
/*------- Блок часто задаваемых вопросов -------*/
/*---------------------------------------------*/

.trade-in__questions {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: auto 50%;
    gap: 40px;
}

@media (max-width: 991px) {
    .trade-in__questions {
        margin-bottom: 64px;
        grid-template-columns: repeat(1, 1fr);
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .trade-in__questions {
        gap: 24px;
    }
}

.trade-in__questions-title {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.3;
    color: #163560;
}

@media (max-width: 767px) {
    .trade-in__questions-title {
        font-size: 28px;
    }
}

.trade-in__questions-item {
    padding: 20px 40px 20px 0;
    border-top: 1px solid #E6E6E6;
    border-bottom: 1px solid #E6E6E6;
    position: relative;
}

.trade-in__questions-item:first-child {
    padding: 0 40px 20px 0;
    border-top: unset;
}

.trade-in__questions-item-question {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: #163560;
    word-break: break-word;
    cursor: pointer;
}

@media (max-width: 767px) {
    .trade-in__questions-item-question {
        font-size: 18px;
    }
}

.trade-in__questions-item-answer {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    color: #163560;
    word-break: break-word;
    height: 0;

    overflow: hidden;
    transition: height 0.3s ease, margin-top 0.3s ease;
}

.trade-in__questions-item-arrow {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 6px 13px rgba(0, 0, 0, 0.05), 0 2.1px 4.7px rgba(0, 0, 0, 0.05), 0 1px 2.3px rgba(0, 0, 0, 0.03), 0 0.52px 1.1px rgba(0, 0, 0, 0.03), 0 0.2px 0.44px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.trade-in__questions-item-arrow svg path {
    transition: all .3s ease;
}

.trade-in__questions-item-arrow:hover {
    background: #175CFF !important;
}

.trade-in__questions-item-arrow:active {
    background: #4c80fd !important;
}

.trade-in__questions-item-arrow:hover svg path{
    stroke: #ffffff !important;
}

.trade-in__questions-item-arrow--top {
    top: 0;
}

.trade-in__questions-item-arrow svg {
    transition: transform 0.3s ease;
}

.trade-in__questions-item-arrow.active svg {
    transform: rotate(-180deg);
}