/************************************************************************************
RESET
*************************************************************************************/
html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, table, ul,
dd, dt, li, tbody, td, tfoot, th, thead, tr, button, del, ins, map, object,
a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span,
strong, sub, sup, tt, var, legend, fieldset 
{
	margin:0;
	padding:0;
}

img, fieldset, .post-image-wrap
{
	border: 0;
}
.hidden
{
    display:none;
    visibility:hidden;
}
.post-content img, .post-image-wrap
{
	max-width: 98%;
	height: auto !important;
}
.post-content td, .post-content th
{
    padding:0 8px;
    text-align:left;
}
.ie8 img {
	width: auto;
	height: auto;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display:block;
}

/************************************************************************************
GENERAL STYLING
*************************************************************************************/
html {
	background: #86b6c0 url(images/bg-fill.png);
	height: 100%;
}
body {
	font-family: Geneva, Tahoma, Arial;
    font-size: 10pt;
    background: url(images/footer-bg.png) center bottom repeat-x;
	color: #60493e;
	min-height: 100%;
	overflow-x: hidden;
}
p {
	padding: 6pt 0;
}
a {
	text-decoration: none;
    color: #55868a;
}
a:hover
{
    text-decoration: underline;
    color: #42686b;
}
.post-content ol, .post-content ul
{
    margin-top:6px;
    margin-bottom:10px;
    margin-left:6px;
    text-align:left;
    padding-left:45px;
}
.post-content li
{
    margin-bottom: 0;
    margin-top: 0;
    font-size: 10pt;
    line-height: 12pt;
    padding-bottom: 4pt;
}

big {
	font-size: 16px;
}
small {
	font-size: 87%;
}
strong, b {
	color: #41322a;
}
em, i {
	font-style: italic;
}
em strong {
	color: #8e3d17;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: .1em;
}
.amp {
	font-style: italic;
}
ul, ol {
	margin: 0 0 1.4em 24px;
	padding: 0;
	line-height: 150%; text-align:left;
}
li {
	margin: 0 0 .5em 0;
	padding: 0; text-align:left;
}
.post-content ul li{ text-align:left;}
code {
	font-family: Consolata, monospace;
	font-size: 100%;
	color: #72008a;
	word-spacing: -.25em;
}
pre code {
	background: #f3efc3 url(images/line-bg.png) 0 7px;
	overflow-x: auto;
	display: block;
	width: 95%;
	padding: 2% 2.5%;
	margin: 30px 0;
	clear: both;
	color: #585535;
	font-size: 85%;
	line-height: 140%;
	border: solid 1px #e8e3b8;
	border-bottom: solid 1px #d9d4a8;
}
blockquote {
	font-style: italic;
	background: url(images/quote.png) no-repeat 5px 0;
	padding: 0 30px 15px;
}
h1, h2, h3, h4, h5, h6
{
	font-weight: bold;
    text-align:left;
    text-shadow: 0px 1px 0px #bbb;
}
h1, h2
{
    color:#309099;
}
div.commentwrap  h4#comments.comment-title{margin-left:12px;}
.post-full .post-content em strong, h4.comment-title{color: #80b7bc;}
h4.comment-title{ font-style:normal; text-transform:none; font-size:100%}

h1
{
    font-size:16pt;
	margin-top: 12pt;
	margin-bottom: 6pt;
}
h2
{
    font-size:14pt;
	margin-top: 12pt;
}
h3 {
    text-shadow: none;
	font-size: 12pt;
	margin-top: 6pt;
}
h4 {
    text-shadow: none;
	margin-top: 6pt;
	font-style: italic;
}
h5{}
h6{}

form p {
	margin: 0;
	padding: 6px 0;
}
form label {
	font-variant: small-caps;
	margin-left: 5px;
}
form label small, form label em {   
	text-transform: none;
	color: #8c8c86;
	font-style: italic;
    font-size: 90%;
}
input, textarea, select {
	font-size: 100%;
	font-family: inherit;
}
input[type=text], input[type=password], textarea {
	background:#D3EFF5;
	background: rbga(255,247,153,.4);
	border: none;
	color: #80B7BC;
	padding: 6px 2%;
	border-bottom: solid 1px #c8c7b4;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-appearance: none;
}
#commentform label, .commentwrap #respond .note{color: #80B7BC;}
input[type=text] {
	width: 240px;
	max-width: 96%; font-size:12px;
}
textarea {
	line-height: 150%; font-size:12px;
	width: 96%;
}
textarea:focus, input[type=password]:focus, input[type=text]:focus {
	outline: none;
	background: #faf7dd;
}
input[type=reset], input[type=submit] {
	background: #84b8be;
	text-transform: uppercase;
	color: #fff;
	border: none;
	margin-top:6px;
	padding: 7px 20px;
	border-bottom: solid 1px #55473b;
	cursor: pointer;
	-webkit-box-shadow: 0 2px 0 rgba(0,0,0,.1);
	-moz-box-shadow: 0 2px 0 rgba(0,0,0,.1);
	box-shadow: 0 2px 0 rgba(0,0,0,.1);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-appearance: none;
}
input[type=reset]:hover, input[type=submit]:hover {
	background:#45757a;
	color: #fff;
}

/************************************************************************************
STRUCTURE
*************************************************************************************/
#top {
	background: url(images/bg-head.png) no-repeat center top;
}
#overlay-bg {
/*	background: url(images/overlay.png) no-repeat center bottom fixed; */
	min-height: 100%;
}
#pagewrap {
	width: 1140px;
	max-width: 98%;
	margin: 0 auto;
	position: relative;
	min-height: 100%;
}
#body {
	padding-left: 200px;
	padding-top: 200px;
}

/************************************************************************************
HEADER
*************************************************************************************/
#header {
	position: fixed;
	width: 180px;
	padding-top: 140px;
	text-align: right;
}

/* site logo */
#site-logo {
	font-size: 24pt;
	margin: 0 0 10px;
}
#site-logo a {
	color: #603913;
	text-decoration: none;
}
#site-logo a:hover {
	color: #000;
}
#top-logo {
position:absolute;
	top: 0px;
	left: 50px;
	width: 300px;
	height: 100px;
	background:url(images/logo.png) no-repeat;
}
/* site description */
#site-description {
	font-style: italic;
    font-size: 12pt;
	color: #886c4d;
	margin: 0 0 10px;
	padding: 0 0 10px 2px;
	text-shadow: none;
}

/* searchform */
#searchform #s {
	width: 100px;
	background: #f6f4ed url(images/nav-icons.png) no-repeat -8px -497px;
	font-style: italic;
    font-size 105%;
	color: #86856f;
	padding: 3px 4px 3px 28px;
	border: solid 1px #bebdaa;
	-webkit-border-radius: 13px;
	-moz-border-radius: 13px;
	border-radius: 13px;
}
#searchform #s:focus {
	color: #333;
	width: 130px;
	background-color: #fff;
	font-style: normal;
}

/************************************************************************************
SOCIAL NAV
*************************************************************************************/
#social-nav {
	margin: 0 0 15px;
	padding: 0;
    text-align: right;
}
#social-nav li {
	padding: 0;
	margin: 0 0 0 -8px;
	list-style: none;
	display: inline;
	position: relative;
	z-index: 1;
}
#social-nav a {
	display: inline-block;
	text-align: left;
	text-indent: -900em;
	width: 40px;
	height: 45px;
	background:none;
}
#social-nav .twitter a {
    background-image:url(images/twitter_off.png); background-repeat:no-repeat;
	background-position: 3px 8px;
}
#social-nav .twitter a:hover {
    background-image:url(images/twitter_on.png); background-repeat:no-repeat;
	background-position: 3px 8px;
}
#social-nav .rss a {
    background-image:url(images/rss_off.png); background-repeat:no-repeat;
	background-position: 7px 8px;
}
#social-nav .rss a:hover {
    background-image:url(images/rss_on.png); background-repeat:no-repeat;
	background-position: 7px 8px;
}

