html,
body {
  height: 100%
}
body {
  color: #555;
  font-family: Helvetica,Arial,sans-serif;
  background: #ffffff;
  font-size: 15px;
  line-height: 22px;
}
/* Margins
-----------------------------------------------------------------------------*/
.margin-right-5 {
  margin-right: 5px;
}
.margin-right-10 {
  margin-right: 10px;
}
.margin-bottom-40 {
  margin-bottom: 40px;
}
.margin-bottom-30 {
  margin-bottom: 30px;
}
.margin-bottom-20 {
  margin-bottom: 20px;
}
.margin-bottom-15 {
  margin-bottom: 15px;
}
.margin-bottom-10 {
  margin-bottom: 10px;
}
.margin-top-40 {
  margin-top: 40px;
}
.margin-top-30 {
  margin-top: 30px;
}
.margin-top-20 {
  margin-top: 20px;
}
.margin-top-15 {
  margin-top: 15px;
}
.margin-top-10 {
  margin-top: 10px;
}
.margin-top-5 {
  margin-top: 5px;
}
.margin-top-2 {
  margin-top: 2px;
}
.margin-left-5 {
  margin-left: 5px;
}
.margin-left-10 {
  margin-left: 10px;
}
/* Разметка
-----------------------------------------------------------------------------*/
#layout {
  width: 500px;
  position: relative;
  margin: 0 auto;
  display: block;
  padding: 0 40px;
  background: #fff;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
}
#content {
  overflow: hidden;
  float: left;
  width: 660px;
  padding: 40px 0 0 0;
}
#navigation {
  margin: 50px 0 24px
}
#sidebar {
  float: right;
  width: 300px;
  margin: 96px 0 0 0;
}
#footer {
  position: relative;
  clear: both;
  overflow: hidden;
}

.header-logo {
  overflow: hidden;
  margin: 40px 0 50px;
}
.header-logo .header-logo-link {
  background-image: url(../i/logo.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 300px 55px;
  display: block;
  width: 300px;
  height: 56px;
  margin: 0 auto;
}

/*** Глобальные штуки ***/
/*** Глобальные штуки - ссылки ***/
a {
	color: #4287b7;
} 
a:hover,
a:focus {
	text-decoration: none;
}

/*** Глобальные штуки - заголовки ***/
h1,
h2,
h6 {
  font-family: Helvetica,Arial,sans-serif;
  font-weight: 400;
  color: #55534f;
  margin: 0 0 15px;
  line-height: 30px;
}
h1,
h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 27px;
  display: block;
}
h1 span,
h2 span {
  color: #e85643
}


