body{
padding: 0;
margin: 0;
}

#header{
height: 158px;
background-color: #FFFF32;
}

section{
margin: 0 auto;
padding: 10px 16px;
width: 928px;
}

#viewbook{
padding-bottom: 50px;
}

#socialshare{
float: right;
margin-right: -30px;
}

#logo{
height: 85px;
}

a{
color: #141645;
text-decoration: none;
font-weight: bold;

}

#nav ul:first-child a{
font-size: 19px;
}

#nav ul:first-child a, #catalog span a{
display: block;
width: 110px;
}

#searchtop{
float: right;
}

#nav a{
padding: 12px;
text-decoration: none;
}

#nav ul a{
font-size: 16px;
}

#nav a:hover, #nav .active a{
color: #FFFF32;
background: #141645;
}

#nav ul, .letters ul {
list-style-type: none;
padding: 0;
}

#nav ul li, .letters ul li, #footer ul li{
float: left;
}

.right{
float: right;
}

#profile-btn{
background: url(/imgs/profile.png) no-repeat;
padding: 5px 0 5px 34px;
}

#authorslist{
width: 900px; margin-left: 170px;
}

#searchbox{
background: #190D46;
padding: 13px 36px 13px 12px;
width: 240px;
margin-left: 20px;
border: 0;
color: #B3B1C3;
font-size: 13px;
}

#searchbtn{
position: absolute;
margin-left: -40px;
margin-top: 8px;
}

#catalog{
background-color: #180D44;
height: 140px;
padding: 10px 0;
}

#catalog span:first-child{
display: block;
padding: 10px;
}


#catalog a{
padding: 0px 12px;
text-decoration: none;
color: #FFFF32;

font-size: 16px;
}

#catalog a:hover, #catalog a.active{
background: #FFFF32;
color: #141645;
}

.clearfix:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
     }
.clearfix { display: inline-block; }
* html .clearfix { height: 1%; }
.clearfix { display: block; }

.letters{
clear: left;
max-width: 430px;
}

.letters a{
display: block;
width: 38px;
text-align: center;
height: 28px;
padding: 10px 0 0 0 !important;
float: left;
border: 1px solid #141645;
}

.letters a:hover, .letters a.active{
color: #FFFF32 !important;
border: 1px solid #FFFF32 !important;
background: #141645 !important;
}

#catalog span{
line-height: 42px;
}

#footer{
height: 190px;
background-color: #190D46;
}

#footer ul{
padding: 0;
}
#footer li{
color: #fff;
font-weight: bold;
padding: 0 10px;
}


#footer li:first-child{
padding-left: 0;
}

#footer li a{
color: #FFFF53;
padding: 0;
}

#copyright{
margin-top: 120px;
color: #C4C5D0;
}

#ganres a{
display: block;
float: left;
padding: 2px;
width: 200px;
text-align: left;
font-size: 15px;
margin: 1px 3px;
}

#ganres{
width: 650px;
}

.author-preview{
width: 200px;
padding-right: 80px;
height: 50px;
float: left;
}


#social{
margin-top: -30px;
float: right;
}

.book-preview{
width: 136px;
margin: 0 32px;
height: 362px;
float: left;
}

.book-preview p{
margin: 6px 0;
}

.book-preview img{
margin-bottom: 6px;
}
.book-preview a{
color: #23277a;
font-size: 14px;
}

.small a{
color: #545454;
font-weight: normal;
}

.catalog-content{
clear: both;
margin-top: 6px;
}

.left{
width: 130px; float: left; height: 300px;
}

.catalog-letter{
width: 120px; height: 120px; background: #FFFF32;
color: #141645;
text-align: center;
line-height: 120px;
vertical-align: middle;
font-weight: bold;
font-size: 26px;
}

.catalog-letter.bigger{
font-size: 80px;
}

.catalog-letter.big{
width: 80px;
height: 80px;
font-size: 60px;
line-height: 80px;
}


#mainContent span{
color: #000 !important;
}

#mainContent a{
color: #00006F !important;
}

.dotted-top{
background: url(/imgs/dotted.png) repeat-x;
padding-top: 30px;
}

.pure-form input[type=text], .pure-form input[type=password], .pure-form textarea{

width: 350px;
}

.form-group{
margin-bottom: 15px;
}

#navmenu{
margin-top: 20px;
float: right;
}

#catalog span:first-child{
float: left;
}

#catalog-filter{
width: 500px; float: left; height: 120px; margin-left: 120px;
}

#bookslist{
width: 900px; margin-left: 130px;
}

#viewbook-info{
width: 360px; float: left;
}

#viewbook-img{
float: right; width: 300px;
}

#ganrelist .left{
display: none;
}


#ganrelist #bookslist{
width: 100%;
margin: 0;
}


