.modal {
    width: 600px;
    height: 350px;
    padding: 0;
    background-color: #fff;
    background-size: cover;
    display: none;
}

#modal-offer,
#modal-callback {
    background-image: url(../img/webp/modal-1.webp);
}

#modal-credit {
    background-image: url(../img/webp/modal-2.webp);
}

.modal__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 106px 36px 32px;
}

.modal__logo {
    width: 138px;
}

.modal__logo svg {
    width: 100%;
}

.modal__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.modal__text span {
    color: var(--accent);
}

.modal__list {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 15px 22px;
}

.modal__list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.modal__form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    align-items: center;
}

.modal__form .btn {
    height: 42px;
    font-size: 14px;
}

.modal-secondary {
    max-width: 386px;
    height: 238px;
}

.modal-secondary .modal__inner {
    padding: 22px 22px 60px;
}

.modal-secondary .modal__text {
    text-align: center;
    font-size: 17px;
}

.modal-secondary .modal__text span {
    font-size: 24px;
}

@media screen and (max-width: 620px) {
    .modal {
        width: 100%;
        max-width: 360px;
        height: 320px;
        background-position: right;
    }

    .modal__inner {
        padding: 18px 18px 22px;
    }

    .modal__logo {
        width: 105px;
    }

    .modal__text {
        font-size: 15px;
    }

    .modal__list {
        grid-template-columns: 1fr 1fr;
        gap: 12px 30px;
    }

    .modal__list-item {
        font-size: 12px;
        line-height: 1.25;
    }

    #modal-credit .modal__list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #modal-credit .modal__list-item:nth-child(2) {
        order: 1;
    }

    .modal__form {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .modal__form .input {
        height: 32px;
        max-width: calc(50% - 10px);
    }

    .modal-secondary {
        max-width: 360px;
        height: 238px;
    }
}
