/*
#------------------------------------------------------------------------
# p220 - Joomla 3.1 template for p220.ru based on Gavern Platform
#
# Copyright (C) 2010-2013 Ninedesign.ru. All Rights Reserved.
# Website: http://www.ninedesign.ru
# Support: support@ninedesign.ru
*/
 
/* Base elements and classes */
html {
	border-bottom: 1px solid transparent;
	min-height: 100%;
}
body > div > footer,
body > div > header,
body > div > section,
body > footer,
body > header,
body > section {
	/* class used in the full template-width containers */
	clear: both;
	margin: 0 auto;
}
section#p2PageTop {
	overflow: visible; /* Necessary to make menu working */
	width: 100%; /* Necessary to achieve full background width */
	/*background:#F5F5F5;*/
	/*background-image: url('../images/tbg.jpg'); 
	background-repeat:repeat-x;*/
}
#p2Top1,
#p2Top2,
#p2Bottom1,
#p2Bottom2 {
	/* Positions blocks -clearing */
	clear: both;
}

#p2Top1,
#p2Top2 {
	overflow: hidden;
}

#p2Top1 + #p2Breadcrumb,
#p2Top2 + #p2Breadcrumb {
	border-top: 1px solid #e5e5e5;
	margin-top: 0;
}

/* clearfix */
#p2PageContent::after,
#p2Content::after,
#p2Sidebar::after,
footer::after,
header::after,
section::after,
aside::after,
article::after,
.box::after,
.itemSocialSharing::after,
#p2TopMenu::after,
article header ul::after,
#p2Top1 > div::after,
#p2Top2 > div::after {
	clear: both;
	content: "";
	display: table;
}

/* Columns */
section#p2Content,
section#p2ComponentWrap,
aside#p2Sidebar {
	/* Main columns */
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	float: left;
}
#p2Inset {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	float: right;
	padding: 10px 0 0 50px;
}
#p2Sidebar {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	padding-left: 25px;
}
#p2Sidebar > div {
	/*border-top: 1px solid #e5e5e5;*/
	padding-top: 10px;
}

#p2Content.p2ColumnLeft {
	float: right;
}
#p2Content.p2ColumnLeft + #p2Inset {
	float: left;
	padding-left: 0;
	padding-right: 25px;
}
#p2ContentWrap {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	float: left;
	padding: 0 25px;
}
#p2ContentWrap > section:first-child {
	/*border-top: 1px solid #e5e5e5;*/
	padding-top:  5px;
}

#p2ContentWrap + #p2Sidebar {
	float: left;
	padding-left: 25px;
}
#p2ContentWrap.p2SidebarLeft {
	float: right;
}
#p2ContentWrap.p2SidebarLeft + #p2Sidebar {
	float: left;
	padding-left: 0;
	padding-right: 25px;
}

#p2MainbodyTop .box,
#p2MainbodyBottom .box {
	padding-left: 0;
	padding-right: 0;
}

#p2Mainbody .box {
	padding-left: 0!important;
	padding-right: 0!important;
	width: 100%;
}

#p2MainbodyTop + #p2Mainbody {
	/*border-top: 1px solid #e5e5e5;
	margin-top: 50px;
	padding-top: 25px;*/
}

#p2Mainbody + #p2MainbodyBottom {
	border-top: 1px solid #e5e5e5;
	/*margin-top: 50px;
	padding-top: 25px;*/
}

/* Module groups */
#p2Top1 > div,
#p2Top2 > div {
	margin: 0 -10px;
}

#p2Top1 .box,
#p2Top2 .box,
#p2Bottom1 .box,
#p2Bottom2 .box {
	/* Columns in the positions blocks */
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	float: left;
}
/* Joomla columns */
.cols-2 .column-1,
.cols-2 .column-2 {
	width: 50%;
}
.cols-3 .column-1,
.cols-3 .column-2,
.cols-3 .column-3 {
	float: left;
	width: 33.3%;
}
.column-1,
.column-2,
.column-3 {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	float: left;
}
/*
Layout calculations
 */
#p2Mainbody .box {
	margin-bottom: 30px;
} 

/* base spaces */
body > footer:first-child,
body > header:first-child,
body > section:first-child,
section#p2Page > section:first-child,
section#p2Content > section:first-child,
section#p2ComponentWrap > section:first-child {
	margin-top: 0;
}
/* Joomla columns */
.cols-2 .column-1,
.cols-3 .column-1 {
	padding-right: 10px;
}
.cols-2 .column-2,
.cols-3 .column-3 {
	padding-left: 10px;
}
.cols-3 .column-2 {
	padding-left: 10px;
	padding-right: 10px;
}
/* top/bottom modules */

