.layout {
    background: #292929;
}
.popup__close {
    top: 0;
    right: 10px;
}
.b-white {
    color: #fff;
}
.b-org {
    margin-top: 2.5em;
}
.b-org_annotation {
    margin-top: .4em;
}
.b-org__main {
    width: 100%;
    overflow: hidden;
    padding: 1px;
    margin: 2em 0;
    line-height: 2.2;
}
.b-org__sidebar {
    float: left;
    width: 50%;
}
.b-org__content {
    float: left;
    width: 50%;
}
.org-tree-holder {
    position: relative;
    margin: 2em 0 10em;
}
.org-tree-holder *,
.org-tree-holder *:before,
.org-tree-holder *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.branch {
    position: relative;
    margin-left: 225px;
}
.branch:before {
    content: "";
    width: 5px;
    /*border-top: 1px solid #aaa;*/
    opacity: .5;
    position: absolute;
    left: -15px;
    top: 50%;
}
.lv1 {
    margin-left: 0px;
}
.lv1:before {
    display: none;
}
.entry {
    position: relative;
    min-height: 135px;
}
.entry:before {
    content: "";
    height: 100%;
    border-left: 1px solid #aaa;
    opacity: .5;
    position: absolute;
    left: -10px;
}

.entry:after {
    content: "";
    width: 10px;
    border-top: 1px solid #aaa;
    opacity: .5;
    position: absolute;
    left: -10px;
    top: 50%;
}
.entry:first-child:before {
    width: 10px;
    background: #fff;
    height: 50%;
    bottom: 0;
    /*
    top: 70px;
    height: 100%;
    /*margin-top: 2px;*/
    border-radius: 6px 0 0 0;
}

.fix.entry:first-child:before,
.label_lv1 + .branch .entry.entry_lv2:before {
    top: 68px;
    bottom: auto;
    height: 100%;
}

.entry:first-child:after {
    height: 10px;
    border-radius: 6px 0 0 0;
    /*margin-top: 1px;*/
}

.entry.last-child:before{
    width: 10px;
    height: 50%;
    border-radius: 0 0 0 6px;
}
.entry.last-child:after{
    height: 10px;
    border-top: none;
    border-bottom: 1px solid #aaa;
    border-radius: 0 0 0 6px;
    margin-top: -9px;
}
/*
.entry.entry_lv1:first-child:before {
    height: 100%;
}
*/
.lv1 > .entry:before, .lv1 > .entry:after {
    content: none;
}

.entry.sole:before {
    display: none;
}
.entry.sole:after {
    width: 20px;
    height: 0;
    margin-top: 0;
    border-radius: 0;
}
.label {
    display: block;
    width: 210px;
    padding: 15px 0;
    line-height: 17px;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -35px;
    font-size: 80%;
}

.label_lv1, .label_lv1 + .branch:before,
.entry.entry_lv1:after, .entry.entry_lv1:before,
.entry.fix:after, 
/*.entry.fix:before,*/
.entry.fix > .label, .entry.fix > .label + .branch:before {
    top: 68px;
}

.entry.fix > .label_stopped {
    top: auto;
    bottom: 0;
}

.label_lv1 + .branch .entry.entry_lv2:before,
.label_lv1 + .branch .entry.entry_lv2:after,
.entry.fix > .label + .branch > .entry:first-child:before,
.entry.fix > .label + .branch > .entry:first-child:after {
    border-radius: 0;
}

.entry.fix.last-child:before {
    height: 70px; /*dirt*/
}

.entry.js-move:after,
.entry.js-move .branch:before,
.entry.js-move .entry.fix:after,
.entry.js-move .label:before {
    background: transparent;
    border-color: transparent;
}

.b-person.moving {
    width: 155px;
}
.b-person.moving:after {
    content: "";
    position: absolute;
    left: -50px;
    right: -10px;
    top: 20px;
    height: 1px;
    background: #d9d9d9;
    z-index: -1;
}
.b-person__icon-info {
    position: absolute;
    top: -5px;
    right: -5px;
    cursor: pointer;
    display: none;
}
.b-person-card .b-person__icon-info {
    display: block;
}
.b-person__decorations {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -5px;
    right: -10px;
    bottom: -5px;
    left: -55px;
    border: 1px solid #d9d9d9;
    box-shadow: 3px 3px 0 rgba(215, 215, 215, 0.3);
    border-radius: 5px;
    -webkit-transition: all .2s ease 0s;
    -moz-transition: all .2s ease 0s;
    -ms-transition: all .2s ease 0s;
    -o-transition: all .2s ease 0s;
    transition: all .2s ease 0s;
    z-index: 2;
}

