/* CSS код легенды */
.legend {
    font: 16px/1.2 Arial, sans-serif;
    background-color: #fff;
    position: relative; 
}

.legend__item {
    display: inline-block;
    margin-right: 2em;
    margin-bottom: .6em;
    position: relative;
    padding-left: 4em;
    cursor: pointer;
}

.legend__item::before {
    content: '';
    width: 3em;
    vertical-align: middle;
    height: 1.2em;
    background-color: currentcolor;
    display: inline-block;
    margin-right: .5em;
    position: absolute;
    left: 0;
}


.legend__item_content::before {
    content: '*';
    width: 3em;
    vertical-align: middle;
    height: 1.2em;
    background-color: transparent;
    display: inline-block;
    margin-right: .5em;
    text-align: center;
    position: absolute;
    left: -10px;
    font-size: 22px;
    padding-top: 2px;
}


.legend__item .legend__text {
    color: #333;
    vertical-align: middle;
}

.legend__item a {
    text-decoration: none;
    color: #333;
}

.is_active {
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .legend {
        position: absolute;
        z-index: 1;
        background-color: #fff;
        padding: 1.2em;
        font-size: 14px;
        width: 30%;
        border: 1px solid #ccc;
        opacity: .9;
    }
    .legend__item {
        display: block;
        margin-right: 0;
    }
}