#social-nav .facebook a {
background-image:url(images/facebook_off.png); background-repeat:no-repeat;
	background-position: 14px 8px;
}
#social-nav .facebook a:hover {
background-image:url(images/facebook_on.png); background-repeat:no-repeat;
	background-position: 14px 8px;
}

#social-nav .vkontakte a {
    background-image:url(images/vkontakte_off.png); background-repeat:no-repeat;
	background-position: 8px 8px;
}
#social-nav .vkontakte a:hover {
    background-image:url(images/vkontakte_on.png); background-repeat:no-repeat;
	background-position: 8px 8px;
}

#social-nav em {
	min-width: 110px;
	text-align: center;
	font-style: italic;
    font-size: 10pt;
	position: absolute;
	top: -28px;
	left: -45px;
	z-index: 4;
	background: #fff;
	border: solid 1px #ccc;
	padding: 4px 1px;
	white-space: nowrap;
	display: none;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
#social-nav em:after {
	content: " ";
	font-size: 0px; 
	line-height: 0%; 
	width: 0px;
	border-top: 5px solid #999;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	position: absolute;
	bottom: -5px;
	left: 50%;
	z-index: 1;
}
#social-nav li:hover > em {
	display: block;
}

/************************************************************************************
MAIN NAV
*************************************************************************************/
#main-nav {
	margin: 0;
	padding: 0 0 8px;
}
#main-nav li {
	padding: 0;
	margin: 0;
	float: right;
	clear: both;
	list-style: none;
	position: relative;
	width: 120px;
	height: 30px;
}
#main-nav img, #main-nav a img {
	position: relative;
	margin:0;
	padding:0;
	width: 120px;

}

ul#main-nav.clearfix li.mi.home img {height:25px;}
ul#main-nav.clearfix li.mi.about img {height:25px;}
ul#main-nav.clearfix li.mi.contact img {height:26px;}
ul#main-nav.clearfix li.mi.archives img {height:27px;}
#main-nav a {
	text-decoration: none;
}
#main-nav .mi {
	cursor: pointer;
	background:url(images/main-menu.png) no-repeat 0 0;
}

#main-nav .home { background-position: -120px 0px;}
#main-nav .home:hover { background-position: 0px 0px;}
#main-nav .about { height: 28px; background-position: -120px -30px; }
#main-nav .about:hover { background-position: 0px -30px; }
#main-nav .contact { height: 28px; background-position: -120px -58px; }
#main-nav .contact:hover { background-position: 0px -58px; }
#main-nav .archives { background-position: -120px -86px; }
#main-nav .archives:hover { background-position: 0px -86px; }

#pt-label {
	display: block;
	width: 255px;
	height: 83px;	
	cursor: pointer;
	background:url(images/label-off.png) no-repeat 0 0;
}
#pt-label:hover {
	background-image:url(images/label-on.png);
}
#pt-banner {
	display: block;
	position:relative;
	margin-top: 30px;
	left: -32px;
	width: 200px;
	height: 100px;
	cursor: pointer;
	border: solid 2px #ffffff;
	background:url(/images/printatet-banner-winter.gif) no-repeat 0 0;
}

/************************************************************************************
CONTENT
*************************************************************************************/
#contentwrap {
	margin-right: -200px;
	margin-bottom: 60px;
	float: left;
	width: 100%;
}
#content {
	margin-right: 200px;
	padding-right: 20px;
}

/* post */
.post {
	padding: 16px 24px;
	margin-bottom: 40px;
	position: relative;
	padding-bottom: 20px; 
	background:#f7f7f7;
	-moz-border-radius: 25px;
	-webkit-border-radius: 25px;
	border-radius:25px;
}
.post-full .post {-moz-border-radius: 0 0 25px 25px;}
.post-content {
    padding-top: 0px;
}
.post-date {
    position: absolute;
    top: -20px;
    right: 25px;
    background: url(images/date-bg.png) no-repeat center 6px;
    color: #eee;
    width: 100px;
    height: 60px;
    padding-top: 20px;
    font-size: 10px;
    font-weight:normal;
    text-transform: uppercase;
	font-variant: small-caps;
    text-align: center;
    text-shadow:none;
}
.post-caption {
	position: relative;
	padding: 20px;
    padding-top: 16px;
	margin-bottom: 0px;
	background: #006991;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
	-moz-border-radius: 25px 25px 0 0;
    padding-bottom: 12px;
    font-size: 12pt;
    font-weight: bold;
    text-shadow: 1px 1px 1px #888;
    text-transform: uppercase;
    border-bottom: solid 4px #003b3b;
    color: #fff;
}
.post-full {
    position: relative;
}
.post-full .post-date {
    top: -20px;
    right: 25px;
}
.post-full h1 {
    margin-top: 0;
    padding-top: 20px;
	padding-bottom:5px;
}
.post-category-fotobook .post-caption {
    background: #cf4b6c;
}
.post-category-fotobook h1, .post-category-fotobook h2, .post-category-fotobook h3, .post-category-fotobook h4, .post-category-fotobook h5, .post-category-fotobook h6 {
    color:#cf4b6c;
}
.post-category-fotos .post-caption {
    background: #b5cf33;
}
.post-category-fotos h1, .post-category-fotos h2, .post-category-fotos h3, .post-category-fotos h4, .post-category-fotos h5, .post-category-fotos h6 {
    color:#8ca125;
}
.post-category-otkritka .post-caption,
.post-category-otkritka .post-caption {
    background: #edc900;
}
.post-category-otkritka h1, .post-category-otkritka h2, .post-category-otkritka h3, .post-category-otkritka h4, .post-category-otkritka h5, .post-category-otkritka h6,
.post-category-otkritka h1, .post-category-otkritka h2, .post-category-otkritka h3, .post-category-otkritka h4, .post-category-otkritka h5, .post-category-otkritka h6 {
    color:#edc900;
}
.post-category-4 .post-caption {
    background: #9c8cc2;
}
.post-category-4 h1, .post-category-4 h2, .post-category-4 h3, .post-category-4 h4, .post-category-4 h5, .post-category-4 h6 {
    color:#9c8cc2;
}
.post-category-5 .post-caption {
    background: #84d4ee;
}
.post-category-5 h1, .post-category-5 h2, .post-category-5 h3, .post-category-5 h4, .post-category-5 h5, .post-category-5 h6 {
    color:#84d4ee;
}
.post-full .post {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 0;
}

/* post image */
.post-image {
	margin: 0;
}
.post-image img {
	width: 140px;
	margin: 5px 0 5% 7%;
	float: right;
}

/* post title */
.post-title {
	color: #8f0206;
	font-size: 16pt;
	letter-spacing: auto;
	margin: 0 0 10px;
}
.post-title a {
	color: #444;
	text-decoration: none;
	display: inline;
	vertical-align: top;
}
.post-title a:hover {
	color: #000;
	text-decoration: none;
}
.post.featured .post-title {
	background: url(images/star.png) no-repeat 0 12px;
	padding-left: 22px;
	margin-left: -22px;
}

/* post comment */
.post-title sup {
	display: inline-block;
	vertical-align: top;
}
.post-title sup a {
	background: url(images/nav-icons.png) no-repeat 2px -668px;
	font-size: 12pt;
	text-align: center;
	text-shadow: none;
	width: 40px;
	height: 30px;
	display: block;
	margin-left: 2px;
	padding-top: 3px;
	padding-bottom: 4px;
}