.label_view .b-person__decorations {
    box-shadow: none;
    border: 1px solid rgba(0,122,197,.3);
    visibility: visible;
    opacity: 1;
    left: -15px;
}

.label_view .b-person {
    margin-left: 10px;
    min-height: 35px;
}

.label_view .b-person-name:link, .label_view .b-person-name:visited, .label_view:hover  .b-person-name, .label_view  a.b-person-name:hover {
    color: rgb(0,122,197);
    display: block;
    font-weight: normal;
}
.label_view:hover .b-person__decorations {
    border-color: #007ac5;
}


/*.b-person:hover .b-person__decorations, */
.b-union__box .b-person__decorations {
    visibility: visible;
    opacity: 1;
}
.b-union__box .b-person__decorations {
    left: -10px;
    right: 0;
    background-color: yellowgreen;
}

.b-person a.b-person-data, .b-person a.b-person-name {
    border-bottom-color: transparent;
}

.b-person:hover a.b-person-data, .b-person:hover a.b-person-name {
    border-bottom-color: #c8c8c8;
    border-bottom-color: rgba(0,0,0,.3);
    z-index: 2;
}

.label_hasChild:before {
    content: "";
    position: absolute;
    top: 35px;
    left: -1px;
    right: -5px;/*-5*/
    height: 1px;
    background: #aaa;
    opacity: .4;
}
.label_moving:before,
.label_moving + .branch:before {
    content: none;
}

/*.label_hasChild.b-person__box:hover:before,
.b-person.moving:hover:after {
    content: none;
}
*/
.label__section-name {
    position: absolute;
    bottom: 100%;
    color: #bbb;
    font-size: 90%;
    line-height: 18px;
}

.inline-list-title {
    margin-right: 5px;
}
.inline-list {
    line-height: 1.7;
}
.inline-list a {
    margin-right: 5px;
}
.b-person {
    position: relative;
    display: block;
    margin-left: 50px;
    min-height: 40px;
    z-index: 1;
}

.b-person-avatar {
    position: absolute;
    top: 0;
    left: -50px;
    box-shadow: inset 0 0 3px rgba(0,0,0,.7);
}

.b-person-name {
    font-weight: 600;
}

.b-person-name, .b-person-data {
    position: relative;
    z-index: 3;
}

.b-person-data_truncated {
    overflow: hidden;
    /*height: 3em;*/
}

.entry_colored .b-person-name,
.entry_colored .label__section-name {
    color: #987243;
}
.entry_colored .label__section-name {
    opacity: .6;
}
.entry_colored2 .b-person-name {
    color: #77666b;
}

/* Popup */

.org-card {
    float: left;
    padding: 1em;
}
.card-section {
    width: 100%;
    overflow: hidden;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}
.card-section:first-child {
    padding: 0;
    margin: 0;
    border: none;
}
.card-section__photo {
    float: left;
    width: 90px;
    border-radius: 6px;
    overflow: hidden;
}
.card-section__photo img {
    display: block;
}
.card-section__info {
    margin-left: 120px;
}
.card-section li::before {
    margin-left: 0;
}
.popup-sidebar {
    float: left;
    width: 300px;
    height: 100%;
    background: rgba(103,103,103,.4);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .7em;
    overflow: hidden;
}
.detect_no-rgba .popup-sidebar  {
    background: rgb(75,75,75);
}
.popup_with-sidebar {
    margin-left: 330px;
}

.org-sidebar {
    position: relative;
    padding: 1em;
    height: 100%;
}
.sidebar-section {
    position: relative;
    width: 100%;
    margin-top: 1em;
    padding-top: .5em;
    border-top: 1px solid #535353;
    color: #919191;
    text-align: center;
}
.sidebar-section:first-child {
    padding: 0;
    margin: 0;
    border: none;
}
.sidebar-section__photo {
    width: 100px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
}
.sidebar-section__photo img {
    display: block;
}
.sidebar-section__name {
    color: #fff;
    font-weight: 600;
}
.sidebar-section__info {
    margin-top: .5em;
    font-size: 90%;
}
.sidebar-ctl {
    display: block;
    position: absolute;
    top: 0;
    padding: 4em 0 500px;
    width: 100%;
    font-size: 90%;
    font-weight: 600;
}
.sidebar-head {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    padding-bottom: 1em;
    text-align: center;
    color: #919191;
}

