@media only screen and (max-width: 768px) {

.wrapper {
	padding:0 15px;
}

#servicesPage .column,
form
{
	padding-left: 5%;
}

#side, 
h1,
h2,
h3,
p,
#servicesPage #base .subColumn,
.contactsList,
form
{
	padding-left: 5%;
	padding-right: 5%;

}

ul {
	margin-left: 5%;
}



/* Header part */

#menuButton {
	display: block;
}

#header .contacts {
	display: none;
}

#header .wrapper {
	padding: 15px;
}

.logoHolder {
	width:170px;
	float: none;
	margin: 0 auto;
}

#logo {
	max-height: 2.8em;
}

#menu {
	display:none;
	padding: 1.5em 0;
}

#menu ul {
	width: 40%;
	border-right: 1px solid rgb(128, 134, 168);
	margin-right:-1px;
}

#menu ul li {
	display:block;
	margin-right:0;
}

#menu ul li.active {
	border-bottom: none;
	background-color: rgba(255,255,255,0.1);
}

#menu ul li a {
	text-align: left;
	line-height: 1.2em;
	padding-left: 1em;
	border-bottom: 1px solid rgb(128, 134, 168);
}
#menu ul li a:hover {
	background-color: #505580;
}
#menu .button {
	clear:left;
	margin-top: 0.5em;
}

#menu .menuContacts {
	width: 60%;
	padding-left: 3%;
	border-left: 1px solid rgb(128, 134, 168);
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

#menu .menuContacts .phone {
	margin-right:1em;
}

#menu .menuContacts a {
	display: block;
	float:left;
	margin-bottom:0.5em;
}

#menu .menuContacts .contactButton {
	margin-top: 0.5em;
	color: #fff !important;
	box-shadow: 0 4px 0px rgb(60,64,96);
}



/* Footer part */

#footer .menu {
	width:100%;
	text-align:center;
	padding-bottom:1em;
	border-bottom:1px solid rgb(128, 134, 168);
	float:none;
	margin-bottom:1em;
}

#footer ul li a {
	padding:0.5em;
}

#footer .contacts {
	float:none;
	width:100%;
	margin:0 auto 2em;
	text-align:center;
}

#footer .contacts span {
	float:none;
	display:inline-block;
}

#footer .contacts a {
	float:none;
	display:inline-block;
}

#footer .contacts .phone {
	margin-right:2em;
}

#footer .copyright {
	text-align:center;
}



/* Lightbox part */

#lightbox form,
#lightbox h2,
#lightbox .contacts,
#lightbox_success h2,
.successMessage {
	padding-left: 60px;
	padding-right: 60px
}

.f-field input[type="text"],
.f-field input[type="email"],
.f-field input[type="tel"],
.f-field select,
.f-field .jq-selectbox-wrapper {
	width:60%;
}


/* Main content part */

/* Every page */

#base {
	padding-top: 3em;
}
#subContent {
	padding-top: 3em;
}
#base h1 {
	margin-bottom:1em;
}


/* Index page */

#mainSpot h1 {
	font-size: 1.8em;
	max-width: 360px;
	margin-left: 35%;
	padding: 0.3em 10px;
	margin-top: 30px;
}

#mainSpot img {
	left: -40px;
}
#mainSpot .linksHolder {
	display: block;
	width:65%;
	padding:0;
	margin-left:35%;
	margin-right: 10px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

#mainSpot .linksHolder div {
	overflow:auto;
	padding: 0.5em 10px;
	border-bottom: 2px solid #dadada;
	border-top: 2px solid #dadada;
}

#mainSpot .categoryLink {
	display:inline-block;
	padding: 0.5em 0 0.5em 1.2em;
	margin-right: 30px;
	color: #505580;
	background-position:left center;
	background-image: url(../img/arrow.png);
	background-size: 10px;
	background-repeat: no-repeat;}

#mainSpot .linksHolder {
	margin-bottom: 2em;
}

#mainSpot .button {
	width: 200px;
	margin-top: 1em;
	margin-left:10px;
}

#indexColumn {
	display: none;
}

#indexPage #main {
	width:100%;
}

/* Services page */

#servicesPage #base .column {
	width:50%;
}

#servicesPage #base .subColumn {
	width: 100%;
	padding-top: 1.5em;
	border-top: 3px solid #dadada;
	border-left: none;
}



/* Profile page */

#profilePage .intro, #profilePage .mainInfo {
	float:none;
	width:100%;
}

#profilePage .photoHolder {
	float:none;
	width:100%;
	margin:1em 0 1.5em;
	border-radius: 0;
}

#profilePage .photoHolder img {
	margin:-28% 0 -63% 0;
}



/* Contacts page */

#contactsPage #base form {
    width: auto;
    float: none;
	margin-right: 0;
}

#contactsPage .contactsList {
    width: 100%;
    float: none;
	padding-top: 1em;
	padding-bottom: 0.5em;
    margin: 0 0 2em 0;
	border-top: 1px dashed #dadada;
	border-bottom: 1px dashed #dadada;
}

#contactsPage  .contactsList li {
	width: 50%;
	margin-right:-3px;
	display:inline-block;
	vertical-align:top;
}



/* Service group part*/

#serviceGroupPage .subColumn {
	margin-left:-2px;
	width: 35%;
}

#serviceGroupPage #priceContent {
	border-right: 2px solid #dadada;
}
#serviceGroupPage .subColumn h2 {
	padding-left:0;
	font-size: 1.3em;
}

#serviceGroupPage .serviceCell, #serviceGroupPage thead td, #serviceGroupPage tfoot td {
	padding-left:8%;
}



/*articlePage*/

#articlePage #main {
	width: 100%;
	float:none;
	padding-bottom: 2em;
}

#articlePage .subColumn {
	width: 100%;
	border-top: 3px solid #dadada;
}

#articlePage #side {
	max-width: none;
}

.floating {
	position: static !important;
}

}