/* post meta */
.post-meta {
	font-size: 90%;
	color: #bbbab1;
	width:auto;
	float:left;
	text-align:left; 
}

div.right div.post-meta {
    margin: 6px 0 8px 0px; padding:0}
.post-meta a {
	color: #82b7bf;
	border-bottom: solid 1px #82b7bf;
	text-decoration: none;
}

.post-meta a:hover {
color:#68949a;
border-bottom: solid 1px #68949a;
text-decoration:none;
}
.post-meta a .post-category, a .post-category,.post-category{
border:none;}

.post-meta:before {
    content: 'Категория: ';
	color: #82b7bf;   
}

.post-meta a:hover, .post-meta. post-category :hover{
	color: #68949a;
	background:none;
}

.post-meta .post-date {
	color: #949289;
	font-weight: bold;
}
.post-meta .post-tag,  .post-meta .tag-link, .post-meta .tag-link:visited{
	/*font-style: italic;*/
    font-size: 95%;
	text-transform: lowercase;
}
.tags:before
{
content: ' Теги: ';
color: #82b7bf;
font-style:normal;
}
div .tag .tag-link{font-style:normal}
/* social share */
.share {
	padding-top: 10px;
	clear: both;
}
.single .share {
	margin-top: 60px;
}
.share em {
	font-size: 75%;
	text-transform: uppercase;
	color: #a1a096;
	letter-spacing: .1em;
}
.share span, .share iframe {
	vertical-align: middle;
	display: inline-block;
}

/* page title */
.page-title {
	color: #8f0206;
	font-size: 52px;
	margin: -15px 0 10px;
	padding: 0;
}


/************************************************************************************
PREVIEW BUTTON
*************************************************************************************/
.btn {
	font-weight: bold;
    font-size: 110%;
	text-transform: uppercase;
	margin: 0 0 15px;
}
.btn.left {
	margin-right: 25px;
}
.btn a {	
	color: #91070b;
	padding: 5px 0 11px 46px;
	display: inline-block;
	background: url(images/preview-btn.png) no-repeat;
}
.ie7 .btn a {	
	display: inline;
}
.btn a:hover {
	text-decoration: none;	
	color: #000;
}
.btn.download a {
	background-position: 0 -142px;
}
.btn a span, .btn a em {
	font-style: italic;
    font-size: 90%;
	text-transform: none;
	text-decoration: none;
	color: #666;
	display: block;
	padding-top: 2px;
}
.btn a:hover span, .btn a:hover em  {
	text-decoration: none;
}

/************************************************************************************
ARCHIVES TABS
*************************************************************************************/
.tabnav {
	margin: 30px 0 0 20px;
	padding: 0;
}
.tabnav li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: inline;
}
.tabnav a {
	color: #878780;
	text-decoration: none;
	padding: 10px 14px 20px;
	font-variant: small-caps;
    font-size: 15px;
	text-transform: uppercase;
	white-space: nowrap;
	letter-spacing: .05em;
}
.tabnav a:hover {
	color: #000;
}
.tabnav .current a, .tabnav .current a:hover {
	color: #8f0206;
	background: #fcfcfa url(images/tabnav-bg.png) repeat-x;
}

/* tabcontainer */
.tabcontainer { 
	clear: both; 
}
.tabcontainer .tab { 
	display: none;
	background: url(images/tab-bg.png) repeat-x 0 10px;
	padding: 45px 15px 10px;
}
.tabcontainer .current { 
	display: block; 
}

/* feature posts */
.featured-posts {
	margin: 0;
	padding: 0;
}
.featured-posts li {
	list-style: none;
	vertical-align: top;
	width: 20%;
	margin: 0 2.1%;
	padding: 0 0 10px;
	display: inline-block;
	text-align: center;
}
.ie7 .featured-posts li {
	display:inline;
}
.featured-posts a {
	color: #8f0206;
}
.featured-posts figure {
	margin: 0;
}
.featured-posts img {
	width: 100%;
	padding: 3px;
}
.featured-posts h2 {
	font-size: 80%;
	margin: 0 0 4px;
	text-shadow: none;
}

/* all posts */
.all-posts {
	margin: 0;
	padding: 0;
}
.all-posts li {
	margin: 0;
	padding: 8px 80px 8px 24px;
	list-style: none;
	border-bottom: solid 1px #ccc;
	position: relative;
	overflow: hidden;
}
.all-posts li:hover {
	background-color: #f5ec82;
	background-color: rgba(245,236,130,.8);
	cursor: pointer;
}
.all-posts h2 {
	font-size: 120%;
	margin: 0 0 2px;
	text-shadow: none;
}
.all-posts h2 a {
	color: #8f0206;
	text-decoration: none;
}
.all-posts h2 a:hover {
	color: #000;
}
.all-posts .featured h2 {
	background: url(images/star.png) no-repeat 0 center;
	padding-left: 22px;
	margin-left: -22px;
}
.all-posts p {
	position: absolute;
	top: 7px;
	right: 0;
	width: 80px;
	text-align: center;
	display: block;
	font-size: 90%;
}
.all-posts p span {
	display: block;
	font-size: 140%;
	color: #2e2e2b;
}
.all-posts p a {
	color: #7a7970;
	text-decoration: none;
}
.all-posts p a:hover {
	color: #000;
}


/************************************************************************************
GALLERY
*************************************************************************************/
.gallery {
	margin: 0 0 15px;
	padding: 0;
	clear: both;
}
.gallery li {
	margin: 0 0 10px;
	padding: 5px 10px;
	list-style: none;
	display: inline-block;
	vertical-align: top;
	text-align: center;
	font-size: 95%;
	color: #666;
}
.ie7 .gallery li {
	display: inline;
}

/************************************************************************************
IMAGE STYLE
*************************************************************************************/
.post-content figure, .post-content p.image {
	margin: 0;
}
figure figcaption {
	font-style: italic;
    font-size: 125%;
	text-align: center;
	color: #777;
}
.post-content img, figure img , .post-image-wrap{
	background: #fff;
	padding: 5px;
	border: solid 1px #ddd;
	border-bottom: solid 1px #999;
}
.post-content img, .post-image-wrap {
	margin: 5px;
}
figure.right, .image.right {
	margin-left: 5%;
}
figure.left, .image.left {
	margin-right: 5%;
}
.post-image img {
	padding: 4px;
}
.nostyle img {
	background-color: transparent;
	padding: 0;
	border: none;
}
/************************************************************************************
PAGE NAVIGATION
*************************************************************************************/
.pagenav {
	clear: both;
	font-size: 110%;
	color: #a1a096;
	padding-bottom: 20px;
}
.pagenav a {
	padding: 3px 4px;
	margin: 0 3px;
	position: relative;
}
.pagenav a:hover {
	background-color: #f5ec82;
}
.pagenav a, .pagenav .number, .pagenav .page-numbers, .pagenav span {
	text-decoration: none;
	text-align: center;
	vertical-align: middle;
	float: left;
}
.pagenav .current {
	background: url(images/nav-icons.png) no-repeat -4px -1538px;
	color: #666;
	text-decoration: none;
	padding: 3px 1px 4px 0;
	width: 27px;
}