/*** Глобальные штуки - кнопки ***/
.button,
input[type="button"] {
  display: inline-block;
  *display: inline;
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  zoom: 1;
  border: 1px solid #e6e6e6;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #999;
  display: inline-block;
  padding: 10px 16px 8px;
  background: #fff;
  cursor: pointer;
}
.button:hover {
  color: #4287b7;
  text-decoration: none;
}
.button:active {
  color: #4287b7
}
.button-link {
  display: inline-block;
  *display: inline;
  margin: 0;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  text-decoration: none;
  color: #999;
  padding: 7px 13px 4px;
  background: #fff;
  cursor: pointer;
}
.button-link:hover {
  color: #4287b7;
  text-decoration: none;
}
.button-link.button-link-delete:hover {
  color: #e85643
}
.button-mini {
  font-size: 11px;
  padding: 1px 9px;
}
.button-small {
  font-size: 12px;
  padding: 2px 11px 1px;
}
.button-large {
  padding: 13px 23px;
  font-size: 17px;
  line-height: normal;
}
.button-readmore {
  margin: 20px 0 0
}
.button-readmore a {
  border: 1px solid #e6e6e6;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #999;
  display: inline-block;
  padding: 9px 20px;
}
.button-readmore a:hover {
  color: #4287b7
}
.button-readmore em {
  font-size: 17px
}
.button-pin {
  height: 28px;
  display: block;
  background: url(../i/button-pin.png) no-repeat;
  border: 0;
  padding: 0 0 0 128px;
  cursor: pointer;
  zoom: 1;
  overflow: hidden;
}
/*
.button-mother-placeholder {
  background: #e6f7d0;
  border-radius: 8px;
  padding: 4px;
  margin: 0 10px 0 0;
  display: inline-block;
  *display: inline;
  zoom: 1;
}
.button-mother-placeholder .button {
  -webkit-background-clip: padding-box
}
.button-mother-placeholder.post-from-drafts {
  background: none
}
.button-mother-placeholder.post-from-drafts .button {
  color: #fff;
  text-shadow: 0 1px 0 #830812;
  text-decoration: none;
  background: #e96a5a;
  background: -moz-linear-gradient(top,#e96a5a 0%,#f47e6b 50%,#e54b37 51%,#f27865 100%);
  background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#e96a5a),color-stop(50%,#f47e6b),color-stop(51%,#e54b37),color-stop(100%,#f27865));
  background: -webkit-linear-gradient(top,#e96a5a 0%,#f47e6b 50%,#e54b37 51%,#f27865 100%);
  background: -o-linear-gradient(top,#e96a5a 0%,#f47e6b 50%,#e54b37 51%,#f27865 100%);
  background: -ms-linear-gradient(top,#e96a5a 0%,#f47e6b 50%,#e54b37 51%,#f27865 100%);
  background: linear-gradient(to bottom,#e96a5a 0%,#f47e6b 50%,#e54b37 51%,#f27865 100%);
  border-top: 1px solid #f37966;
  border-bottom: 1px solid #e23e48;
  border-right: 1px solid #e23e48;
  border-left: 1px solid #e23e48;
}
*/
/*** Красная кнопка
     Big Red Button - Красный бэкграунд для кнопок верхней панели и счетчика новых сообщений, кнопки встпуить в сообществе
     http://www.colorzilla.com/gradient-editor/#e96a5a+0,f47e6b+50,e54b37+51,f27865+100;Custom  ***/
