/* reset old fancy stylse */
.new-modal.fancybox__content {
    padding: 0;
    display: grid !important;
    grid-template-columns: 370px minmax(0, 1fr);
    width: min(890px, calc(100vw - 40px));
}
/* modals common rules */
.new-modal {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    width: min(890px, calc(100vw - 40px));
    padding: 0;
    background: #fff;
    border-radius: 4px;
}

.new-modal--callback {
    width: min(912px, calc(100vw - 40px));
}

.new-modal__media {
    min-width: 0;
    overflow: hidden;
    border-radius: 4px 0 0 4px;
}

.new-modal__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.new-modal__img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.new-modal__content {
    min-width: 0;
    border-radius: 0 4px 4px 0;
    padding: 32px 38px;
}

.new-modal__title {
    margin: 0;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.new-modal--callback .new-modal__title {
    font-size: 34px;
}
.new-modal__title strong {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 30px;
    /* line-height: 0.7; */
}
.new-modal__benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    margin-block: 16px 24px;
}
.new-modal__benefits strong {
    font-family: 'Inter';
    font-weight: 600;
}

.new-modal__benefits li {
    position: relative;
    padding-left: 12px;
}

.new-modal__benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #000;
    transform: translateY(-50%);
}

.new-modal__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-modal__input {
    width: 100%;
    height: 45px;
    padding-inline: 14px;
    border: 1px solid rgba(144, 144, 144, 0.45);
    font-size: 14px;
    border-radius: 4px;
}

.new-modal__agreement {
    margin-top: 14px;
}

.new-modal__submit {
    width: 100%;
    height: 45px;
    margin-top: 14px;
    border: 0;
    background: linear-gradient(90deg, #ffad18 0%, #f0ca12 100%);
    font-family: 'Inter';
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}
/* close btn */
.new-modal.fancybox__content > .f-button.is-close-btn {
    width: 32px;
    height: 32px;
    top: 0;
    right: -48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);

}
.new-modal.fancybox__content > .f-button svg {
    width: 16px;
    height: 16px;
    fill: #000000;
    stroke: #000000;
}

.new-modal--test-drive .new-modal__content,
.new-modal--trade-in .new-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .new-modal {
        grid-template-columns: 1fr;
        width: min(100%, 328px);
        margin-inline: auto;
    }
    .new-modal__media {
        border-radius: 4px 4px 0 0;
    }
    .new-modal__content {
        border-radius: 0 0 4px 4px;
        padding: 14px;
    }

    /* close btn */
    .new-modal.fancybox__content > .f-button.is-close-btn {
        top: auto;
        right: 42%;
        bottom: -7%;
    }
    .new-modal.fancybox__content {
        grid-template-columns: 1fr;
        width: min(100%, 328px);
        max-width: 328px;
    }
    .new-modal__title {
        font-size: 23px;
        letter-spacing: -0.04em;
    }
    .new-modal--callback .new-modal__title {
        font-size: 25px;
    }
    .new-modal__title strong {
        font-family: 'Renault Life Bold';
        font-size: 28px;
        line-height: 0.7;
    }
    .new-modal__submit {
        font-size: 12px;
        margin-top: 0;
        height: 28px;
    }
    .new-modal__benefits {
        font-size: 14px;
        margin-block: 10px 14px;
    }
}