/* next/prev nav */
.pagenav .prev, .pagenav .next {
	text-indent: -9000em;
	background: url(images/nav-icons.png) no-repeat -3px -780px;
	background-color: rgba(255,255,255,.4);
	width: 22px;
	height: 22px;
	margin-top: 2px;
	-webkit-border-radius: 10em;
	-moz-border-radius: 10em;
	border-radius: 10em;
}
.pagenav .next {
	background-position: -2px -881px;
}
.pagenav .next:hover, .pagenav .prev:hover {
	background-color: #f5ec82;
	text-decoration: none;
}
/* next / prev comments hover */
.pagenav em {
	min-width: 50px;
	text-align: center;
	font-size: 9px;
	letter-spacing: 1px;
	text-indent: 0;
	text-transform: uppercase;
	text-decoration: none;
	color: #666;
	position: absolute;
	top: -26px;
	left: -13px;
	z-index: 2;
	background: #fff;
	border: solid 1px #ccc;
	padding: 4px 1px;
	white-space: nowrap;
	display: none;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.pagenav em:after {
    content: " ";
	font-size: 0px; 
	line-height: 0%; 
	width: 0px;
	border-top: 5px solid #999;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	position: absolute;
	bottom: -5px;
	left: 47%;
	z-index: 1;
}
.pagenav a:hover > em {
	display: block;
}

/************************************************************************************
POST NAVIGATION
*************************************************************************************/
.post-nav {
    background: url("images/line.gif") repeat-x;
	padding-top: 30px;
	margin: 20px 0;
	clear: both;
}
.post-nav li {
    margin: 0;
	padding: 0;
	list-style: none;
	width: 45%;
	color: #214e6b;
}
.post-nav li.prev {
    float:left;
    text-align:left;
}
.post-nav li.next {
    float:right;
    text-align:right;
}
.post-nav a {
    display: inline-block;
	text-decoration: none;
	color: #214e6b;;
}
.post-nav a:hover {
	text-decoration: none;
	color: #fcc72c;
}
.post-nav .prev a {
    position: relative;
    padding-left: 31px;
    background: url(images/previous_s_off.png) 0 0 no-repeat;
}
.post-nav .prev a:hover {
    background-image: url(images/previous_s_on.png);
}
.post-nav .prev a:before {
    content:'Предыдущая';
    display: block;
    position: absolute;
    top:-10pt;
    left: 31px;
    font-size: 5pt;
    text-transform: uppercase;
    color:#bbb;
}
.post-nav .prev a:hover:before {
	color: #fde9ae;
}
.post-nav .next a {
    position: relative;
    padding-right: 31px;
    background: url(images/next_s_off.png) right no-repeat;
}
.post-nav .next a:hover {
    background-image: url(images/next_s_on.png);
}
.post-nav .next a:before {
    content:'Следующая';
    display: block;
    position: absolute;
    top:-10pt;
    right: 31px;
    font-size: 5pt;
    text-transform: uppercase;
    color:#bbb;
}
.post-nav .next a:hover:before {
	color: #fde9ae;
}

.post-intro {
    position: relative;
    font-size: 9pt;
}
.post-intro .post-title {
    position: relative;
    top: 4px;
    z-index: 9;
    height: 26px;
    overflow: hidden;
    text-shadow: 0px -1px 0 #888;
}
.post-intro figure {
    position: relative;
    float: left;
    margin-right:12px;
    max-width: 60%;
    overflow: visible;
}
.post-intro figure img {
    position: relative;
}
.post-intro .post-preview {
    border-bottom: dotted 0px #ccc;
    margin-bottom: 0;
	margin-top:0; padding-top:0;
    overflow: auto;
}
.post-preview p
{
    padding: 0;
    padding-bottom: 4pt;
}
.read-post-link
{
    float:right;
    margin-right:20px;
    text-align:right;
    color: #777;
    text-transform: uppercase;
    font-size: 6pt;
    padding:0 !important;
    margin:0;
    border-bottom:1px #CCCCCC solid;
    margin-bottom:12px;
}
.read-post-link:hover {color:#176062;}
.read-post-link:after {content: 'Читать полностью'; font-size:6pt;}
.post-intro footer {
    margin: 0;
    text-align: right;
}
.post-intro .post-title a {
	/*color: #80b7bc;font-weight:normal;*/
	color:#FFFFFF;
	font-weight:bold;
	text-decoration: none;
    text-transform: uppercase;
    font-size: 11pt;   
}


.post-intro .post-title a:hover {
	/*color: #719da1;*/
	color:#FFFFFF;
	text-decoration: underline;
}

header h1.post-title a, h1.post-title a {
	color: #fff; font-weight:bold}
	
.post-intro .titlebg {
    position: absolute;
    height: 60px;
    left: -35px;
    top: 6px;
}
.post-full .titlebg {
    display: none;
}
.titlebg .lcap {
    float: left;
    width: 60px;
    height: 60px;
    background: url(images/band.png) no-repeat 0px 0px;
}
.titlebg .rcap {
    float: right;
    width: 60px;
    height: 60px;
    background: url(images/band.png) no-repeat 0px -120px;
}
.titlebg .mid {
    margin: 0 60px;
    min-width: 60px;
    height: 60px;
    background: url(images/band.png) repeat-x 0px -60px;
}
.post-category-fotobook .titlebg .lcap,
.post-category-fotobook .titlebg .rcap,
.post-category-fotobook .titlebg .mid {
    background-image: url(images/band-red.png);
}
.post-category-fotos .titlebg .lcap,
.post-category-fotos .titlebg .rcap,
.post-category-fotos .titlebg .mid {
    background-image: url(images/band-green.png);
}
.post-category-otkritka .titlebg .lcap,
.post-category-otkritka .titlebg .rcap,
.post-category-otkritka .titlebg .mid,
.post-category-otkritka .titlebg .lcap,
.post-category-otkritka .titlebg .rcap,
.post-category-otkritka .titlebg .mid {
    background-image: url(images/band-yellow.png);
}
.post-intro .lshadow, .post-full .lshadow {
    position: absolute;
    width: 40px;
    height: 240px;
    left: -20px;
    top: 30px;
    background: url(images/lshadow.png) no-repeat center center;
}
.post-intro .rshadow, .post-full .rshadow {
    position: absolute;
    width: 40px;
    height: 240px;
    right: -20px;
    top: 30px;
    background: url(images/lshadow.png) no-repeat center center;
}
.post-intro .bshadow, .post-full .bshadow {
    position: absolute;
    width: 740px;
    height: 40px;
    bottom: -20px;
    left: 30px;
    background: url(images/bshadow.png) no-repeat center center;
}


/************************************************************************************
COMMENTS
*************************************************************************************/
.commentwrap {
	padding: 10px 0 0 0;
	position: relative;
	clear: both;
}
.comment-title {
    font-weight: bold;
    color:#80B7BC; 
    background:url(images/pencil_off.png)  no-repeat;
    padding-left: 32px;
    padding-top:10px;
    height:40px;
}

/* commentlist */
.commentlist {
	font-size: 95%;
	padding: 10px 0 15px;
	margin: 0;
	clear: both;
	word-wrap: break-word;
}
.commentlist li {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	clear: both;
}
.commentlist .comment-author {
	padding: 15px 0 0;
	margin: 0;
}
/* avatar */
.avatar {
	width: 60px;
	height: 60px;
	background-color: #fff;
	border: solid 3px #fff;
	-webkit-border-radius: 10em;
	-moz-border-radius: 10em;
	border-radius: 10em;
	-webkit-box-shadow: 0 1px 0 rgba(0,0,0, .2);
	-moz-box-shadow: 0 1px 0 rgba(0,0,0, .2);
	box-shadow: 0 1px 0 rgba(0,0,0, .2);
}
.commentlist .avatar {
	float: left;
	margin: -8px 12px 5px 14px;
}
.commentlist cite {
	font-style: italic;
    font-size: 155%;
	text-transform: capitalize;
	color: #36160b;
	margin-right: 30px;
}
.commentlist cite a {
	color: #75280c;
	text-decoration: none;
}
.commentlist .author cite {
	background: url(images/comment-author.png) no-repeat right center;
	padding-right: 58px;
}
.commentlist .comment-time {
	font-size: 75%;
	text-transform: uppercase;
	color: #8c8c86;
}
.commentlist .commententry {
	position: relative;
	overflow: hidden;
	margin-top: 2px;
}
.commentlist .commententry p {
	padding: 0;
	margin: 0 0 1em;
}
/* commentlist child ul */
.commentlist ul, .commentlist ol {
	margin: 0;
	padding: 0 0 0 8%;
}
/* reply link */
.commentlist .reply {
}
.commentlist .comment-reply-link {
	font-size: 11px;
	text-transform: uppercase;
	text-decoration: none;
	padding-left: 12px;
	background: url(images/nav-icons.png) no-repeat -26px -1190px;
	color: #ca6149;
}
.commentlist .comment-reply-link:hover {
	text-decoration: none;
	border-bottom: solid 1px #ccc;
}
/* comment form */

#respond a.add_comment h4.comment-title{ display:block; height:37px;background:url(images/pencil_off.png) no-repeat 0px 0px; padding: 18px 0 0 30px;} 
/*#respond h4.comment-title:hover{background:url(images/pencil_on.png) no-repeat 0px 0px;} */
#respond { 
	padding: 0px 20px 20px 20px;
	margin: 0;
	position: relative;
	clear: both;
	margin-bottom: 40px;
	/*	background:#f7f7f7;
	-moz-border-radius: 25px;
	-webkit-border-radius: 25px;
	border-radius:25px;
background: url(images/bshadow.png) no-repeat center center;*/
}
.commentlist #respond {
	margin-top: 0;
	width: 90%;
	margin-left: 10%;
}
/* cancel reply link */
#respond .cancel-comment-reply a {
	font-size: 75%;
	text-transform: uppercase;
	color: #ba8985;
	position: absolute;
	top: 13px;
	right: 0;
	font-size: 85%;
	text-decoration: none;
	padding: 3px 0 3px 28px;
	background: url(images/nav-icons.png) no-repeat -3px -1680px;
}
#respond .cancel-comment-reply a:hover {
	color: #000;
}
#commentform input[type=text] {
	width: 206px;
	margin-right: 5px;
}
#commentform textarea {
    margin-top: 2px;
	height: 140px;
}
#commentform input#submit {
	padding: 7px 20px;
}