/*Side bar*/
.sidebar-nav {
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #3f3f3f;
}
.sidebar-nav:first-child {
    margin-top: 0;
    border-top: none;
}
.navigation_org span,
.navigation_org a {
    font-size: 84%;
}
.navigation_org:first-child,
.navigation_org:first-child li:first-child {
    margin-top: 0;
}
.navigation_org li.selected{
    background: #3f3f3f;
    color: #f1e8b4;
    position: relative;
    margin: 0 -1.5em;
    padding: .3em 1.5em;
}
.navigation_org li.selected:after{
    right: 0;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-right-color: #ffffff;
    border-width: 10px;
    margin-top: -10px;
}
.navigation_org li {
    line-height: 1.2;
}


/***********/

.layout.fullwidth {
    padding-bottom: 0;
}

.l-sidebar {
    width: 200px;
    float: left;
}

.l-sidebar__inner {
    padding: 1em 1.5em;
}

.l-sidebar_white {
    /*background: #fff;*/
}

.grid_with-sidebar {
    background: #fff url('/f/src/global/i/gradient-bottom.jpg') bottom repeat-x;
    margin-left: 200px;
    margin-top: -45px;
    padding-right: 40px;
    border-radius: 10px 0 0;
}

.main_with-b-t {
padding-top: 1.5em;
border-top: 1px solid #ddd;
}

.fullwidth .main, .fullwidth .modules__inner {
    margin-right: 0;
}

.fullwidth .b-header, .fullwidth .main, .fullwidth .footer {
    margin-left: 40px;
}

.notice {
    background: #f5f6ee;
    padding: 10px 15px;
    margin-top: 30px;
    font-size: 85%;
}

.notice p {
    margin-top: 10px;
}

.cut .popup_sitemap_wrapper {
    background: #fff;
    z-index: 1000;
}

.popup_sitemap_content {
    background: #fff;
}

.with-icon_info_bg:after {
    content: '';
    background-position: -449px -102px;
}

.with-icon_info-2:after {
    content: '';
    left: -20px;
    width: 20px;
    height: 20px;
}

.show_more, .tag.show_more, .show_more:visited {
    position: absolute;
    top: 68px;
    margin: -15px 0 0;
    background: #fff no-repeat 95% 50% url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAJCAIAAABi7eEAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1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I1YQtqIMu4kWhN8k5sXN7P1U2j9dSdBXKRq0cy7mG+wGCQRCmwEkvOLl+ay4fFi/YcAFYNTeGIFtwPiygm7++GkwPT4eePs+i3iBjOcWaf+cdH4rB6TOFdS5yqkz5JZJOtxW0H2t1t1xVJlZFkXwowSUZweqq38Zwr33QzySyGj6Up5/q6HY8e4VcUOpvBolBWpS76c/OcHsfSNAkgfQp8e/6FWAAuEmCyQxlPNIAAAAASUVORK5CYII=');
    padding-right: 30px;
    cursor: pointer;
    font-size: 90%;
    z-index: 2;
}

.show_more:hover {
    z-index: 5;
}

.tag.show_more {
    border-right-width: 1px !important;
    border-radius: 3px;
}

.tag.show_more, .show_more:visited {
    position: absolute;
    padding-right: 30px;
    background-color: #fff;
}

.tag.show_more:after {
    content: none;
}

.tag.show_more_external {
    background-image: none;
    padding-right: .5em;
}

.entry.position_1_1.sole::after,
.entry_more:after {
    top: 68px;
}

.moving:before {
    content: "";
    height: 2000px;
    border-left: 1px solid #ddd;
    position: absolute;
    right: -11px;
    bottom: 100%;
    margin-bottom: -20px;
}

.moving:hover:before {
    content: none;
}


.b-person-data {
    display: block;
    font-size: 90%;
}

.b-union {
    margin-left: 5px;
}

/*
.b-person-avatar {
    width: 90px;
    left: -100px;
}

.b-person {
    margin-left: 110px;
    min-height: 90px;
}

.b-union {
    margin-left: 15px;
    min-height: 40px;
}

.b-person__decorations {
    left: -110px;
}
*/

