.b-emoji{
  background: transparent;
  width: 16px !important;
  height: 16px !important;
  border: none;
  vertical-align: -3px;
  margin: 0 1px !important;
  display: inline-block;
  max-width: none;
  min-width: 0;
  max-height: none;
  min-height: 0;
  zoom: 1;
}

.b-form-item-label{
  position: relative;
}

.b-bbcode-help-ico{
  font-family: Verdana, Arial, Sans-Serif;
  position: absolute;
  top: 50%;
  margin-top: -6px;
  right: 0px;
  border: #000 solid 1px;
  text-align: center;
  border-radius: 100%;
  width: 13px;
  height: 13px;
  overflow: hidden;
  font-size: 9px;
  color: #000;
  line-height: 12px;
  opacity: 0.4;
}

.b-bbcode-help-ico:after{
  content: 'i';
}

.b-bbcode-help-ico:hover{
  text-decoration: none;
  color: #000;
  opacity: 1;
}

/* BBTAG BURL LINK */

.b-burl-link._video{
  display: block;
  position: relative;
}

.b-link-img, 
.b-burl-link._photo, 
.bb-url._link_blank{
  position: relative;
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
}

.bb-url._link_blank{
  cursor: pointer;
}

.justified-gallery .b-link-img, 
.justified-gallery .b-burl-link._photo, 
.justified-gallery .b-burl-link._video{
  position: absolute; /* Важно для работы сетки, в протоивном случае сыпится сетка. */
}

.b-link-img:after, 
.b-burl-link._video:after, 
.b-burl-link._photo:after, 
.bb-url._link_blank:after{
  background: url(images/ico-play.min.svg) center center no-repeat;
  background-size: contain;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  opacity: 0;
  z-index: 1;
  filter: alpha(opacity=0);
  -webkit-transform: scale(2);
  -ms-transform: scale(2);
  transform: scale(2);
  transition: all ease-out 250ms;
  -webkit-transition: all ease-out 250ms;
  -moz-transition: all ease-out 250ms;
}

.b-link-img:after, 
.b-burl-link._photo:after{
  background-image: url(images/ico-zoom.min.svg);
}

.bb-url._link_blank:after{
  background-image: url(images/ico-blank.min.svg);
}

/* Рекомендуемый размер использования по ширине: до 280px ; */
.b-link-img_small:after{
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
}