/* comment toggle buttons */
.commentwrap .btn-comment {
	width: 28px;
	height: 28px;
	cursor: pointer;
	display: none;
	position: absolute;
	background: url(images/nav-icons.png) no-repeat -3px -1436px;
	background-color: rgba(255,255,255,.4);
	-webkit-border-radius: 10em;
	-moz-border-radius: 10em;
	border-radius: 10em;
}
.commentwrap .collapse-all, .commentwrap .expand-all {
	top: 69px;
	right: 0;
}
.commentwrap .expand-all {
	background-position: -3px -1368px;
}
.commentwrap .btn-comment:hover {
	background-color: #f5ec82;
	background-color: rgba(245,236,130,.8);
}
.commentwrap .expand, .commentwrap .collapse {
	width: 22px;
	height: 22px;
	background-position: -7px -1246px;
	top: 28px;
	right: 3px;
}
.commentwrap .collapse {
	background-position: -7px -1304px;
}

/* btn-comment hover text */
.commentwrap .btn-comment span {
	min-width: 90px;
	text-align: center;
	font-size: 9px;
	letter-spacing: .12em;
	text-transform: uppercase;
	position: absolute;
	top: -28px;
	left: -37px;
	z-index: 4;
	background: #fff;
	border: solid 1px #ccc;
	padding: 4px 1px;
	white-space: nowrap;
	display: none;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.commentwrap .btn-comment span:after {
    content: " ";
	font-size: 0px; 
	line-height: 0%; 
	width: 0px;
	border-top: 5px solid #999;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	position: absolute;
	bottom: -5px;
	left: 50%;
	z-index: 1;
}
.commentwrap .btn-comment:hover > span {
	display: block;
}

/* comment pagenav */
.commentwrap .pagenav {
	margin: 0;
}

/************************************************************************************
404
*************************************************************************************/
.page404 h1 {
	font-size: 500%;
}
.page404 h2 {
	text-shadow: none;
	font-style: italic;
    font-size: 230%;
	margin: 10px 0 5px;
}
.page404 h3 {
	font-size: 110%;
	text-transform: uppercase;
	margin: 30px 0 10px;
	letter-spacing: 0;
}
.page404 h4 {
	margin-top: 50px;
}
.image-pop {
	position: relative;
}
.image-pop figure {
	position: absolute;
	width: 83px;
	height: 83px;
	top: -90px;
	left: -20px;
	display: none;
}
.image-pop figure img {
	padding: 0;
}
.image-pop figure:after {
	content: " ";
	font-size: 0px; 
	line-height: 0%; 
	width: 0px;
	border-top: 8px solid #000;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	position: absolute;
	bottom: -5px;
	left: 33px;
	z-index: 1;
}
.image-pop .avatar {
	position: absolute;
	width: 77px !important;
	height: 77px !important;
	display: block;
	border: solid 3px #000;
}
.image-pop:hover > figure {
	display: block;
}

/************************************************************************************
SIDEBAR
*************************************************************************************/
#sidebar {
	float: right;
	width: 200px;
	margin: 15px 0 60px;
	word-wrap: break-word;
	font-size: 85%;
	line-height: 140%;
}
#sidebar section {
	margin-bottom: 25px;
	clear: both;
}
#sidebar h4 {
	font-size: 150%;
	margin: 0 0 12px;
	color: #000;
}
#sidebar h4 a {
	text-decoration: none;
}
#sidebar ul {
	margin: 0;
	padding: 0;
}
#sidebar li {
	margin: 4px 0px;
	padding: 0;
	list-style: none;
}

/* twitter list */
#sidebar .twitter {
	background: #cee2e2;
	background: rgba(151,223,252,.3);
	padding: 15px 15px 10px 10px;
	border: solid 1px #cacfc3;
	border-bottom-color: #b5baae;
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
#sidebar .twitter h4 {
	background: url(images/nav-icons.png) no-repeat -10px 0px;	
	text-transform: lowercase;
	padding-left: 30px;
}
#sidebar .twitter li {
	background: url(images/bullet.png) no-repeat 6px .4em;
	padding-left: 22px;
}
#sidebar .twitter li span a {
	color: #8f0206;
}
#sidebar .twitter li span + a {
	color: #666;
	font-style: italic !important;
    font-size: 110% !important;
}