/*
[class*="position_1_"]:first-child > .label:after {
    content: '';
    position: absolute;
    top: -200px;
    margin-top: 35px;
    left: -10px;
    width: 5px;
    height: 200px;
    background-color: #fff;
}

[class*="position_1_2"]:first-child > .label:after {
    content: none;
}
.entry.last-child:before {
    z-index: 2;
}
*/
.b-person-text {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    max-height: 90px;
    position: relative;
}

.b-person:hover .b-person-text span, .b-person:hover .b-person-data span {
    display: none;
}

.b-person:hover .b-person-text {
    max-height: none;
}

.b-person:hover .b-person-text:before {
    content: attr(data-text);
}
.b-person:hover .b-person-data:before {
    content: attr(data-info);
}

.b-person:hover {
    z-index: 5;
}

.b-person__decorations {
    z-index: 1;
    background: #fff;
}

.b-person-card, .b-person-card .b-person-avatar, .b-person-card .b-person {
    -webkit-transition: all .2s ease 0s;
    -moz-transition: all .2s ease 0s;
    -ms-transition: all .2s ease 0s;
    -o-transition: all .2s ease 0s;
    transition: all .2s ease 0s;
}

.b-person-card .b-person-data {
    display: inline-block;
    max-height: 110px;
    overflow: hidden;
}

/* увеличиваем фотографию по ховер

.b-person-card:hover .b-person-data {
    max-height: none;
    overflow: visible;
}

.b-person-card:hover {
    width: 260px;
}

.b-person-card:hover .b-person-avatar {
    width: 90px;
    left: -98px;
}
.b-person-card:hover .b-person {
    margin-left: 102px;
    min-height: 90px;
}


.b-person-card:hover .b-person__decorations {
    margin-left: -52px;
    top: -7px;
    bottom: -7px;
}

*/

.b-person__hide_more {
    position: absolute;
    z-index: 3;
    right: -14px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #aaa;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.b-person__hide_more:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -4px 0 0 -5px;
    width: 10px;
    height: 10px;
    background: -408px -114px no-repeat url(/f/src/global/i/sprite.png);
}

.notice p:first-child {
    margin-top: 0;
}
.notice li:before {
	margin-left: 0em;
}

dl.relation {
	margin-top: 0px;
	width: 50%;
	vertical-align: top;
	display: inline-block;
}

dd.description_content {
	max-height: 250px;
	overflow-y: auto;
}

.footer__extra {
    float: right;
    width: 20%;
}
.footer__extra .editor {
    margin: 0;
}

.fullwidth .footer__navigation {
    width: auto;
}

.footer__navigation .navigation_footer {
    width: 20%;
}


a.link-underline, a.link-underline:visited, a.link-underline .b-person-text {
	text-decoration: underline;
}
a.link-underline:hover {
	border-bottom: none;
}
.description_content:first-child {
	margin-top: 0px;
	padding-top: 0px;
}

.description_content p, .description_content ul,  .description_content ol,  .description_content dl, .description_content .data, .description_content .comment,  .description_content picture, .description_content .footnotes {
	margin-top: 0px;
}

.popup-holder_card {
    min-width: 700px;
}

.popup-fixed:before {
    height: none;
}

.js-person-popup:before {content: none;}


/*******/
.b-person-card--unit:hover .b-person-name {
    color: #d2270b;
    border-bottom-color: rgba(210,39,11,0.3);
}

.b-person-card--unit .b-person__hide_more {
    right: -11px;
    top: 9px;
}

.b-person-card--unit.b-person-card--unit.label_hasChild:before {
    content: '';
    right: -15px;
}

.b-person-card--unit.b-person-card--unit .b-person-data {
    display: block;
    overflow: hidden;
    max-height: 6em;
}

.b-person-card--unit:hover .b-person-data {
    max-height: none;
    height: auto;
    overflow: visible;
}

.b-person-card--unit .b-person .b-person__decorations {
    visibility: visible;
    opacity: 1;
    left: -15px;
    top: -10px;
    bottom: -10px;
}

.b-person-card--unit.b-person-card--unit {
    width: 205px;
}

.b-person-card--unit .b-person, 
.b-person-card--unit:hover .b-person {
    min-height: 40px;
    margin-left: 15px;
    margin-right: 5px;
}

.b-person-card--unit:hover .b-person__decorations {
    margin-left: 0;
}

.b-person-card--unit .b-person-avatar {
    display: none;
}