/* 3-column layout */
.p2Cols3 .box.p2mod-1,
.p2Cols3 .box.p2mod-2,
.p2Cols3 .box.p2mod-3,
.p2Cols3 .box.p2mod-more {
	float: left;
	padding: 0 10px;	
}
.p2Cols3 .box.p2mod-1 {
	width: 100%;	
}
.p2Cols3 .box.p2mod-2 {
	width: 50%;
}
.p2Cols3 .box.p2mod-3,
.p2Cols3 .box.p2mod-more {
	width: 33.3%;
}
.p2Cols3 .box.p2mod-more:nth-child(3n+1) {
	clear: both;
}
.p2Cols3 .box.p2mod-more.p2mod-last-1:last-child {
	width: 100%!important;
}
.p2Cols3 .box.p2mod-more.p2mod-last-2:last-child,
.p2Cols3 .box.p2mod-more.p2mod-last-2:nth-last-child(2) {
	width: 50%!important;
}

/* 4-column layout */
.p2Cols4 .box.p2mod-1,
.p2Cols4 .box.p2mod-2,
.p2Cols4 .box.p2mod-3,
.p2Cols4 .box.p2mod-4,
.p2Cols4 .box.p2mod-more {
	float: left;
	padding: 0 10px;	
}
.p2Cols4 .box.p2mod-1 {
	width: 100%;	
}
.p2Cols4 .box.p2mod-2 {
	width: 50%;
}
.p2Cols4 .box.p2mod-3 {
	width: 33.3%;
}
.p2Cols4 .box.p2mod-4,
.p2Cols4 .box.p2mod-more {
	width: 25%;
}
.p2Cols4 .box.p2mod-more:nth-child(4n+1) {
	clear: both;
}
.p2Cols4 .box.p2mod-more.p2mod-last-1:last-child {
	width: 100%!important;
}
.p2Cols4 .box.p2mod-more.p2mod-last-2:last-child,
.p2Cols4 .box.p2mod-more.p2mod-last-2:nth-last-child(2) {
	width: 50%!important;
}
.p2Cols4 .box.p2mod-more.p2mod-last-3:last-child,
.p2Cols4 .box.p2mod-more.p2mod-last-3:nth-last-child(2),
.p2Cols4 .box.p2mod-more.p2mod-last-3:nth-last-child(3) {
	width: 33.3%!important;
}

/* 6-column layout */
.p2Cols6 .box.p2mod-1,
.p2Cols6 .box.p2mod-2,
.p2Cols6 .box.p2mod-3,
.p2Cols6 .box.p2mod-4,
.p2Cols6 .box.p2mod-5,
.p2Cols6 .box.p2mod-6,
.p2Cols6 .box.p2mod-more {
	float: left;
	padding: 0 10px;	
}
.p2Cols6 .box.p2mod-1 {
	width: 100%;	
}
.p2Cols6 .box.p2mod-2 {
	width: 50%;
}
.p2Cols6 .box.p2mod-3 {
	width: 33.3%;
}
.p2Cols6 .box.p2mod-4,
.p2Cols6 .box.p2mod-more {
	width: 25%;
}
.p2Cols6 .box.p2mod-5,
.p2Cols6 .box.p2mod-more {
	width: 20%;
}
.p2Cols6 .box.p2mod-6,
.p2Cols6 .box.p2mod-more {
	width: 16.66%;
}
.p2Cols6 .box.p2mod-more:nth-child(6n+1) {
	clear: both;
}
.p2Cols6 .box.p2mod-more.p2mod-last-1:last-child {
	width: 100%!important;
}
.p2Cols6 .box.p2mod-more.p2mod-last-2:last-child,
.p2Cols6 .box.p2mod-more.p2mod-last-2:nth-last-child(2) {
	width: 50%!important;
}
.p2Cols6 .box.p2mod-more.p2mod-last-3:last-child,
.p2Cols6 .box.p2mod-more.p2mod-last-3:nth-last-child(2),
.p2Cols6 .box.p2mod-more.p2mod-last-3:nth-last-child(3) {
	width: 33.3%!important;
}
.p2Cols6 .box.p2mod-more.p2mod-last-4:last-child,
.p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(2),
.p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(3),
.p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(4) {
	width: 20%!important;
}
.p2Cols6 .box.p2mod-more.p2mod-last-5:last-child,
.p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(2),
.p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(3),
.p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(4),
.p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(5) {
	width: 16.66%!important;
}