/* sidebar network */
#sidebar .network ul {
	margin: 30px 0 0;
	padding: 0;
}
#sidebar .network ul li {
	margin: 0;
	padding: 15px 7px 5px;
	margin-bottom: 1px;
	list-style: none;
}
#sidebar .network li:hover {
	cursor: pointer;
	background: #f9f8f1;
	background: rgba(255,255,255,.5);
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}
#sidebar .network p {
	margin: 0 0 8px;
	overflow: hidden;
}
#sidebar .network a {
	text-decoration: none;
}
#sidebar .network a:hover {
	text-decoration: none;
}
#sidebar .network h4 {
	margin: 5px 0;
}
#sidebar .network figure {
	float: left;
	margin: 0 10px 0 0;
	clear: left;
}
#sidebar .network img {
	padding: 0;
	border: none;
	background: none;
}
#sec-category {
	position:relative;
	width:200px;
	height:50px;
	background: url(images/menu-category.png) no-repeat;
}
#category-menu li {
    position: relative;
    padding-left: 26px;
	color:#FFFFFF;
}
#category-menu a:link{color:#FFFFFF;}
#category-menu li:before {
    content: '';
    display: block;
    position: absolute;
    background: url(images/category-colors.png) no-repeat;
    left: 10px;
    top: -2px;
    width: 26px;
    height: 18px;
}
#category-menu li.category-fotobook:before {
    background-position: 0px 0px;
}
#category-menu li.category-fotos:before {
    background-position: 0px -18px;
}
#category-menu li.category-otkritka:before,
#category-menu li.category-otkritka:before {
    background-position: 0px -36px;
}
#category-menu a, 
#category-menu a:visited {
	text-decoration: none !important;
	font-size: 14px;
	line-height: 100%;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding-top: 2px;
	padding-right: 10px;
	padding-bottom: 2px;
	padding-left: 10px;
}
#category-menu a.active-link,
#category-menu active {
    font-weight: bold;
}
#sec-tags {
	position:relative;
	width:200px;
	height:50px;
	background:url(images/menu-tags.png) no-repeat;
}
.blog-tags a,
.blog-tags a:visited {
	text-decoration: none !important;
	line-height: 100%;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding-top: 1px;
	padding-right: 2px;
	padding-bottom: 1px;
	padding-left: 2px;
    margin: 2px 4px;
	color:#FFFFFF;
}
#blog-tags {
	text-align: center;
}
.blog-categories li a:hover,
.blog-tags a:hover {
    color: #000;
    background:none;
}

/************************************************************************************
ADS
*************************************************************************************/
.ad img {
	width: auto;
	height: auto;
	background: #fff !important;
	padding: 4px !important;
	border-bottom: solid 1px #c4c2b7 !important;
}
#sidebar .ad img {
	padding: 3px !important;
}
#sidebar .banners {
	background: url(images/text-ads.png) no-repeat 5px 0;
	padding: 18px 0 0;
}
#sidebar .banners .bsap {
	display: inline !important;
}
#sidebar .banners .bsap a {
	width: auto;
	height: auto;
	margin: 0 2px 2px 0;
}
#sidebar .banners .even {
	margin-right: 0;
}
#sidebar .banners a.adhere {
	width: 125px;
	height: 125px;
	display: block;
	text-align: center;
	background: #eee;
	padding: 3px;
	border: none;
	overflow: hidden;
	border-bottom: solid 1px #c4c2b7;
}

/* square */
.ad.square {
	background: url(images/text-ads-2.png) no-repeat right bottom;
	padding: 0 0 15px;
	margin-bottom: 15px;
	margin-left: 7%;
	float: right;
}
.ad.square img {
	padding: 0 !important;
	background: none;
}

/* horizontal */
.ad.horizontal {
	background: url(images/text-ads.png) no-repeat 5px 0;
	padding: 18px 0 0;
	margin: 10px 0 40px;
	text-align: left;
}
.ad.horizontal .bsap a {
	width: auto;
	height: auto;
	display: inline !important;
}
.ad.horizontal img {
	padding: 5px !important;
}
/************************************************************************************
FOOTER
*************************************************************************************/
#footer {
	clear: both;
	font-size: 85%;
	line-height: 160%;
	padding-top: 30px;
}
#footer a {
	color: #8f0206;
	text-decoration: none;
}
#footer a:hover {
	color: #000;
}
#footer section {
	width: 31%;
	margin-left: 3.4%;
	margin-bottom: 60px;
	float: left;
	word-wrap: break-word;
}
#footer section:first-child {
	margin-left: 0;
}
#footer h4 {
	font-size: 115%;
	margin: 0 0 8px;
	text-transform: uppercase;
	color: #000;
	letter-spacing: .1em;
}

/* footer list */
#footer ol, #footer ul {
	margin: 20px 0 0;
	padding: 0;
}
#footer li {
	padding: 0 0 8px;
	margin: 0;
	list-style: none;
	clear: both;
}
#footer time {
	color: #949289;
}

/* recent posts */
#footer .recent-posts figure {
	float: left;
	margin: -2px 14px 3px 0;
	width: 44px;
}
#footer .recent-posts figure img {
	padding: 3px;
}
#footer .recent-posts h5 {
	font-size: 115%;
	text-transform: none;
	margin: 3px 0 4px;
}
#footer .recent-posts .post-meta {
	font-size: 95%;
	margin: 0;
}
#footer li figure {
	float: left;
	margin: 0 12px 6px 0;
}


/* recent comments */
#footer .recent-comments figure {
	margin: -4px 12px 6px 0;
}
#footer .recent-comments .avatar {
	width: 40px !important;
	height: 40px !important;
	float: left;
	display: block;
}
#footer .recent-comments cite {
	font-variant: small-caps;
	font-style: normal;
	font-size: 125%;
	text-transform: capitalize;
}

/* copyright */
#footer .copyright {
	color: #3d676b;
	font-size: 95%;
	/*color: #998675;*/
	font-variant: small-caps;
}
#footer .copyright a {
	color: #3d676b;
}
#footer .copyright a:hover {
	color: #000;
}

#back-top {
	position: fixed;
	bottom: 0;
	width: 180px;
	text-align: right;
	clear: both;
	margin-bottom:79px;
	margin-left:-220px;
}
#back-top a {
	color: #3d676b;
	text-transform: uppercase;
	text-decoration: none;
}
#back-top a:hover {
	color: #000;
}
#back-top em {
	font-size: 12px;
	letter-spacing: 1px;
	float: right;
}
#back-top span {
	width: 28px;
	height: 28px;
	background: url(images/nav-icons.png) no-repeat -8px -577px;
	background-color: rgba(255,255,255,1);
	display: block;
	float: right;
	cursor: pointer;
	margin: -8px 0 0 6px;
	-webkit-border-radius: 10em;
	-moz-border-radius: 10em;
	border-radius: 10em;
}
#back-top a:hover span {
	background-color: #f5ec82;
	background-color: rgba(245,236,130,.8);
}

/************************************************************************************
FORM VALIDATION
*************************************************************************************/
.wpcf7-not-valid-tip-no-ajax, label.error {
	color: #de3f1a;
	font-size: 90%;
	margin-left: 5px;
	white-space: nowrap;
}
textarea.error, input.error {
	border: solid 1px #daaa9c;
}

/************************************************************************************
CLEAR & ALIGNMENT
*************************************************************************************/
.clear {
	clear: both;
}
.left {
	float: left;
}
.right {
	float: right;
}
.textleft {
	text-align: left;
}
.textright {
	text-align: right;
}
.textcenter {
	text-align: center;
}
/* clearfix */
.clearfix:after, section li:after, footer:after, .post-title:after, .btn:after, .gallery:after, .pagenav:after, #main-nav:after
{ visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.clearfix, section li, footer, .post-title, .btn, .gallery, .pagenav, #main-nav 
{ display: inline-block; }
/* clearfix for ie7 */
.clearfix, section li, footer, .post-title, .btn, .gallery, .pagenav, #main-nav 
{ display: block; }

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* 2 column layout */
@media screen and (max-width: 1000px) {
	#body {
		width: auto;
		padding-left: 0;
		padding-top: 10px;
		clear: both;
	}
#top-logo{left:30px;}
#content{padding-top:90px}
.blog-categories {padding-top:90px}
	#top {background: url(images/bg-head1.png) no-repeat -145px top;}
	#top-logo {
position:absolute;
	width: 225px;
	height: 75px;
	background:url(images/logo1.png) no-repeat;	top: 0px;
	left: 45px;
}
	
	#overlay-bg {
		background: none;
	}
	#pagewrap {
		max-width: 94%;
		background: none;
	}
	#header {
		position: relative;
		z-index: 20;
		width: auto;
		padding: 0px 0 0px;
		text-align: left;
	}
	#site-logo {
		text-transform: none;
	}
	#site-description {
		background: none;
	}


	#main-nav .mi {
	cursor: pointer;
	background:url(images/main-menu-top.png) no-repeat 0 0;
	margin-bottom:50px;
}
	#main-nav li {
		padding: 0 0 11px 0;
		margin:0;
		display:inline-block;
		float: none;
		position: relative;
		top:156px; left:30px;
		text-transform: uppercase;
	}

