/* start reset css */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: top;
	margin: 0;
	padding: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

html,
textarea {
	overflow: auto;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 1;
}


img {
	vertical-align: middle;
}

:focus {
	outline: none;
}

a {

	text-decoration: underline;

	font-family: 'PT Sans', sans-serif;

}

a:hover {
	text-decoration: underline;
}

input {

	border: none;

	padding: 0;

}



/* end reset css */





body {

	font-family: 'PT Sans', sans-serif;
	font-size: 16px;
	line-height: 18px;
	color: #252525;
	min-width: 960px;
}



.fix-width {

	width: 960px;

	margin: 0 auto;

	position: relative;

}



#header .fix-width {

	height: 100%;

}



#header {

	height: 350px;

	background: url(http://2fres.ru/media/images/header-bg.jpg) no-repeat bottom;

	padding: 30px 0 0;

	-webkit-background-size: cover;

	background-size: cover;

}



.logo {

	background: url(http://2fres.ru/media/images/logo.png) no-repeat;

	width: 368px;

	height: 133px;

	margin: 0 0 0 30px;

}



.logo a {

	display: block;

	width: 100%;

	height: 100%;

	text-indent: -9999px;

}



.callback-btn {
	position: absolute;
	right: 0;
	bottom: 10px;
	font-size: 18px;
	font-weight: bold;
	line-height: 45px;
	text-decoration: none;
	background-color: #D53035;
	border-radius: 5px;
	padding: 0 30px;
	color: #FFF;
}

.callback-btn:hover {
	background-color: #e55256
}



.callback-btn:hover {

	text-decoration: none;

}



#footer {

	background-color: #E9E9E9;

	padding: 20px 0;

}



#content {
	overflow: hidden;
	padding: 25px 0;
	box-shadow: 0 0 30px;

}



.sidebar {
	float: left;
	width: 215px;
	background-color: #F3EFE6;
	box-shadow: 0 0 10px;
}



.sidebar li {

	border-top: 1px solid #B9B9B9;

}



.sidebar li:first-child {

	border: none;

}



.sidebar li a {
	font-size: 14px;
	color: #252525;
	display: block;
	line-height: 20px;
	padding: 10px 10px 10px 30px;
	text-decoration: none;
	font-weight: bold;
}

.sidebar li.active a {
	cursor: text;
}

.sidebar li a:hover,
.sidebar li.active {
	background-color: #D6AB7D;
}


.content {
	width: 705px;
	float: right;
}

.content h1 {
	font-size: 33px;
	font-weight: bold;
	margin-bottom: 0.3em;
	line-height: 1.3em;
}


.image-holder {

	margin: 0 0 20px;

}



.image-holder img {

	margin: 0 0 0 13px;

	display: inline-block;

}



.image-holder img:first-child {

	margin: 0;

}



.main-menu {
	position: absolute;
	left: 0;
	bottom: 0;
	overflow: hidden;
	background: url(http://2fres.ru/media/images/menu.png) repeat-x;
	/*width:471px;*/

}



.main-menu li {
	float: left;
	padding: 0 30px;
	background: url(http://2fres.ru/media/images/separator.jpg) no-repeat;
}

.main-menu li.active {
	background-color: rgba(255, 255, 255, 0.5);
	cursor: text;
}


.main-menu li:first-child {

	background: none;

}



.main-menu li a {

	font-weight: bold;

	font-size: 18px;

	color: #252525;

	line-height: 55px;

	display: block;

	text-decoration: none;

}



.contact {

	position: absolute;

	right: 0;

	top: 0;

	background: url(http://2fres.ru/media/images/contact.png) no-repeat;

	width: 173px;

	height: 80px;

	padding: 10px 0 0 20px;

}



.contact p {

	font-size: 17px;

	line-height: 23px;

	font-weight: bold;

	padding: 0;

}



.contact a {

	font-size: 16px;

	line-height: 22px;

	color: #2b6a98;

	text-decoration: underline;

}



h2 {

	font-size: 25px;

	line-height: 1.3em;

	padding: 0 0 5px;

	font-weight: bold;

}



h3 {

	font-size: 24px;

	line-height: 28px;

	padding: 0 0 15px;

}



p {

	padding: 0 0 20px;

}

.table {
	margin-bottom: 20px;
}

.table td p {
	margin: 0;
	padding: 0;
}

.table tr td {
	border: 2px solid #000;
	padding: 10px;
}

.table tr:hover {
	background-color: #f1f1f1
}

.table thead tr td {
	font-weight: bold;
	background-color: #ccc;
	padding: 10px;
}

.galleryOuter li,
#myGallery li {
	float: left;
	margin: 5px;
	width: 200px;
	height: 230px;
}

.galleryOuter li h3,
#myGallery li h3 {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}

.galleryOuter li img,
#myGallery li img {
	padding: 3px;
	border-radius: 5px;
	border: 1px solid #ccc
}

.B_crumbBox {
	padding: 3px;
	background-color: #f1f1f1;
	display: block;
}

.B_crumbBox span,
.B_crumbBox a {
	font-size: 12px;
	font-weight: bold;
}

input {
	width: 300px;
	border: 1px solid #ccc;
	font-size: 20px;
}

textarea {
	font-family: 'PT Sans', sans-serif;
	font-size: 14px;
}

a.fancy img {
	padding: 3px;
	border: 1px solid #e1e1e1;
	border-radius: 5px;
}



.projects-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px;
	box-sizing: border-box;
}

.project-item {
	flex: 1 1 calc(33.333% - 20px);
	/* 3 в ряд на десктопе */
	min-width: 280px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-sizing: border-box;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Планшеты: 2 в ряд */
@media (max-width: 1024px) {
	.project-item {
		flex: 1 1 calc(50% - 20px);
	}
}

/* Мобильные: 1 в ряд */
@media (max-width: 768px) {
	.project-item {
		flex: 1 1 100%;
	}
}