.switch {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.switch__input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.switch__value {
    font-weight: normal;
    font-size: 16px;
    line-height: 120%;
    color: #572F8E;
}

.switch__handle {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    margin: 0 30px;
    background-color: currentColor;
    border: 4px solid currentColor;
    border-radius: 12px;
    color: #FD9A7F;
    transition: color .25s ease;
    cursor: pointer;
}

.switch__handle::after {
    position: absolute;
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: #572F8E;
    border-radius: 50%;
    transition: transform .2s ease;
}

.switch__input:checked ~ .switch__handle::after {
    transform: translate(20px, 0);
}

@media (min-width: 869px) {
    .switch__value {
        font-size: 14px;
    }

    .switch__handle {
        width: 30px;
        height: 16px;
        margin: 0 16px;
        border-width: 3px;
    }

    .switch__handle::after {
        width: 10px;
        height: 10px;
    }

    .switch__input:checked ~ .switch__handle::after {
        transform: translate(14px, 0);
    }
}