#header .userpanel .register a,
#header .userpanel .write a,
#header .userpanel .new-message span,
#header .userpanel .stream span,
.company-info .enter-shop,
.button-add-review,
.sub-menu li a.button-menu-red,
.block.block-company .enter-shop,
.button-add-product {
  color: #fff;
  text-decoration: none;
  background: #e85643;
  border: 1px solid #e85643;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}


/*** Глобальные штуки - разноцветные штуки для объявлений ***/
.label-green,
.label-yellow,
.label-red,
.label-blue,
.coupon {
  color: #333;
  padding: 10px 11px;
  display: block;
  line-height: 18px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}
.label-green,
.coupon  {
 text-shadow: 0 1px 0 #eff8eb;
 background: #dff0d6;
}
 .label-green span {
  color: #e85643;
  font-weight: 700;
 }
.label-yellow {
 text-shadow: 0 1px 0 #ffffff;
 background: #fcf8e1;
}
.label-red {
 text-shadow: 0 1px 0 #ffffff;
 background: #f1dedd;
}
.label-transparent {
 background: none;
 padding: 10px 0;
}

/*** Глобальные штуки - сообщения жопа или саксес ***/
.s-m-e, 
.s-m-n {
 color: #333;
 padding: 10px 11px;
 display: block;
 line-height: 18px;
 -webkit-border-radius: 6px;
 -moz-border-radius: 6px;
 border-radius: 6px;
 margin: 0 0 25px 0;
}
	.s-m-e {
 	background: #f1dedd;
 	text-shadow: 0 1px 0 #fff0ef;		
	}
		.s-m-e ul li,
		.s-m-n ul li {
			line-height: 25px;
		}
	.s-m-n {
  text-shadow: 0 1px 0 #eff8eb;
  background: #dff0d6;
 }


/*** Выбор варианта регистрации ***/
.registration-options {}
.registration-options .options {}
.registration-options .options h1 {}
.registration-options .options li {
 padding: 0 0 50px 0;
}

.registration-options .input-append {
 margin: 5px 0 0 0;
}
.registration-options .check-invite {

}
.registration-options .invites {
 margin: 10px 0 20px 20px;
}
.registration-options .label-gray {
 color: #666666;
 margin: 7px 0 0 0;
 display: block;
}

/*** Регистрация и Авторизация ***/
.registration {}
.registration h1,
.authorisation h1 {
 margin: 0 0 30px 0;
 text-align: center;
}
.registration .t-block,
.authorisation .t-block,
.upgrade .t-block {
 margin: 0 0 15px 0;
}
.registration .form-control {
 margin: 0;
}
.registration ul {
  margin: 10px 0 10px 35px;
}
.registration ul li {
  padding: 2px 0;
  list-style: decimal;
}
.registration-options .reg-options {
  margin: 8px 0 0 20px;
}
.registration-options .reg-options li {
  list-style: disc;
  padding: 0 0 5px 5px;

}
.registration-options .input-append .button {
  padding: 9px 16px 7px;
}

/*** Страница создания-редактирования поста, блога, компании, фидбек  ***/
.form-add {}
.form-add h1 {
  margin: 0 0 30px 0;
}
.form-add h3 {
  margin: 0 0 30px 0;
}
.form-add .fa-question-circle.fa-input {
  font-size: 15px;
  padding: 6px 0 0 0;
  position: absolute;
  left: 9px;
  top: 4px;
  color: #999;
}
.form-add .form-control {
  margin: 0
}
.form-add .form-control.input-help {
  padding: 0 0 0 30px;  
}
.form-add select {
  margin: 0
}
.form-add textarea {
}
.form-add .form-control.tags {
  font-size: 13px;
  padding: 5px 6px 3px;
}
.form-add label {
  cursor: pointer;
  font-weight: 400;
}
.form-add input[type="checkbox"] {
  margin: 0 5px 0 0
}
.form-add .t-block {
  margin: 0 0 35px;
  clear: both;
  overflow: hidden;
  position: relative;
}
.form-add .admin-switches {
  margin-top: 5px
}
.form-add .admin-switches label {
  font-weight: 400;
  cursor: pointer;
}
.form-add .admin-switches label.marker-adv,
.form-add .admin-switches label.marker-allergy,
.form-add .admin-switches label.marker-promo {
  padding: 4px 8px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  display: inline-block;
}
.form-add .admin-switches label.marker-adv {
  background: #2376AD;
  color: #fff;
}
.form-add .admin-switches label.marker-allergy {
  background: #feea40;
  color: #353534;
}
.form-add .admin-switches label.marker-promo {
  background: #e85643;
  color: #fff;
}
.form-add .templates {
  padding: 6px 0 3px 11px;
  width: 99%;
  height: 22px;
}
.form-add .templates li {
  float: left;
  margin: 0 12px 0 0;
  padding: 5px 0 0;
}
.form-add .templates li a {
  border-bottom: 1px dotted #2574AC;
  text-decoration: none;
}

.form-add .form-control.input-help {
  padding: 0 0 0 30px;  
}
.form-add .fa.fa-question-circle.fa-input {
  font-size: 17px;
  padding: 6px 0 0 0;
  position: absolute;
  left: 9px;
  top: 3px;
}
.form-add .font-weight-400 {
 font-weight: 400;
 color: #555555;
 font-size: 14px;
}
.form-add input[type="radio"] {
  margin: 0 0 0 1px;
}
.form-add .marks-count {
  color: #999;
}
.form-add .marks-count,
.form-add .spell-check-results {
  padding: 6px 0 0 0;
  display: inline-block;
}


/* Registration company
-----------------------------------------------------------------------------*/
.registration.company .t-block {
 margin: 0 0 10px 0;
 clear: both;
 overflow: hidden;
}
.registration .agreement,
.registration.company .agreement {
 font-weight: 400;
 color: #333;
 cursor: pointer;
}
.registration.company .form-note {
 padding: 4px 0 0 0;
 display: block;
}


/*** Авторизация ***/
.authorisation {}
.authorisation .registration-link {
font-size: 14px;
float: right;
display: block;
margin-top: 7px;
}
.authorisation .password-link {
 float: right;
}
.authorisation .checkbox {
 margin: 10px 0 0 5px;
}

/*** Капча ***/
.beauty {
 overflow: hidden;
 clear: both;
 margin: 0;
}
.beauty li {
 float: left;
 margin: 0 20px 0 0;
}
.beauty img {
 border: 1px solid #f1ecd3;
 padding: 12px 0 0 0;
}
.beauty .beauty-input {
    font-size: 30px;
    width: 133px;
    height: 74px;
    padding: 0 0 0 14px;
}
.beauty i.fa.fa-arrow-right {
  font-size: 25px;
  padding: 50px 0 0 0;
  color: #999;
}

.registration .beauty {
    margin: 0;
}
.registration .beauty li {
    list-style: none;
}
.registration .beauty li .form-control {
    font-size: 36px;
    width: 174px;
    height: 74px;
    padding: 0 25px;
}

/*** Account upgrade ***/
.upgrade .form-control {
 margin: 6px 0 0 0;
}

/*** Logout ***/
.logout {
 text-align: center;
}
.logout h1 {
 margin: 20px 0;
}

/*** Страница 404 ошибки ***/
.error-404 {}
 .error-404 p {}
 .error-404 .buttons {
  margin: 16px 0 28px;
 }
 
/* Companies contract */
.company_add .offer_text .scroll_wraper {
	position: relative;
	}
.company_add .offer_text .scroll_text {
	overflow: auto;
	border: 1px solid #D3C8BA;
	padding: 10px;
	padding-bottom: 50px;
	width: 478px;
	height: 400px;
	margin: 10px 0 15px;
	}
.company_add .offer_text .scroll_text b {
 font-weight: 700;
}
.company_add .offer_text .scroll_text h1 {
	color: #444;
	font-size: 20px;
	}
.company_add .offer_text .scroll_text p {
	margin: 10px 0; 
	}
	
/* Post gateway
-----------------------------------------------------------------------------*/
.post-gateway {
 margin: 5px 0 0 20px;
 line-height: 20px;
}
.post-gateway b {
 font-weight: 700;
}

.fa.fa-question-circle {
  color: #e85643;
}

/* 404
-----------------------------------------------------------------------------*/
.error-404 {}
.error-404 h1 {
  text-align: center;
}

/*** Панель инструментов при создании поста и при добавлении комментариев ***/
.p-f {
  background: #faf7ef;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
.p-f li {
  float: left;
  overflow: hidden;
}
.p-f li a {
  color: #000;
  padding: 12px 16px;
  display: block;
  line-height: 0;
  color: #555;
  text-shadow: 0 1px 0 #fff;
}
  .p-f li a:hover {
    color: #4287b7;
    text-decoration: none;
  }
.p-f .image-count {
  /* color: #E85643; */
  /* font-weight: 700; */
  cursor: help;
  padding: 10px 0 0 0;
}
.p-f .text a {
  padding: 20px 15px 18px;
}
.p-f .text span {
  display: block;
  padding: 10px 0 0 10px;
}

/* Topic control
-----------------------------------------------------------------------------*/
.topic-control {
  width: 650px !important;
  padding-top: 30px;
}
.topic-control .header-logo {
  display: none;
}
.topic-control h1 {
  margin-bottom: 5px;
  color: #999999;
  font-size: 18px;
}
.topic-control .community {
  color: #999999;
  margin-bottom: 30px;
  font-size: 18px;
}
.topic-control .p-f.templates {
  padding-top: 12px;
  margin-top: 10px;
}
.topic-control .form-control {
  height: 100px;
}
.topic-control .t-block {
  margin-bottom: 20px;
}
.topic-control label {
  font-weight: 400;
}
.topic-control .p-f li a {
  padding: 14px;
}

/* /login/, social services icons */
.authorisation .oauth {
  margin: 10px 0;
  overflow: hidden;
  padding: 3px;
}
.authorisation .oauth li {
  float: left;
  margin: 0 15px 0 0;
}
.authorisation .oauth li a {
  display: block;
  font-size: 26px;
}
.authorisation .oauth .fa-contact {
  color: #56799d;
  padding: 4px 0 0 0;
}
.authorisation .oauth .fa-licokniga-square {
  color: #3a5a98;
  padding: 4px 0 0 0;
}
.authorisation .oauth .blogger {
  background: url(../i/icon-blog.png) no-repeat;
  width: 35px;
  height: 40px;
}