.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: #FFFFFF;
  stroke-width: 1;
  stroke-linejoin: round;
}

.rf-map [data-code] {
  fill: #337AB7;
  transition: fill 0.2s;
}

.rf-map [data-code]:hover {
  fill: #0180ef;
}

.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;
  }
}

@media (min-width:768px) {
  .rf-map .district span {
    top: 30px;
    left: 46px;
    font-size: 20px;
    font-weight: normal;
  }
}

@media (min-width:768px) {
  .rf-map .district-text {
    left: 30px;
    top: 80px;
    width: calc(100% - 60px);
    height: calc(100% - 130px);
    font-size: 16px;
  }
}

@media (min-width:768px) {
  .rf-map .close-district {
    width: 60px;
    height: 60px;
    font-size: 60px;
  }
}

@media (min-width:768px) {
  .rf-map .district-links {
    display: none;
  }
}

.rf-map [data-code="RU-BA"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-BRY"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-VLA"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-CHE"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-NIZ"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-LUG"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-DON"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-ZP"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-HR"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-CR"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-PRI"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-ROS"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map [data-code="RU-CE"] {
  fill: #116f21;
  cursor: pointer;
}

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

.rf-map img {
  padding-bottom: 20px;
}

.btn.fancybox {
  margin: 20px 0;
}

.code-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 600px;
}

.code-list b {
  color: #337AB7;
}

.code-list div {
  padding: 6px;
}

.code-list div:nth-child(odd) {
  width: 100px;
}

.code-list div:nth-child(even) {
  width: calc(100% - 100px);
}