#aweb{
text-align: left; padding-top: 10px; background: #190D46;
}
#aweb a{
color: #fff; font-weight: normal;
}


@media (max-width: 900px) {

	#aweb{
	text-align: center;
	padding-top: 0;
	padding-bottom: 30px;
	}

	#socialshare{
	display: none;
	}


	  section {
	    width: 100%;
	  }

	  #mainContentc{
	  padding: 10px 16px;
	  }

	  #searchtop a{
	  display: none;
	  }
	  #searchtop input[type="text"]{
	 width: 90%;
	  }
	  #searchtop{
	  display: none;
	      clear: both;
	    height: 50px;
	    width: 100%;
	    margin-left: -5px;
	    background: #FFFF32;
	    margin-top: 15px;
	    float: none;
	  }

	  #logo{
	  text-align: center;
	  height: auto;
	  }
	  #logoimg img{
	  height: 30px;
	  }
	  #nav ul:first-child{
	  display: none;
	  }
	  #navmenu{
	  float: none;
	  display: none;
	  }
	  #navmenu li{
	  float: none !important;
	  padding: 10px;
	 display: block;
	  }

	  #header{
	  height: auto;
	  }

	  #mmenu{
	  background-image: url(/imgs/menu.png);
	  width: 28px;
	  height: 28px;
	  display: block;
	  float: left;
	  }

	  #msearch{
	  background-image: url(/imgs/search-mobile.png);
	  width: 28px;
	  height: 28px;
	  display: block;
	  float: right;
	  }



	#catalog span:first-child{
	float: none;
	}

	#catalog span:first-child a{
	float: left;
	}

	.mvis{
	display: block !important;
	}

	#catalog{
	height: auto;
	}

	#catalog-filter{
	float: none;
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding-top: 10px;
	background: #180D44;
	text-align: center;
	}

	#header{
	padding: 10px;
	}

	section{
	padding: 0;
	}

	.letters{
	padding: 16px;
	max-width: 100% !important;
	}

	.letters a{


	width: 55px;
	height: 35px;
	padding-top: 20px !important;
	}

	#btnnew{
	display: none;
	}

	#ganres{
	clear: left;
	width: auto;
	}

	#ganres a{
	display: block;
	width: 40%;
	float: left;
	padding: 10px;
	text-align: left;
	}

	.left{
	float: none;
	width: auto !important;
	height: auto !important;
	}

	.catalog-letter{
	width: auto;
	height: auto;
	padding: 20px;
	line-height: 20px;
	margin-bottom: 16px;
	}

	#catalog span a{
	width: 25%;
	}

	#bookslist{
	width: auto;
	margin: 0;
	}

	.book-preview{
	margin: 0 9px;
	margin-left: 0;
	width: 135px;
	}

	.catalog-letter.big, .catalog-letter.bigger{

	width: auto !important;
	height: auto !important;
	line-height: 20px;
	font-size: 20px;
	}

	#viewbook{
	padding: 0 16px;
	width: auto !important;
	}

	#viewbook-info{
	width: auto;
	float: none;
	}

	#viewbook-img{
	width: auto;
	float: none;
	text-align: center;
	}

	#catalog{
	display: none;
	}

	#mfilter{
	padding: 16px;
	background: #121643 url(/imgs/arrow.png) right center no-repeat;
	}

	#mfilter span:first-child:after{
	content: "Каталог";
	color: #FFFF52;
	font-sizE: 28px;
	font-weight: bold;
	}
	#mfilter span:last-child:after{
	content: " / Заглавия";
	color: #FFFF52;
	font-sizE: 22px;
	}

	#events img{
	display: none;
	}

	#authorslist{
	width: auto;
	margin: 0;
	}

	.author-preview{
	width: 100%;
	height: auto;
	margin: 0;
	padding: 10px 0;
	}

	#social{
	float: none;
	display: block;
	}

	#social{
	margin: 0 auto;
	width: 190px;
	}

	#copyright{
	margin: 0;
	clear: both;
	text-align: center;
	padding-top: 50px;
	height: 100px;
	background: #190D46;
	}

	#footer-nav{
	/*padding: 3px 16px;*/
	}

	#footer-nav .bullet{
	display: none;
	}

	#footer-nav li{
	width: 50%;
	padding: 16px 0;
	text-align: center;
	}


	#ganrelist .left{
	display: block;
	}

	#profile-btnm{
	display: block;
	float: right;
	width: 24px;
	height: 24px;
	background: url(/imgs/profile.png) no-repeat;
	margin-right: 20px;
	}


	.pure-form input[type=text], .pure-form input[type=password], .pure-form textarea{

	width: 100%;
	}

}

#footer ul {
  list-style: none;
}
