#login-dialog input {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.templater .current {
    color: #c00;
}

.templtes {
    display: none;
}

.templtes.current {
    display: block;
}

#auth-related-dialogs .hidden {
    display: none;
}

.ui-popup-overlay, .ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: scroll;
    background: url(../images/popup_bg.png)
}

.ui-popup-overlay .centered {
    position: absolute;
    left: 50%
}

.ui-dialog {
    background-color: #f6f6f6;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    -moz-box-shadow: 0 0 40px rgba(0, 0, 0, .23);
    -webkit-box-shadow: 0 0 40px rgba(0, 0, 0, .23);
    box-shadow: 0 0 40px rgba(0, 0, 0, .23);
    position: absolute;
    /*margin: 16px auto;*/
    /*font-size: 13px;
    font-family: "Open Sans",Arial,Tahoma,Verdana,sans-serif;*/
    color: #353535;
    text-align: left;
}

.ui-dialog .ui-icon-closethick {
    text-indent: -9999em;
    display: block;
}

.ui-dialog .ui-dialog-titlebar-close:before {
    content: "x";
}


.ui-dialog a {
    color: #8a292a;
}

.ui-dialog .logo {
    background: url(../images/logo.png) no-repeat 50% 50%;
    width: 380px;
    height: 40px;
    bottom: 10px;
    position: absolute;
    left: -25px;
    background-color: #F0F0f0;
}

.ui-dialog .ui-dialog-titlebar-close {
    text-decoration: none;
    padding: 2px 6px 3px;
}

