.rf-map,
.rf-map *{
    box-sizing: border-box;
}    
.rf-map {
    position: relative;
    max-width: 980px;
    margin: auto;
    padding: 20px;
}
.rf-map .district b {
    position: absolute;
    z-index: 5;
    width: 18px;
    height: 18px;
    background: rgba(51, 122, 183, 0.9);
    border-radius: 50%;
    left: 6px;
    top: 18px;
    transition: all 0.3s;
}
.rf-map .district span {
    position: absolute;
    z-index: 5;
    top: 20px;
    left: 30px;
    font-size: 13px;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    line-height: 1;
    color: #337AB7;
}
.rf-map .district {
    display: none;
}
.rf-map.open .district b {
    top: 0;
    left: 0;
    border-radius: 0;
    width:100%;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);    
}
.rf-map.open .district span {
    color: #FFF;
}
.rf-map svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));    
}
.rf-map path {
    stroke: #b7b7b7;
    stroke-width: 1;
    stroke-linejoin: round; 
}
.rf-map [data-code] {
    fill: #77838d;
    transition: fill 0.2s;
}
.rf-map [data-code]:hover {
    fill: #1bad33;
}
.rf-map .district-text {
    display: none;
    position: absolute;
    z-index: 6;
    left: 0;
    top: 60px;
    width: calc(100% - 20px);
    height: calc(100% - 90px);
    padding: 0 20px;
    overflow: auto;
    color: #FFF;
    font-size: 13px;
    font-family: Verdana, sans-serif;   
}
.rf-map .close-district {
    opacity: 0;
    z-index: 6;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;    
    width: 40px;
    height: 40px;
    line-height: 1;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: opacity 1s;
    pointer-events: none;
}
.rf-map.open .close-district {
    opacity: 1;
    pointer-events: initial;
}
.rf-map .district-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}
.rf-map .district-links div {
    font-size: 13px;
    font-family: Verdana, sans-serif; 
    padding: 4px;
}
.rf-map .district-links div:after {
    content: " | ";
    color: #337AB7;
}
.rf-map .district-links div:last-child:after {
    content: "";
}
.dropfill {
    fill: #337AB7!important;
}
.mainfill {
    fill: #1d4567!important;
}
@media (min-width:768px){
    .rf-map .district b {
        width: 28px;
        height: 28px;    
        left: 6px;
        top: 28px;
    }
    .rf-map .district span {
        top: 30px;
        left: 46px;
        font-size: 20px;
        font-weight: normal;
    }
    .rf-map .district-text {
        left: 30px;
        top: 80px;
        width: calc(100% - 60px);
        height: calc(100% - 130px);
        font-size: 16px; 
    }
    .rf-map .close-district {  
        width: 60px;
        height: 60px;
        font-size: 60px;
    }
    .rf-map .district-links {
        display: none;
    }
}
/* Цвета регионов */
.rf-map [data-code="RU-SAR"] {
    fill: #1bad33;
    cursor: pointer;
}
.rf-map [data-code="RU-SAR"]:hover {
    fill: #116f25;
}


.rf-map [data-code="RU-NVS"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-NVS"]:hover {
    fill: #116f25;
}



.rf-map [data-code="RU-MOS"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-MOS"]:hover {
    fill: #116f25;
}


.rf-map [data-code="RU-OMS"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-OMS"]:hover {
    fill: #116f24;
}


.rf-map [data-code="RU-CHE"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-CHE"]:hover {
    fill: #116f23;
}


.rf-map [data-code="RU-SAM"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-SAM"]:hover {
    fill: #116f22;
}
/*------*/
.rf-map [data-code="RU-SVE"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-SVE"]:hover {
    fill: #116f22;
}

.rf-map [data-code="RU-VOR"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-VOR"]:hover {
    fill: #116f22;
}

.rf-map [data-code="RU-KDA"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-KDA"]:hover {
    fill: #116f22;
}

.rf-map [data-code="RU-LIP"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-LIP"]:hover {
    fill: #116f22;
}

.rf-map [data-code="RU-ROS"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-ROS"]:hover {
    fill: #116f22;
}

.rf-map [data-code="RU-LEN"] {
    fill: #1bad33;
}
.rf-map [data-code="RU-LEN"]:hover {
    fill: #116f22;
}



/* ----- */

.toun_m_sam{
position: absolute;
    z-index: 1111111;
    color: #fff;
    font-size: 1em;
    margin: -277px 0 0 195px;
}

.toun_m_mow{
    position: absolute;
    z-index: 1111111;
    color: #ffffff;
    font-size: 1em;
    margin: -373px 0 0 169px;
}


.toun_m_nov{
    position: absolute;
    z-index: 1111111;
    color: #ffffff;
    font-size: 1em;
    margin: -219px 0px 0px 410px;
/*
    position: absolute;
    bottom: 28%;
    left: 40%;
    z-index: 1111111;
    color: #ffffff;
    font-size: 1.1em;
	*/
}

.toun_m_oms{
    position: absolute;
    z-index: 1111111;
	    color: #ffffff;
    font-size: 1em;
    margin: -243px 0 0 376px;
}

.toun_m_ekb{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -301px 0 0 318px;
}

.toun_m_chl{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -263px 0 0 290px;
}

.toun_m_sar{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
margin: -296px 0 0 210px;
}

.toun_m_vor{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -318px 0 0 141px;
}

.toun_m_kra{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -266px 0 0 96px;
}

.toun_m_lip{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -340px 0 0 150px;
}

.toun_m_tag{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -290px 0 0 124px;
}

.toun_m_snk{
    position: absolute;
    color: #ffffff;
    z-index: 1111111;
    font-size: 1em;
    margin: -446px 0 0 172px;
}





@media (max-width: 1100px) {
.toun_m_snk, .toun_m_tag, .toun_m_lip, .toun_m_kra, .toun_m_vor, .toun_m_sar, .toun_m_chl, .toun_m_ekb, .toun_m_oms, .toun_m_nov, .toun_m_mow, .toun_m_sam{
        position: inherit;
        color: #000;
		        margin: 0;
}
}