/*
#------------------------------------------------------------------------
# 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
*/

body {
	background-color: #fff!important;
	background-image: none!important;
}
/* Containers */
#p2PageContent {
	background-image: none!important;
}
#p2Content, 
#p2Sidebar,
#p2Inset,
#p2ContentWrap {
	width: 100% !important;
}
#p2ContentWrap {
	margin-top: 20px;
	padding: 0!important;
}
#p2BannerTop {
	display: none;
}
#p2Inset .box,
#p2Sidebar .box {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 10px!important;
}
#p2Inset,
#p2Sidebar {
	padding: 0!important;
}
#p2Inset .box:first-child, 
#p2Sidebar .box:first-child {
	padding-top: 10px!important;
}
#p2Inset.p2OnlyMenu {
	display: none;
}
#p2Inset .box,
#p2Sidebar .box {
	border-top: none!important;
	float: left;
	margin-top: 0!important;
	margin-bottom: 30px!important;
	width: 50%;
}
#p2Sidebar.p2OnlyOne .box,
#p2Inset.p2OnlyOne .box {
	width: 100%!important;
}

#p2Sidebar .box:nth-child(2n+1) {
	clear: both!important;
}

#p2Content #p2Inset {
	clear: both;
	width: 100%!important;
}

#p2Inset .box,
#p2Inset .box.light,
#p2Inset .box.pattern {
	float: left;
	margin: 0 0 30px 0!important;
	width: 50%;
}

/* Limitation suffixes */
.box.onlydesktop {
	display: none!important;
}

.box.notablet {
	display: none!important;
}
.box.nomobile {
	display: block!important;
}
.box.onlytablet {
	display: block!important;
}
.box.onlymobile {
	display: none!important;
}
.box.notablet.nomobile {
	display: none!important;
}

/* Fix for the contact page */
.contact .contact-image {
	float: left !important;
}
.contact .contact-address {
	clear: both !important;
	padding-top: 20px !important;
}
.contact .contact-form input[type="text"],
.contact .contact-form input[type="email"],
.contact .contact-form textarea {
	width: 100% !important;
}

/* K2 edit popup */
#sbox-window,
#sbox-window iframe {
	width: 720px!important;
	max-width: 720px!important;
	left: 10px!important;
}

/* menu */
#p2MobileMenu {
	background: transparent url('../images/style1/tablet_menu.png') no-repeat 0 0;
	margin: 0;
	position: relative;
}
#p2ExtraMenu {
	display: none!important;
}
#p2MainMenu {
	border: none!important;
	clear: none!important;
	float: left;
	text-indent: 15px;
	width: 64px!important;
}
#p2MobileMenu select {
	width: 52px;
	height: 52px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
	position: absolute;
	left: 0;
	top: 0;
}
#p2MobileMenu {
	display: block!important;
	font-size: 18px;
	height: 52px;
	line-height: 52px;
	position: relative;
	width: 52px;
	text-indent: -9999px;
}

/* top/bottom modules */

/* 4-column layout */
body .p2Cols4 .box {
	margin-bottom: 30px!important;
}
body .p2Cols4 .box.p2mod-1 {
	width: 100%;	
}
body .p2Cols4 .box.p2mod-2 {
	width: 50%;
}
body .p2Cols4 .box.p2mod-3 {
	width: 50%;
}
body .p2Cols4 .box.p2mod-4,
body .p2Cols4 .box.p2mod-more {
	width: 50%;
}
body .p2Cols4 .box:nth-child(2n+1) {
	clear: both;
}
body .p2Cols4 .box.p2mod-more.p2mod-last-1:last-child {
	width: 100%!important;
}
body .p2Cols4 .box.p2mod-more.p2mod-last-2:last-child,
body .p2Cols4 .box.p2mod-more.p2mod-last-2:nth-last-child(2) {
	width: 50%!important;
}
body .p2Cols4 .box.p2mod-more.p2mod-last-3:last-child,
body .p2Cols4 .box.p2mod-more.p2mod-last-3:nth-last-child(2),
body .p2Cols4 .box.p2mod-more.p2mod-last-3:nth-last-child(3) {
	width: 50%!important;
}

/* 6-column layout */
body .p2Cols6 .box {
	margin-bottom: 30px!important;
}
body .p2Cols6 .box.p2mod-1 {
	width: 100%;	
}
body .p2Cols6 .box.p2mod-2 {
	width: 50%;
}
body .p2Cols6 .box.p2mod-3 {
	width: 33.3%;
}
body .p2Cols6 .box.p2mod-4,
body .p2Cols6 .box.p2mod-more {
	width: 33.3%;
}
body .p2Cols6 .box.p2mod-5,
body .p2Cols6 .box.p2mod-more {
	width: 33.3%;
}
body .p2Cols6 .box.p2mod-6,
body .p2Cols6 .box.p2mod-more {
	width: 33.3%;
}
body .p2Cols6 .box:nth-child(3n+1) {
	clear: both;
}
body .p2Cols6 .box.p2mod-more.p2mod-last-1:last-child {
	width: 100%!important;
}
body .p2Cols6 .box.p2mod-more.p2mod-last-2:last-child,
body .p2Cols6 .box.p2mod-more.p2mod-last-2:nth-last-child(2) {
	width: 50%!important;
}
body .p2Cols6 .box.p2mod-more.p2mod-last-3:last-child,
body .p2Cols6 .box.p2mod-more.p2mod-last-3:nth-last-child(2),
body .p2Cols6 .box.p2mod-more.p2mod-last-3:nth-last-child(3) {
	width: 33.3%!important;
}
body .p2Cols6 .box.p2mod-more.p2mod-last-4:last-child,
body .p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(2),
body .p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(3),
body .p2Cols6 .box.p2mod-more.p2mod-last-4:nth-last-child(4) {
	width: 33.3%!important;
}
body .p2Cols6 .box.p2mod-more.p2mod-last-5:last-child,
body .p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(2),
body .p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(3),
body .p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(4),
body .p2Cols6 .box.p2mod-more.p2mod-last-5:nth-last-child(5) {
	width: 33.3%!important;
}

/* Suffixes and other elements */

/* Page elements */
h1 {
	font-size: 36px;
}