.ui-dialog .ui-title-font {
    font-size: 1.385em;
    line-height: 1.278em;
    overflow: hidden;
    font-weight: 700
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title {
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid #e6e6e6;
    background-color: #fff;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title .g-solid-link {
    margin: .417em 0 0 20px;
    float: right;
    border-color: #dbdbdb;
    font-size: .923em;
    line-height: 1.417em;
    color: #888787
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title .g-solid-link:hover {
    border-color: #000;
    color: #888787
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title h2 {
    font-size: 1.385em;
    line-height: 1.278em;
    overflow: hidden;
    font-weight: 700;
    text-align: left;
    color: #000;
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title {

}

.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
    line-height: 28px;
    position: absolute;
    top: -7px;
    left: 100%;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Open Sans', Arial, Tahoma, Verdana, Sans-serif;
    color: #7e7e7e;
    text-align: center;
    cursor: pointer;
    z-index: 1005;
    background-color: rgba(0, 0, 0, 0);
    border: 0
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close.hover, .ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close:hover {
    color: #3a3a3a
}

.ui-dialog .ui-dialog-content {
    padding: 25px;
    height: auto !important;
    font-size: 12px;
}

.ui-dialog .ui-dialog-content h2 {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
}

.ui-dialog .ui-dialog-content .b-form-1 {
    color: #000
}

.ui-dialog .ui-dialog-content .button-continue {
    width: 126px
}

.ui-dialog .ui-dialog-content .button-continue span {
    display: block
}


.ui-dialog.no-close .ui-dialog-titlebar-close {
    display: none
}

.ui-dialog .remind-link {
    margin-top: 5px
}

.login-dialog .b-form, .login-dialog .b-form__item:first-child {
    margin-top: 0;
}

.ui-dialog .ui-dialog-buttonpane {
    background-image: none;
    border-width: 1px 0 0 0;
    margin: .5em 0 0 0;
    padding: .3em 1.45em .5em .4em;
    text-align: left;
}

.ui-dialog .ui-dialog-buttonpane button {
    cursor: pointer;
    float: right;
    line-height: 1.4em;
    margin: .5em .4em .5em 0;
    overflow: visible;
    width: auto;

    color: #fff;
    background-color: #353535;
    border-color: #353535;
}

/*
.login-upload-dialog {
    padding-top: 0;
}

.login-upload-dialog .b-form {
    float: left;
    width: 55%;
    padding: 15px 25px;
    margin: -25px !important;
    border-right: 1px solid #e6e6e6
}

.login-upload-dialog .upload-instruction {
    float: right;
    color: #757575;
    width: 50%
}

.login-upload-dialog .upload-instruction .upload-rule {
    padding-top: 0
}

.login-upload-dialog .b-form__item:first-child {
    margin-top: 6px
}*/

.g-button {
    padding: 1em 1.778em .778em;
    display: -moz-inline-stack;
    display: inline-block;
    font: 9px/1.667em 'Open Sans', Arial, Tahoma, Verdana, sans-serif;;
    font-weight: 700;
    letter-spacing: .16em;
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    cursor: pointer;
    text-decoration: none;
    width: 160px;
}

.g-button-4 {
    background-color: #516eaa;
    color: #fff !important;
}

.g-button-vk {
    background-color: #6181A6;
    color: #fff !important;
}

.g-button-tw {
    background-color: #00aced;
    color: #fff !important;
}

.g-button-od {
    background-color: #ff9f4d;
    color: #fff !important;
}

.no-touch .g-button-vk:hover {
    background-color: #6e91b4;
    color: #fff !important;
}

#login-dialog .facebook, .ava-social-icon-facebook {
    width: 1em;
    padding: 0 2px 1px;
    position: absolute;
    top: -1px;
    right: -3px;
    background: #516eaa url(../img/f.png) no-repeat 50% 50%;
    font-size: 13px;
    line-height: 15px;
    color: #fff;
    text-align: center;
    text-indent: -9999em;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box
}

#login-dialog .vkontakte, .ava-social-icon-vkontakte {
    width: 1em;
    padding: 0 2px 1px;
    position: absolute;
    top: -1px;
    right: -3px;
    background: #6e91b4 url(../img/vk_small.png) no-repeat 50% 50%;
    font-size: 13px;
    line-height: 15px;
    color: #fff;
    text-align: center;
    text-indent: -9999em;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box
}

.button-authorization {
    overflow: hidden;    
}


.button-authorization span {
    width: 32px;
    height: 30px;
    padding: 1em 1.5em .667em;
    margin: -1em 1.778em -.778em -1.778em;
    display: -moz-inline-stack;
    display: inline-block;
    text-indent: 9999em;
    background: url(//yandex.st/share/static/b-share_counter_large.png) no-repeat; 
}

.button-authorization span.button-title {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    display: inline;
    float: none;
    text-indent: 0
}

.button-authorization .od {
    background-position: 4px -112px;
    width: 32px;
    height: 30px;
    border-right: 1px solid #cc7f3e;
}

.button-authorization .tw {
    background-position: 5px -83px;
    width: 34px;
    height: 30px;
    border-right: 1px solid #008abe
}

.button-authorization .fb {
    background-position: 2px 2px;
    width: 34px;
    height: 30px;
    border-right: 1px solid #465f92
}

.button-authorization .vk {
    background-position: 4px -55px;
    width: 32px;
    height: 30px;
    border-right: 1px solid #43668e
}

/*.form-control {*/
/*display: block;*/
/*width: 100%;*/
/*height: 36px;*/
/*padding: 4px 10px;*/
/*font-size: 12px;*/
/*line-height: 1.428571429;*/
/*color: #353535;*/
/*vertical-align: middle;*/
/*background-color: #fff;*/
/*background-image: none;*/
/*border: 1px solid #d4d4d4;*/
/*border-radius: 4px;*/
/*-moz-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;*/
/*-ms-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;*/
/*-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;*/
/*-webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;*/
/*transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s*/
/*}*/

.b-form .b-form__item {
    margin-top: 27px;
    position: relative
}

.b-form .b-form__item span > label {
    display: block;
    font-size: .9em;
    color: #777
}

label {
    font-weight: 400;
    min-height: 19px;
    margin-bottom: 5px;
}

.b-form .b-log-on-social-networks {
    padding-bottom: 12px;
    margin-bottom: 12px;
    /*border-bottom: 1px solid #e6e6e6*/
}

.b-form .b-log-on-social-networks dd {
    padding: 0 0 12px
}

.b-form .b-log-on-social-networks dd .g-button-4, .b-form .b-log-on-social-networks dd .g-button-tw {
    float: right
}

.b-form .b-log-on-social-networks img {
    vertical-align: baseline
}

.b-form .b-log-on-social-networks .facebook {
    width: 56px;
    height: 11px;
    background: url(../img/facebook.png) no-repeat 0 0;
    font-size: 12px;
    font-weight: 400;
    text-transform: none
}

.b-form .b-notice-1 {
    padding: 15px 25px 0;
    margin: 10px -25px -5px;
    border-top: 1px solid #e6e6e6;
    font-size: .923em;
    line-height: 1.417em
}

.b-form .b-notice-2 {
    padding: 1.25em 25px;
    margin: 20px -25px 0;
    position: relative;
    display: none;
    border-width: 1px 0;
    border-style: solid;
    border-color: #d9d9d9;
    background-color: #e5e5e5;
    font-size: .923em;
    line-height: 1.5em
}

.b-form .b-notice-2 .arrow-1 {
    bottom: 100%;
    left: 30px
}

.b-form .b-notice-2 .arrow-1 span {
    border-color: #d9d9d9;
    background-color: #e5e5e5
}

.b-form .b-error-message-1 {
    padding-top: .182em;
    display: none;
    font-size: .846em;
    line-height: 1.364em;
    color: #fb5454
}

.arrow {
    position: absolute;
    display: block;
    font-size: 1px
}

.arrow-1 {
    width: 13px;
    height: 7px
}

.arrow-1 span {
    height: 1px;
    display: block
}

.arrow-1 .l1 {
    margin: 0 6px;
    border-left: 1px solid
}

.arrow-1 .l2 {
    margin: 0 5px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-1 .l3 {
    margin: 0 4px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-1 .l4 {
    margin: 0 3px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-1 .l5 {
    margin: 0 2px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-1 .l6 {
    margin: 0 1px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-1 .l7 {
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 {
    width: 7px;
    height: 7px
}

.arrow-2 span {
    height: 1px;
    display: block
}

.arrow-2 .l1 {
    border-left: 1px solid
}

.arrow-2 .l2 {
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 .l3 {
    margin-right: 1px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 .l4 {
    margin-right: 2px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 .l5 {
    margin-right: 3px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 .l6 {
    margin-right: 4px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-2 .l7 {
    margin-right: 5px;
    border-right: 1px solid;
    border-left: 1px solid
}

.arrow-3 {
    width: 7px;
    height: 7px;
    overflow: hidden
}

.arrow-3 span {
    width: 1px;
    float: left;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box
}

.arrow-3 .l1 {
    margin-bottom: 6px;
    border-top: 1px solid
}

.arrow-3 .l2 {
    margin-bottom: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid
}

.arrow-3 .l3 {
    height: 1px;
    margin-bottom: 4px;
    border-top: 1px solid;
    border-bottom: 1px solid
}

.arrow-3 .l4 {
    height: 2px;
    margin-bottom: 3px;
    border-top: 1px solid;
    border-bottom: 1px solid
}

.arrow-3 .l5 {
    height: 3px;
    margin-bottom: 2px;
    border-top: 1px solid;
    border-bottom: 1px solid
}

.arrow-3 .l6 {
    height: 4px;
    margin-bottom: 1px;
    border-top: 1px solid;
    border-bottom: 1px solid
}

.arrow-3 .l7 {
    height: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    background-color: #fff
}

/*.btn, .ui-button {
    display: inline-block;
    margin-bottom: 0;
    font-family: 'Open Sans Semibold', Arial, Tahoma, Verdana, Sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 5px 20px;
    font-size: 10px;
    line-height: 1.428571429;
    border-radius: 4px;
    padding: 7px 20px 5px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none
}*/

.btn:hover, .btn:focus {
    color: #fff;
    text-decoration: none
}

.btn:active, .btn.active {
    outline: 0;
    background-image: none;
    -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
}

.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: not-allowed;
    pointer-events: none;
    opacity: .65;
    filter: alpha(opacity=65);
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none
}

.btn-default, .btn-light {
    color: #fff;
    background-color: #353535;
    border-color: #353535
}

.b-form .b-form__item .g-button-submit {
    margin-right: 18px;
    float: left;
}

.ui-dialog .remind-link {
    margin-top: 5px;
}
.b-form .g-grey-link, .b-form .g-grey-link:hover {
    color: #888787;
}
.b-form .g-solid-link {
    border-color: #dbdbdb;
    font-size: .923em;
    line-height: 1.417em;
}
.g-solid-link {
    border-bottom: 1px solid;
    text-decoration: none;
}
.g-float-right {
    float: right !important;
}

.b-form.b-form-compact .b-form__item, .ui-dialog .b-form .b-form__item {
    margin-top: 12px;
}

.g-cfix:after, .l-outer-i:after, .g-tabs__list:after, .b-social-network-profile:after, .b-form__item-section:after, .g-white-place-i:after, .b-search:after, .b-search__results-item:after, .b-video:after, .ui-dialog-buttonset:after {
    height: 0;
    content: " ";
    display: block;
    clear: both;
    font-size: 0;
    visibility: hidden
}