#main-nav .home {background-position: 0px -8px; width:79px; margin-right:0; padding-right:0 }
#main-nav .home:hover {background-position: 0px -56px; width:79px;margin-right:0; padding-right:0}
ul#main-nav.clearfix li, ul#main-nav.clearfix li:hover { height:24px}

#main-nav .about {position:relative; z-index:10002; background-position: -78px -8px;width:72px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .about:hover {position:relative; z-index:10002; background-position: -78px -56px;width:72px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .contact {position:relative; z-index:10003; background-position: -148px -8px;width:102px; height:34px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .contact:hover {position:relative; z-index:10003; background-position: -148px -56px;width:102px; height:34px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .archives a img, #main-nav .archives a{width:82px;}
#main-nav .archives {position:relative; z-index:10004; background-position: -249px -8px;width:82px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .archives:hover {position:relative; z-index:10004; background-position: -249px -56px;width:82px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}

	#social-nav {
		position: absolute;
		top: 142px;
		left: 370px;
		z-index: 10001;
	}
	#social-nav li {
		float: left;
		margin-left: -4px;
		margin-top:8px;
	}
	#social-nav a {
		display: block;
	}
	#searchform {
		position: absolute;
		bottom: 17px;
		right: 0;
		width: 125px;
		z-index: 1000;
	}
	#searchform #s {
		width: 90px;
	}
	#searchform #s:focus {
		width: 90px;
	}
	#body {
		width: auto;
		padding-left: 0;
		padding-top: 30px;
		clear: both;
	}
	#footer {
		padding-bottom: 30px;
	}
	#footer section {
		margin-bottom: 20px;
	}
	#back-top {
		position: static;
		margin: 30px 0 10px;
		width: auto;
		text-align: left;
	}
	#back-top em {
		float: left;
	}
	#back-top span {
		float: left;
		margin: -8px 6px 0 0;
	}
	
}
/* 1 column layout */
@media screen and (max-width: 760px) {
	#body {
		width: auto;
		padding-left: 0;
		padding-top:15px;
		clear: both;
	}
	#main-nav img{
	position:relative;
	margin:0;
	padding:0
	display: inline;
}
	#main-nav {
		position: relative;
		display:inline;
	}
	
		#main-nav .mi {
	cursor: pointer;
	background:url(images/main-menu-top.png) no-repeat 0 0;

}
	#main-nav li {
		padding: 0 0 10px 0;
		margin:0;
		display:inline-block;
		float: none;
		position: relative;
		top:130px; left:10px; height:30px;
		text-transform: uppercase;
	}

#main-nav .home {background-position: 0px -8px; width:79px; margin-right:0; padding-right:0 }
#main-nav .home:hover {background-position: 0px -56px; width:79px;margin-right:0; padding-right:0}

#main-nav .about {position:relative; z-index:10002; background-position: -78px -8px;width:72px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .about:hover {position:relative; z-index:10002; background-position: -78px -56px;width:72px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .contact {position:relative; z-index:10003; background-position: -148px -8px;width:102px; height:34px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .contact:hover {position:relative; z-index:10003; background-position: -148px -56px;width:102px; height:34px;  margin-right:0; padding-right:0; margin-left:-6px;}

#main-nav .archives {position:relative; z-index:10004; background-position: -249px -8px;width:82px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
#main-nav .archives:hover {position:relative; z-index:10004; background-position: -249px -56px;width:82px; height:30px;  margin-right:0; padding-right:0; margin-left:-6px;}
	
	#social-nav {
		position:absolute;
		top:145px;
		left: 346px;
		z-index: 1001;
	}
	#social-nav li {
		float: left;
		margin-left: -4px;
		margin-top:8px;
	}
	#social-nav a {
		display: block;
	}

    #sidebar {
	margin: 15px 0 20px;
	word-wrap: break-word;
	font-size: 85%;
	line-height: 140%;
    }
	#pagewrap {
		max-width: 90%;
	}
	#header {
		padding-top: 40px;
	}
	#searchform {
		position: absolute;
		top: 45px;
		right: 0;
	}
	#searchform #s {
		float: right;
		width: 55px;
	}
	#searchform #s:focus {
		width: 100px;
	}
	#site-logo {
		text-transform: uppercase;
		line-height: 110%;
		width: 10px;
		word-wrap: normal;
		font-size: 28px;
	}
	#contentwrap {
		margin-right: 0;
		float: none;
		width: auto;
	}
	#content {
		margin-right: 0;
		padding-right: 0;
	}
	#sidebar {
		padding-top: 20px;
		width: auto;
		float: none;
		clear: both;
	}
	#footer section {
		width: auto;
		margin: 0 0 20px;
		float: none;
	}
}
/* small 1 column */
@media screen and (max-width: 600px) {
	#body {
		width: auto;
		padding-left: 0;
		padding-top: 0px;
		clear: both;
	}
	#header {padding-top:20px;}
#content{padding-top:70px}
	#main-nav {
		position: relative; top:-30px; left:-4px;
		z-index: 10000;
		display:inline;
		padding-bottom:30px;
	}
	
	#social-nav {
		position:absolute;
		top:94px;
		left: 340px;
		z-index: 1001;
	}
	#social-nav li {
		float: left;
		margin-left: -4px;
		margin-top:8px;
	}
	#social-nav a {
		display: block;
	}

	#top {background: url(images/bg-head2.png) no-repeat -120px top;}
	#top-logo {
position:absolute;
	width: 150px;
	height: 50px;
	background:url(images/logo2.png) no-repeat;	top: 0px;
	left: 45px;
}

	.post-title {
		padding-right: 44px;
		position: relative;
	}
	.post-title sup {
		position: absolute;
		top: 8px;
		right: 0;
		z-index: 3;
	}
}
/* iphone landscape */
@media screen and (max-width: 480px) {
	html {
		-webkit-text-size-adjust: 100%;
	}
		#body {
		width: auto;
		padding-left: 0;
		padding-top: 40px;
		clear: both;
	}
	#pagewrap {
		max-width: 92%;
	}
	.ad, .banners {
		display: none !important;
	}
	/* reset post nav to block */
	.post-nav li {
		float: none;
		width: 92%;
	}