.b-burl-link._video:after{
  opacity: .6;
  filter: alpha(opacity=60);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.b-body-mobile .b-burl-link._video:after{
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
}

.b-link-img:hover:after,
.b-burl-link._video:hover:after, 
.b-burl-link._photo:hover:after, 
.bb-url._link_blank:hover:after, 
.b-body-mobile .bb-url._link_blank:after{
  opacity: .8;
  filter: alpha(opacity=80);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

/* BBLINK: INSTAGRAM */

.b-instapost{
  background: rgba(0, 0, 0, 0.04) url(images/ico-instagram.svg) 3px 3px no-repeat;
  border: #ededed solid 1px;
  background-size: 16px;
  display: inline-block;
  padding-left: 22px;
  color: #000;
  border-radius: 3px;
  line-height: var(--global-font-size-base, 14px);
  padding: 5px 4px 4px 24px;
  text-decoration: none !important;
}

.b-instapost:hover{
  text-decoration: none !important;
  color: #000;
}

.b-instapost._error, 
.b-instapost._error:hover{
  color: #666;
}

/* BBTAG: YPOUTUBE */

.b-bb-youtube{
  height: 415px;
}

@media (max-width: 600px) {
  .b-bb-youtube{
    height: 315px;
  }
}

@media (max-width: 500px) {
  .b-bb-youtube{
    height: 215px;
  }
}

@media (max-width: 420px) {
  .b-bb-youtube{
    height: 150px;
  }
}

/* BBTAG: SMILE */

.b-bb-smile{
  transition: all .5s;
  -moz-transition: all .5s;
  -webkit-transition: all .5s;
  -o-transition: all .5s;
  transform: scale(1.0);
  -ms-transform: scale(1.0);
  -webkit-transform: scale(1.0);
  -o-transform: scale(1.0);
  -moz-transform: scale(1.0);
  width: 20px;
}

.b-bb-smile:hover{
  transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  -moz-transform: scale(1.2);
}

/* BBTAG: GRID */

/* CSS фото сетка */

.b-grid-photos{
  display: grid;
  grid-template-rows: auto;
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 15px;
  width: auto;
}

.b-grid-photos a{
  display: block;
}

.b-grid-photos img{
  background-color: #d6d6da;
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

@media (max-width: 768px) {
  .b-grid-photos{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .b-grid-photos{
    grid-template-columns: 1fr 1fr;
  }
}

/* BBTAG: HL */

.b-bb-highlight{
  padding: 2px;
  background-color: #fff7ab;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* BBTAG: BIGLETTER */

.b-bb-bigletter{
  float: left; 
  display: inline-block;
  font-size: 75px; 
  line-height: 60px; 
  padding-top: 4px; 
  padding-right: 8px; 
  padding-left: 3px; 
}

/* BBTAG: OFF */

.b-bbofftopic{
  font-size: 11px;
  color: #999;
  margin-bottom: 15px;
}

.b-bbofftopic:last-of-type{
  margin-bottom: 0;
}

/* BBTAG: NICK */

.bb-user-link{
  color: #488f03;
}

/* BBTAG: SPOILER */

.b-bbspoiler__link{
  border: #e3e3e3 dashed 1px;
  display: block;
  padding: 5px;
  margin-bottom: 1em;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  line-height: normal;
}

.b-bbspoiler__link:after{
  content: 'внимание: информация, раскрывающая сюжетные подробности';
  display: block;
  text-transform: none;
  font-weight: normal;
  color: #ccc;
  font-size: 10px;
}

.b-bbspoiler__link:hover{
  background: #fff;
  border: #d02301 dashed 1px;
  text-decoration: none;
  color: #d02301;
}

.b-bbspoiler__link:hover:after{
  color: #d02301;
}

.b-bbspoiler__link._open,
.b-bbspoiler__link._open:hover{
  opacity: 0.4;
}

.b-bbspoiler__content{
  margin-bottom: 1em; 
  display: block;
}

.b-comment-item__content .b-bbspoiler__content{
  padding-bottom: 1em; 
}

/* BBTAG: NOTE */

.b-note{
  background: #fcfbf6;
  display: block;
  padding: 15px;
  border-radius: 2px;
  margin-bottom: 25px;
  margin-top: 25px;
}

.b-note p:first-of-type{
  margin-top: 0;
}

.b-note p:last-of-type{
  margin-bottom: 0;
}

.b-note._actions{
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin: 0;
  border: 0;
}

.b-note._actions:after{
  content: '';
  clear: both;
  display: block;
  height: 1px;
  visibility: hidden;
}

.b-note._actions br{
  display: none;
}

.b-note._actions p{
  display: inline;
}

.b-note._actions .b-bb-btn{
  float: left;
  margin-right: 15px;
}

.b-note._actions .b-bb-btn:last-of-type{
  margin-right: 0;
}

.b-note._lead{
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 26px;
  margin-top: 0;
  padding: 25px;
}

.b-note._grey{
  background: #f1f1f1;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-style: normal;
  margin-top: 0;
  padding: 20px;
  padding-left: 40px;
}

.b-note._white{
  background: #fff;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-style: normal;
  margin-top: 0;
  padding: 20px;
  padding-left: 40px;
}

.b-note._dots{
  border: 0;
  font-size: 16px;
  margin: 30px 0;
  padding: 45px;
  position: relative;
}

.b-note._dots:before, 
.b-note._dots:after{
  background: url(images/dot.png) left top repeat-x;
  content: '';
  display: block;
  left: 0px;
  width: 100%;
  height: 10px;
  position: absolute;
}

.b-note._dots:before{ top: 0px; } 
.b-note._dots:after{ bottom: 0px; }

.b-note._circle{
  display: block;
  background: #333;
  border-radius: 100%;
  width: 150px;
  height: 150px;
  color: #fff;
  font-style: italic;
  padding: 70px 0 0 0;
  margin: 20px;
  border: 0;
  position: relative;
  text-align: center;
  overflow: hidden;
  font-family: Georgia;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  transition: all 0.5s ease-out 0.1s;
  -moz-transition: all 0.5s ease-out 0.1s;
  -webkit-transition: all 0.5s ease-out 0.1s;
  -o-transition: all 0.5s ease-out 0.1s;
}

.b-note._circle:before{
  content: '”';
  font-size: 125px;
  color: #757575;
  font-style: normal;
  position: absolute;
  top: 5px;
  left: 0px;
  width: 100%;
  line-height: normal;
}

.b-note._circle:hover{
  -webkit-transform: rotate(45deg); /* разворот элемента для разных бразуеров */
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* BBTAG: COUNTER */

body {
  counter-reset: bbcounter; /* Инициируем счетчик */
}

.b-text-counter{
  display: inline-block
}

.b-text-counter:before{
  border: #eee solid 3px;
  counter-increment: bbcounter;
  content: counter(bbcounter);  
  color: #555;
  width: 38px;
  height: 38px;
  font-size: 24px;
  border-radius: 100%;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  letter-spacing: -1px;
}

/* BBTAG: PCOLS */

@media all and (min-width: 900px) {
  .b-pcols{
    -webkit-column-count: 2;
    -webkit-column-gap: 7%; /* Saf3, Chrome*/
    -moz-column-count: 2;   
    -moz-column-gap: 7%; /* FF3.5+ */
    column-count: 2;        
    column-gap: 7%; /* Opera 11+*/
    margin-bottom: 15px;
  }
  
  .b-pcols p:last-of-type{
    margin-bottom: 0;
  }
}

/* BBTAG: H1-6 */

.b-h1{
  font-size: 32px;
  display: block;
}

.b-h2{
  font-size: 24px;
  display: block;
}

.b-h3{
  font-size: 20px;
  display: block;
}

.b-h4{
  font-size: 18px;
  display: block;
}

.b-h5{
  font-weight: bold;
  display: block;
}

.b-h6{
  font-size: 11px;
  display: block;
}

/* BBTAG: CENTER, LEFT, RIGHT */

.b-text-align-center{
  text-align: center;
  display: block;
  margin-bottom: 15px; 
}

.b-text-align-left{
  text-align: left;
  display: block;
  margin-bottom: 15px; 
}

.b-text-align-left:last-of-type{
  margin-bottom: 0;
}

.b-text-align-right{
  text-align: right;
  display: block;
  margin-bottom: 15px; 
}

.b-text-align-right:last-of-type{
  margin-bottom: 0;
}

.b-text-align-justify{
  text-align: justify;
  display: block;
  margin-bottom: 15px; 
}

.b-text-align-justify:last-of-type{
  margin-bottom: 0;
}

.b-text-float-left{
  float: left;
}

.b-text-float-right{
  float: right;
}

/* BBTAG: UL AND OL */

.b-list._format_circle, 
._format_circle .b-list_li{
  list-style-type: circle;
}

.b-list._format_disc, 
._format_disc .b-list_li{
  list-style-type: disc;
}

.b-list._format_square, 
._format_square .b-list_li{
  list-style-type: square;
}

.b-list._format_decimal, 
._format_decimal .b-list_li{
  list-style-type: decimal;
}

.b-list._format_lower-alpha, 
._format_lower-alpha .b-list_li{
  list-style-type: lower-alpha;
}

.b-list._format_upper-alpha, 
._format_upper-alpha .b-list_li{
  list-style-type: upper-alpha;
}

.b-list._format_lower-roman, 
._format_lower-roman .b-list_li{
  list-style-type: lower-roman;
}

.b-list._format_upper-roman, 
._format_upper-roman .b-list_li{
  list-style-type: upper-roman;
}

/* BBTAG: TOGGLE */

.b-bbtoggler{
  margin: 0.6em 0 1.2em;
}

.b-bbtoggler br:first-of-type{
  display: none;
}

.b-bbtoggler__link{
  border-bottom-width: 1px;
  border-bottom-style: dotted;
  text-decoration: none;
  font-weight: bold;
}

.b-bbtoggler__link:hover{
  text-decoration: none;
}

.b-bbtoggler__link._open,
.b-bbtoggler__link._open:hover{
  color: #ccc;
}

.b-bbtoggler__content{
  display: block;
  margin-top: 1em;
}

.b-bbtoggles .b-bbtoggler__content{
  margin-top: 0;
}

.b-bbtoggler__content:after{
  content: ' ';
  clear: both;
  height: 1px;
  visibility: hidden;
  display: block;
}

/* BBTAG: TOGGLES */

.b-bbtoggles{
  display: block;
  width: auto;
}

.b-bbtoggles:after, 
.b-bbtoggles__menu-list:after{
  content: ' ';
  clear: both;
  height: 1px;
  visibility: hidden;
  display: block;
}

.b-bbtoggles__menu{
  float: left;
  width: 30%;
}

.b-bbtoggles__menu .b-bbtoggler__link{
  display: block;
  margin-bottom: 15px;
  border-bottom: 0;
}

.b-bbtoggles__menu .b-bbtoggler__link-inner{
  border-bottom-width: 1px;
  border-bottom-style: dotted;
}

.b-bbtoggles__menu ._open .b-bbtoggler__link-inner{
  border-bottom: 0;
}

.bb-toggler-wrapper .bb-toggler-wrapper-content{
  display: block;
  margin-left: 32%;
}

.b-bbtoggles__content:after{
  content: ' ';
  clear: both;
  height: 1px;
  visibility: hidden;
  display: block;
}

/* BBTAG: QUOTE */

.bb-quote{
  margin-bottom: .4rem;
}

.bb-quote-toggler{
  display: none;
}

.bb-quote-toggler-show{
  display: block;
  position: relative;
  margin: 15px 0;
  line-height: normal;
  font-size: 13px;
}

.bb-quote-toggler span{
  background: #fff;
  display: inline-block;
  position: relative;
  font-style: normal;
  z-index: 2;
}

.bb-quote-toggler i{
  background: #fff;
  border: #e8e8e8 solid 1px;
  border-radius: 15px;
  text-transform: lowercase;
  font-style: normal;
  position: absolute;
  padding: 3px 5px 4px 5px;
  font-size: 10px;
  line-height: 9px;
  z-index: 2;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  transition: border-color 0.3s ease-out;
  -o-transition: border-color 0.3s ease-out;
  -moz-transition: border-color 0.3s ease-out;
  -webkit-transition: border-color 0.3s ease-out;
}

.bb-quote-toggler:hover i{
  border-color: #999;
}

.bb-quote .bb-quote-author{
  display: block;
  font-weight: normal;
  padding: 0;
  margin-bottom: 5px;
  font-size: 11px;
  background: transparent;
  color: #6091ba;
  font-style: normal;
}

.bb-quote .bb-quote-author._pos-in{
  margin-bottom: 5px !important;
}

.bb-quote blockquote{
  background: transparent;
  border: 0;
  border-left: #a7c2d9 solid 5px;
  background: #a7c2d91f;
  display: block;
  margin-left: 20px;
  padding: 10px 0 10px 20px;
}

.bb-quote blockquote blockquote{
  margin-left: 0px;
}

/*.bb-quote blockquote blockquote{
  background-color: #fff;
}

.bb-quote blockquote blockquote blockquote{
  background-color: #f1f1f1;
}
*/
/* BBTAG: HR STYLE */

.bb-hr-style{
  display: block;
  height: 22px;
  width: 100%;
  text-align: center;
  margin-bottom: 17px;
  position: relative;
  z-index: 1;
}

.bb-hr-style:after{
  background: #eee;
  position: absolute;
  top: 11px;
  left: 0px;
  width: 100%;
  height: 1px;
  display: block;
  content: ' ';
  z-index: 2;
}

.bb-hr-style:before{
  background: #fff;
  content: '*';
  display: inline-block;
  padding: 0 10px;
  color: #eee;
  position: relative;
  z-index: 3;
  font-family: cursive;
  font-size: 26px;
}

.bb-hr-style._star:before{
  content: '★';
}

.bb-hr-style._star2:before{
  content: '✲';
}

.bb-hr-style._star3:before{
  content: '✸';
}

.bb-hr-style._star4:before{
  content: '✹';
}

.bb-hr-style._star5:before{
  content: '✪';
}

.bb-hr-style._arrow_down:before{
  content: '▼';
}

.bb-hr-style._flower:before{
  content: '✿';
}

.bb-hr-style._flower2:before{
  content: '❀';
}

.bb-hr-style._flower3:before{
  content: '❁';
}

.bb-hr-style._heart:before{
  content: '♥';
}

.bb-hr-style._crown:before{
  content: '♔';
}

.bb-hr-style._music:before{
  content: '♪';
}

.bb-hr-style._wave{
  background: url(images/wave.png) 0px 0px repeat-x;
  height: 7px;
}

.bb-hr-style._dots{
  background: url(data:image/gif;base64,R0lGODlhBAABAIABALKysgAAACH5BAEAAAEALAAAAAAEAAEAAAICRF4AOw%3D%3D) 0px 0px repeat-x;
  height: 1px;
}

.bb-hr-style._wave:before, 
.bb-hr-style._wave:after,
.bb-hr-style._dots:before, 
.bb-hr-style._dots:after{
  display: none;
}

.bb-hr-style._gap{
  background-image: url('data:image/gif;base64,R0lGODlhBgAEAIABAO7u7v///yH5BAEAAAEALAAAAAAGAAQAAAIHjGEXuAmcCgA7');
  background-repeat: repeat-x;
  background-position: 0px 0px;
  height: 4px;
}

.bb-hr-style._gap:before, 
.bb-hr-style._gap:after{
  display: none;
}

/* BBTAG: MAP */

.b-map-geocode{
  margin-bottom: 15px;
}

.b-grid,
.b-grid-comment{
  margin-bottom: 15px;
}

/* BBXOG CARD */

.b-bb-xog-card__avatar{
  width: 30%;
}

.b-bb-xog-card .b-xog_display-image{
  position: static !important;
  width: 100% !important;
  height: auto !important;
}

.b-bb-xog-card .b-xog__avatar{
  width: 100% !important;
  height: auto !important;
}

.b-bb-xog-card__label{
  margin-bottom: 15px;
}

/* TOC / СОДЕРЖАНИЕ */

.b-bb-toc{
  margin: 0.6em 0 1.2em;
  padding: 0;
}

.b-bb-toc br{
  display: none;
}

.b-bb-toc._lines .b-bb-toc__section{
  border-bottom: #eee solid 1px;
  padding: 10px;
  display: block;
}

.b-bb-toc._lines .b-bb-toc__section:hover{
  text-decoration: none;
}

.b-bb-toc._lines .b-bb-toc__section:first-of-type{
  border-top: #eee solid 1px;
}

.b-bb-tocanchor{
  height: 1px;
  width: 1px;
  visibility: hidden;
}

/* Пост */

.b-post-card{
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  border-radius: 5px;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto 40px;
  align-items: center;
  grid-gap: 0;
  position: relative;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 13px;
  line-height: 16px;
  max-width: 300px;
  margin-right: auto;
}

.b-post-card._not_found{
  display: block;
}

.b-post-card__info{
  min-width: 140px;
  padding-right: 10px;
  display: block;
}

.b-post-card .b-user_display-name{
  display: block;
  margin-bottom: 5px;
}

.b-post-card .b-user__name{
  color: #000;
}

.b-post-card__link{
  display: block;
  overflow-x: hidden;
  text-overflow: ellipsis;
  color: #000;
  font-weight: bold;
}

.b-post-card__ico{
  background-color: rgba(0,0,0,.1);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px;
  border-radius: 5px;
  display: block;
  align-self: start;
  min-height: 40px;
}

.b-post-card._type_default .b-post-card__ico{
  background-image: url(images/post-default.min.svg);
}

.b-post-card._type_photo .b-post-card__ico{
  background-image: url(images/post-photo.min.svg);
}

.b-post-card._type_audio .b-post-card__ico{
  background-image: url(images/post-audio.min.svg);
}

.b-post-card._type_video .b-post-card__ico{
  background-image: url(images/post-video.min.svg);
}

.b-post-card._type_question .b-post-card__ico{
  background-image: url(images/post-question.min.svg);
}