.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px auto;
    z-index: 1025;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: max-content;
    max-width: 100vw;
    animation: slide-up 0.15s cubic-bezier(.17,.67,.73,.73), fade-in 0.15s ease;
}

    .modal__head {
        display: flex;
        position: relative;
        align-items: center;
        background-color: var(--lighter);
        padding: 1rem 1.5rem;
        border-radius: 1rem 1rem 0 0;
    }
        .modal__title {
            font-size: 1.4rem;
            font-weight: 500;
            line-height: 1;
            display: flex;
            flex-grow: 1;
        }
        .modal__close-button {
            display: flex;
            align-self: flex-end;
            background: none;
            line-height: 0.4;
        }
            .modal__close-button:hover {
                background-color: var(--light);
            }
    .modal__body {
        background-color: var(--lightest);
        padding: 1.5rem;
        border-radius: 0 0 0.6rem 0.6rem;
        box-shadow: var(--shadow);
        overflow: auto;
    }

@media screen and (min-width: 1100px) {
    .modal--swipeable__scroll-space {
        display: none;
    }
}
@media screen and (max-width: 1100px) {
    .modal--swipeable {
        display: unset;
        animation: hard-slide-up 0.4s cubic-bezier(.39,.58,.57,1);
        scroll-snap-type: y mandatory;
        overflow: scroll;
        z-index: 999999;
        scroll-behavior: unset;
    }
        .modal--swipeable__scroll-space {
            display: block;
            height: 100vh;
            scroll-snap-align: start;
        }
        .modal--swipeable .modal__head {
            border-radius: 1.5rem 1.5rem 0 0;
            scroll-snap-align: none; /* можно поставить end, и тогда пользователь сможет оставить только шапку внизу, но свайпнуть для закрытия будет сложнее... */
            position: relative;
        }
            .modal--swipeable__caret {
                position: absolute;
                width: 17%;
                height: 4px;
                background-color: #e1e2e3;
                top: 0.8rem;
                left: 0;
                right: 0;
                margin: auto;
                cursor: pointer;
                border-radius: 17%;
            }
        .modal--swipeable .modal__body {
            border-radius: 0;
            scroll-snap-align: end;
            max-height: 68vh;
        }
}