#content{padding-top:40px}
	#main-nav {
		position: relative; top:-30px; left:-30px;
		z-index: 10000;
		display:inline;
		padding-bottom:30px;
	}
	
	#social-nav {
		position:absolute;
		top:94px;
		left: 308px;
		z-index: 1001;
	}
	#social-nav li {
		float: left;
		margin-left: -5px;
		margin-top:8px;
	}
	#social-nav a {
		display: block;
		width:39px;
	}
	/* hide footer section */
	#footer section {
		display: none;
	}
	#footer .credits {
		display: block;
	}
	#footer .credits .sponsor {
		display: none;
	}
}
/* iphone portrait */
@media screen and (max-width: 320px) {
	#main-nav ul {
		position:absolute;
		top:170px;
		left:-14px;
		z-index: 100010;
	}
	#main-nav a {
		background: none;
		padding: 0; margin:0;
		margin-right: -10px;
	}
	
		#social-nav a {
		display: block;}
	#social-nav {
		position:absolute;
		top:170px;
		left: 80px;
		z-index: 1001;
	}
	
	.post-title {
		padding-right: 76px;
		font-size: 30px;
	}
	.single .post-title {
		padding-right: 44px;
	}
	.post-title sup {
		top: -4px;
		right: -10px;
	}
	.single .post-title sup {
		right: -4px;
	}
	.post-image {
		position: absolute;
		top: 2px;
		right: 0;
	}
	.post-image img {
		width: 60px;
		height: auto;
		padding: 3px;
	}
	.ie8 .post-image img {
		min-width: 60px;
	}
	.post-meta {
		margin: 0 0 10px;
	}
	.commentlist .avatar {
		width: 45px !important;
		height: 45px !important;
		-webkit-background-size: 45px 45px;
		-moz-background-size: 45px 45px;
		-o-background-size: 45px 45px;
		background-size: 45px 45px;
		margin-top: -5px;
	}
	/* featured tabs */
	.featured-posts li {
		display: block;
		width: auto;
		margin: 0;
		padding: 0;
		text-align: left;
	}
	.featured-posts img {
		width: 50px;
		float: left;
		margin: 0 5% 5% 0;
	}
	.featured-posts h2 {
		margin: 0 0 4px;
		padding-top: 10px;
	}
	.all-posts li {
		padding: 5px 65px 6px 28px;
	}
	.all-posts h2 {
		font-size: 100%;
		margin: 0 0;
	}
	.all-posts p {
		font-size: 70%;
		width: 60px;
		top: 5px;
	}
	.all-posts p span {
		font-size: 140%;
		margin: 0;
	}
}

ul.yiiPager{display:block; border:none;}
ul.yiiPager .selected a {
background:none;
color:#FFFFFF;
font-weight:bold; border:none;
}	

ul.yiiPager .page a{ font-size:14px;text-decoration:none; height:30px}

ul.yiiPager a:link, ul.yiiPager a, ul.yiiPager a:link, ul.yiiPager a:visited { 
border:0; 
line-height:1.0; 
text-decoration:none; 
height:30px;
display:inline-block;
padding:0 10px 0 0px; 
margin:0; 
width:20px}

ul.yiiPager li.previous
{ 
background:url(images/previous_s_off.png); 
background-position:2px -2px; 
background-repeat:no-repeat;
z-index:10006;
display:inline-block; 
width:40px; 
padding-left:16px;
}
 
ul.yiiPager li.previous:hover
{ 
background:url(images/previous_s_on.png) 0 0 no-repeat; 
height:30px;
}
.pager
{
    float: right;
}
.pager li
{
    float: left;
}
.pager .first, .pager .last
{
    display: none;
}
.pager li.next
{ 
 background:url(images/next_s_off.png); 
background-position:9px -2px; 
background-repeat:no-repeat; display:inline-block; width:25px; padding-right:16px;
position:relative;
}
.pager .next:hover
{ 
background:url(images/next_s_on.png); 
background-position:9px -2px; 
background-repeat:no-repeat;
}
ul.yiiPager a, ul.yiiPager a:link, ul.yiiPager a:visited {color:#fff; font-weight:bold;text-shadow: #444 1px 1px 2px, #d1f6fa 0 0 1em;}
ul.yiiPager a:visited {color:#fff; border:none;}
ul.yiiPager a:hover{color:#fcc72c;text-shadow: #000 1px 1px 2px, #d1f6fa 0 0 1em;}
ul.yiiPager .selected a:hover, li.page.selected, li.page.selected:hover, li.page.selected:visited{color:#fff;}
ul.yiiPager .selected a, ul.yiiPager .selected a:hover, ul.yiiPager .selected a:visited
{
color:#45757a;
text-shadow: #d0f5f9 1px 1px 2px, #a9ced2 0 0 1em;
}
#category-menu a, #category-menu a:visited{color:#fff;}

h1 .post-title a
{
    color:#FFFFFF}
h1 .post-title a:hover{color:#FFFFFF; text-decoration:underline}

.comment{ position:relative; z-index:10002;
background:url("images/line.gif");  background-position:0 0; background-repeat:repeat-x; margin-bottom:-10px}
.commentwrap{background:url("images/line.gif");  background-position:0 0; background-repeat:repeat-x;}
article.post nav{margin-top:-10px 0 -20px 10px}

.post-comments
{
    float:right;
    height:40px;
}
.napisat_commentariy
{
    float:left;
    background:url(images/pencil_off.png)  no-repeat;
    width:30px;
    height:40px;
}
.napisat_commentariy:hover
{
    background-image:url(images/pencil_on.png);
}
.napisat_commentariy img
{
    width:30px;
    height:40px;
}
.comments-count
{
    position:relative;
    float:right;
	background:url(images/comment_off.png) no-repeat;
    width:60px;
    height:40px;
}
.comments-count:hover
{
    background:url(images/comment_on.png) no-repeat;
}
.comments-count img
{
    position:absolute;
    left:0;
    top:0;
    width:60px;
    height:40px;
}
.comments-count span
{
    display:block;
    position:absolute;
    left:0;
    top:6px;
    width:40px;
    font-size:14px;
    text-align:center;
}

ul.yiiPager li.previous.hidden,ul.yiiPager li.previous.hidden:hover,ul.yiiPager li.next.hidden,ul.yiiPager li.next.hidden:hover{ display:none; background:none}

img.noborder
{
    border:0;
    padding:0;
}
.blog-posts header
{
    margin-bottom: 20px;
    color:#fff;
}
.blog-posts header h1
{ 
    margin:0;
    padding:0;
    color:#fff;
}

footer div div sup span.comments-count.visible {
}
.caps {
	text-transform:uppercase;
}
section ul li.category-1 a:hover,
section ul li.category-2 a:hover,
section ul li.category-3 a:hover,
section ul li.category-9 a:hover,
section ul li.category-4 a:hover,
section ul li.category-5 a:hover,
section ul li.category-6 a:hover,
section ul li.category-7 a:hover,
section ul li.category-8 a:hover,
section.blog-tags div#blog-tags span.tagscloud {
	background:none;
	}
#category-menu a:hover{color:#21656b;}
.pzone { clear:both; padding-top:12px; }
.pzone .shareitem { float: left; padding: 8px 8px; }

#share42 {
    display:block;
    text-align:center;
    padding: 0px 16px;;
}
#share42 a {opacity: 0.7;}
#share42 a:hover {opacity: 1}

#site-banner {
	padding-left: 4px;
}

table.lines, table.lines td, table.lines th
{
	border:solid 0px #ccc;
}
table.lines
{
	border-spacing:0px;
	border-right-width:1px;
	border-top-width:1px;
}
table.lines td, table.lines th
{
	border-left-width:1px;
	border-bottom-width:1px;
    padding-top: 4px;
    padding-bottom: 4px;
}
table.lines thead td, table.lines thead th
{
    font-weight: normal;
	font-size: 80%;
	background:#eee;
}
table.lines.nowrap td:first-child
{
    white-space: nowrap;
}

.hintbutton {
	display: inline-block;
	position: relative;
	z-index: 1;
	margin-left: 20px;
	margin-right: 20px;
	height: 40px;
	font-family: pt-bold;
	font-weight: bold;
	font-size: 16px;
	line-height: 40px;
	text-transform:uppercase;
    text-decoration: none;
    background: url(images/hint-button.png) 0px -40px repeat-x;
}
.hintbutton:before, .hintbutton:after {
	content: '';
	display: block;
	position: absolute;
	z-index: -1;
	height: 40px;
	width: 20px;
	top: 0px;
    background: url(images/hint-button.png) no-repeat;
}
.hintbutton:before {
	left: -20px;
	background-position: 0px 0px;
}
.hintbutton:after {
	right: -20px;
	background-position: 0px -80px;
}
a.hintbutton {
	color: #777;
}
a.hintbutton:hover {
	color: gold;
}

