/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS and IE text size adjust after device orientation change,
 *    without disabling user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

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

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability of focused elements when they are also in an
 * active/hover state.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  box-sizing: content-box; /* 2 */
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

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

td,
th {
  padding: 0;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
	max-width: 100%;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}



.row {
	margin-left:-20px
}
.row:before, .row:after {
	display:table;
	line-height:0;
	content:""
}
.row:after {
	clear:both
}
[class*="span"] {
	float:left;
	min-height:1px;
	margin-left:20px
}

.span1 {width: 40px;}
.span2 {width: 100px;}
.span3 {width: 160px;}
.span4 {width: 220px;}
.span5 {width: 280px;}
.span6 {width: 340px;}
.span7 {width: 400px;}
.span8 {width: 460px;}
.span9 {width: 520px;}
.span10 {width: 580px;}
.span11 {width: 640px;}
.span12 {width: 700px;}
.span13 {width: 760px;}
.span14 {width: 820px;}
.span15 {width: 880px;}
.span16 {width: 940px;}
.span17 {width: 1000px;}
.span18 {width: 1060px;}


body {
	color: #222;
	background: url(../img/bg.jpg) repeat 0 0 #f2f2f2;
	font-family: 'PT Sans', sans-serif;
	font-size: 14px;
	color: #707070;
}

a {
	transition: all 0.3s ease-in-out;
	color: #707070;
}
h1, h2, h3 {
	font-weight: 400;
}
h1 {
	font-size: 19px;
	margin: 0 auto;
	padding: 25px 0 15px;
	width: 260px;
}
h2 {
	width: 220px;
	text-align: center;
	font-size: 19px;
	text-transform: uppercase;
	border-bottom: 1px solid #747474;
	margin: 0 auto 70px;
	padding-bottom: 10px;
	line-height: 1;
	position: relative
}
	h2:after {
		content: '';
		background: url(../img/icos.png) no-repeat center 0;
		width: 44px;
		height: 20px;
		position: absolute;
		top: 45px;
		left: 50%;
		margin-left: -22px;
		display: block;
	}
#pics h2:after {
	background-position: center -30px;
	height: 28px;
}
#contacts h2:after {
	background-position: center -60px;
	height: 28px;
}
h3 {
	font-size: 22px;
	margin: 0 0 20px;
	text-align: center;
	position: relative;	
}
	h3:after {
		content: '';
		border-bottom: 1px solid #fff;
		width: 60px;
		height: 0;
		position: absolute;
		top: 40px;
		left: 50%;
		margin-left: -30px;
		display: block;
	}
p {
	margin: 0 0 10px;
}

.wrapper {
	margin: 0 auto;
	width: 1060px;
}

header {
	background: #eaeaea;
	padding-top: 58px;
	border-bottom: 1px solid #818181;
	font-size: 15px;
}
	.menu {
		text-align: right;
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.menu li {
		display: inline-block;
		margin: 0 0 0 30px;
	}
	.menu a {
		display: block;
		color: #707070;
		text-transform: uppercase;
		line-height: 30px;
		padding: 0 12px;
		text-decoration: none;
	}
		.menu a:hover, .menu .active a {
			color: #fff;
			background: #818181;
		}

.content {
	margin: 75px 0;
}

.main {
	background: url(../img/logo.jpg) no-repeat center center;
	height: 590px;
	border: 4px solid #fff;
	position: relative;
}
	.title {
		background: rgba(255, 255, 255, 0.95);
		width: 100%;
		min-height: 140px;
		margin-top: 190px;
		text-align: center;
	}
	.flogin {
		margin-top: 110px;
	}
	.icon {
		background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAQAAADYBBcfAAADMUlEQVQ4y3XVbWhWdRzG8Z9W84GJ6VpLncssdfMpp/kAEon0oIblnA/lbOWgpSX16YWaxIreGGSZERppyjBTDDdfOEylSBjiG5FpFEGa03Z7O7clSVpEsF7s3GNui/PqHP7XOef/u77X9Q+3tGhQrUKOuO2qsqnbk0HK7HJGi1uhzR82KrHVVdUe6lz0tiqv26Zvcp9jixa7rbDMdY2hwTPavCQMsFbKBn2Fjd4VwhK73CUs0uQ9Q4RirdY4GvaYb4ZW5UIYpt5B2erNFEKu7xRYr1GxEKZoUWmyL0OFrcI0LVYKoZ86++Q4Jl+uo8Za4xcjhfCwZhVClcow1GUDhKmarRDCQCetk++I44o8Jp3sfLK0F4Usl+WFsNMbyW9c9ZwQClzzoCITDdToaSFMlPaCEF51QIQwQsoDne9cJgT2J5YcEsIEac8LYZRW4zuEodI5Q5IFVywV+ksZJlur0UKRlOVCGOKc90VGGLY7bbgQivxmibDFa1Y5IhS6bIkQ7nNavayuwjyfazJdCIUuKTVNnTorjdOoJNnIJScyiHTIXvGDud500zb3CGP9qtQp18x30bNCtg/87WOznbU+I3zZR/rbZ5Hx6ty01zxTndes3UWLzfKpNifNMsNh2d6ySZ+wynZ9hDvsUC5MsNlP/nVDu3a3/KPRTrOFaY7K1vGpbWGmw7KEQerMEO612kEXXE+EP6tFgZDruELhTl8oC2GB3Qap84gC1a7ba55i513V7qISM22Rdsgkub4xxQELM8Mp86PpuJEMZ4wLFjvjr87hDFDlTx/Kd8Kcrnbk+KzTjnEalRrue8dus2O0BvUJKL0AkLF7rQ3KuwEw2KnbAah0LimOIk2WCn2dNVK2tm7IDe6K3Agpo4UwXiqBfJUdQninB+T5UhnIM7Ga4EoSq3xNRhlqQa+xKu2I1VCX9BMmSXcGucE6eb5Va24vQQ4n5YUKm4Up0l2q4yv3O65QllrTe6mOcpVhjzmKNXcrqwZjkmHU91JWd6sOZzzqWo96fEKNfsLj9svqUY+rHQhX/G6jEp90K+Qn1Vjo6w7XuhRymeUdhfz/R8BTajplPY6A/wBOy2MkcdxmLwAAAABJRU5ErkJggg==) no-repeat 0 0;
		width: 28px;
		height: 28px;
		margin: 0 auto;
	}

.block {
	margin-top: 80px;
}

.bordered {
	border: 4px solid #fff;
}




.name {
	font-size: 18px;
	border-bottom: 1px solid #cac8c7;
	display: inline-block;
	padding-bottom: 10px;
}
.contacts p {
	padding-left: 40px;
	position: relative;
	line-height: 22px;
}
	.contacts i {
		position: absolute;
		left: 9px;
		top: 0;
		width: 22px;
		height: 22px;
		display: inline-block;
		background-image: url(../img/icos.png);
		background-repeat: no-repeat;
	}
	.contacts .ico-phone {
		background-position: 0 -100px;
	}
	.contacts .ico-email {
		background-position: right -100px;
	}
	.contacts .ico-insta {
		background-position: 0 -125px;
	}
	.contacts .ico-fb {
		background-position: right -125px;
	}

@keyframes start {
				from {
					transform: scale(0);
				}
				to {
					transform: scale(1);
				}
			}

			
			@-webkit-keyframes start {
				from {
					-webkit-transform: scale(0);
				}
				to {
					-webkit-transform: scale(1);
				}
			}

.free-wall .brick {
	width: 340px;
}
.free-wall .brick[data-state="init"] {
	display: none;
}
.free-wall .brick[data-state="start"]  {
	display: block;
	animation: start 0.5s;
	-webkit-animation: start 0.5s;
}
.free-wall .brick[data-state="move"]  {
	transition: top 0.5s, left 0.5s, width 0.5s, height 0.5s;
	-webkit-transition: top 0.5s, left 0.5s, width 0.5s, height 0.5s;
}
.free-wall .box {
	display: block;
}
	.free-wall .brick img {
		-webkit-filter: grayscale(100%);
		-moz-filter: grayscale(100%);
		-ms-filter: grayscale(100%);
		-o-filter: grayscale(100%);
		filter: grayscale(100%);
		filter: url(../img/greyscale.svg#greyscale); /* Firefox 4+ */
		filter: gray; /* IE 6-9 */
		transition: all 0.3s ease-out;
	}
	.free-wall .brick:hover img {
		-webkit-filter: grayscale(0%);
		  -moz-filter: grayscale(0%);
		  -ms-filter: grayscale(0%);
		  -o-filter: grayscale(0%);
		  filter: none;
	}



#WebLoginLayer0 {
	margin: 30px auto 30px;
	display: inline-block;
}

.btn {
    background:#26A69A;
	color: #fff;
    font-size: 15px;
    line-height:36px;
    padding:0 20px;
    text-shadow: none;
    border:none;
	cursor: pointer;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16), 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
}
.btn:hover {
	background: #29B2A5;
}
    .btn-red {
        background:#E57373;
    }
	.btn-red:hover {
		background: #d96060;
	}
	.btn-grey {
		background: #ccc;
	}
	.btn-grey:hover {
		background: #bbb;
	}

footer {
	padding: 5px 0 10px;
	color: #bfbfbf;
}

table td {
	vertical-align: top;
}

label {
	line-height: 50px;
	color: rgba(0, 0, 0, 0.46);
}
input, textarea {
	border-width: 0 0 1px 0;
	border-bottom: 1px solid #9E9E9E;
	margin-bottom: 15px;
	transition: all 0.3s ease-in-out;
	height: 50px;
	color: #444;
	width: 100%;
	font-size: 1rem;
	background: transparent;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
    border-bottom: 1px solid #26A69A;
	box-shadow: 0px 1px 0px 0px #26A69A;
}

.contacts .nopadding {
	padding: 0;
}
.eform input[type='text'], .eform textarea {
	border: 1px solid #cac8c7;
	border-radius: 2px;
	background: #fff;
	padding: 0 10px;
	font-size: 14px;
	height: 28px;
	line-height: 28px;
	width: auto;
}
	.eform input:focus {
		border: 1px solid #bbb;
		box-shadow: 0px 0px 5px #ccc;
	}
	.eform .span4 input {
		width: 198px;
	}
.eform textarea {
	width: 438px;
	height: auto;
	line-height: 20px;
}
.tr {text-align:right}
.eform .btn {
	background: #898989;
	width:auto;
	display: inline-block;
	line-height: 30px;
	height: 30px;
}
	.eform .btn:hover {
		background: #aaa;
	}
.errors {
	background: rgba(198, 17, 17, 0.5);
	padding: 10px;
	border-radius: 2px;
	color: #fff;
	margin-bottom: 10px;
	font-size: 12px;
}


.editable[contenteditable="true"]:hover {
    background:rgb(248, 243, 181);
	box-shadow: 0 0 0 4px rgb(248, 243, 181);
    color:#505050;
    cursor: text;
}
.editable[contenteditable="true"]:focus {
    background: #fff;
    color:#505050;
    cursor: text;
    box-shadow: 0 0 0 4px rgb(248, 243, 181);
}
.alert {
	color: #fff;
	margin-top: 10px;
	position: relative;
	height: 48px;
	line-height: 48px;
	background-color: #323232;
	border-radius: 2px;
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16), 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
	padding: 0 20px;
}
.alert-info {
    background-color: #d9edf7;
    color: #3a87ad;
}
.alert-danger, .alert-error {
    color: #EE6E73;
}
.alert-success {
    color: #26A69A;
}

.yoyo {
    position:fixed;
    right:0;
    bottom:0;
    padding:10px;
	border-top: 2px solid #EE6E73;
	background: #fff;
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16), 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
}
    .yoyo .btn {
        font-size:14px;
        font-weight: 400;
        margin:0 5px 5px;
		display: inline-block;
    }


#dropZone, #holder {    
    color: #555;
    font-size: 18px;
    text-align: center;    
    min-height:100px;
    
    background: #eee;
    border: 1px solid #ccc;
	padding: 10px;

    border-radius: 2px;
}

#dropZone.hover {
    background: #ddd;
    border-color: #aaa;
}

#dropZone.error {
    background: #faa;
    border-color: #f00;
}

#dropZone.drop {
    background: #afa;
    border-color: #0f0;
}
#dropZone .brick {
	display: inline-block;
	width: 220px;
	vertical-align: top;
	margin: 0 5px 10px;
}
.info {
	font-size: 10px;
	margin: 0 30px 30px;
	display: none;
}
#dropZone .info {
	display: block;
}



#holder img { display: block; margin: 10px auto; }
#holder p { margin: 10px; font-size: 14px; }
progress { width: 100%; }
progress:after { content: '%'; }
.fail { background: #c00; padding: 2px; color: #fff; }
.hidden { display: none !important;}



/* IMAGE LIGHTBOX SELECTOR */

#imagelightbox {
			cursor: pointer;
			position: absolute;
			z-index: 10000;
			max-width: 1060px;
			-ms-touch-action: none;
			touch-action: none;
			border: 4px solid #707070;
			left: 50%;
			-webkit-box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); /* 50 */
			box-shadow: 0 0 3.125em rgba( 0, 0, 0, .75 ); /* 50 */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
.caption {
	background: #707070;
	padding: 10px 0;
	text-align: center;
	color: #fff;
}
.caption p {
	margin-bottom: 1px;
}

		/* OVERLAY */

		#imagelightbox-overlay
		{
			background-color: #fff;
			background-color: rgba( 255, 255, 255, .2 );
			position: fixed;
			z-index: 9998;
			top: 0;
			right: 0;
			bottom: 0;
			left: 0;
		}

		/* "CLOSE" BUTTON */

		#imagelightbox-close
		{
			width: 2.5em; /* 40 */
			height: 2.5em; /* 40 */
			text-align: left;
			background-color: #666;
			border-radius: 50%;
			position: fixed;
			z-index: 10002;
			top: 2.5em; /* 40 */
			right: 2.5em; /* 40 */
			border: none;

			-webkit-transition: color .3s ease;
			transition: color .3s ease;
		}
			#imagelightbox-close:hover,
			#imagelightbox-close:focus
			{
				background-color: #111;
			}
			#imagelightbox-close:before,
			#imagelightbox-close:after
			{
				width: 2px;
				background-color: #fff;
				content: '';
				position: absolute;
				top: 20%;
				bottom: 20%;
				left: 50%;
				margin-left: -1px;
			}
			#imagelightbox-close:before
			{
				-webkit-transform: rotate( 45deg );
				-ms-transform: rotate( 45deg );
				transform: rotate( 45deg );
			}
			#imagelightbox-close:after
			{
				-webkit-transform: rotate( -45deg );
				-ms-transform: rotate( -45deg );
				transform: rotate( -45deg );
			}
			.hide {
	display: none !important;
}
/* ============================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* Планшеты и небольшие ноутбуки (до 1080px) */
@media (max-width: 1080px) {
    .wrapper {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* Колонки становятся резиновыми */
    [class*="span"] {
        width: 100% !important;
        margin-left: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }
    
    .row {
        margin-left: 0;
    }
    
    .main {
        height: 400px;
    }
    
    .title {
        margin-top: 100px;
    }
    
    .free-wall .brick {
        width: 50% !important;
    }
}

/* Планшеты вертикально и телефоны (до 768px) */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
    }
    
    header {
        padding-top: 20px;
    }
    
    .menu {
        text-align: center;
    }
    
    .menu li {
        margin: 0 5px;
    }
    
    .menu a {
        padding: 0 8px;
        font-size: 13px;
    }
    
    .content {
        margin: 30px 0;
    }
    
    .main {
        height: 300px;
        background-size: cover;
    }
    
    .title {
        margin-top: 60px;
        min-height: 100px;
    }
    
    h1 {
        font-size: 16px;
        width: auto;
        padding: 15px 10px 10px;
    }
    
    h2 {
        margin-bottom: 40px;
    }
    
    h2:after {
        top: 35px;
    }
    
    .block {
        margin-top: 40px;
    }
    
    /* Фото в «Об авторе» на всю ширину */
    .block img.bordered {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto 20px;
        box-sizing: border-box;
    }
    
    /* Контакты в столбик */
    .contacts .span4,
    .contacts .span6,
    .contacts .span8 {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Галерея — 2 колонки */
    .free-wall .brick {
        width: 50% !important;
    }
    
    footer .span15,
    footer .span3 {
        width: 100% !important;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .wrapper {
        padding: 0 10px;
    }
    
    .menu li {
        margin: 0 2px;
    }
    
    .menu a {
        padding: 0 5px;
        font-size: 12px;
    }
    
    .main {
        height: 220px;
    }
    
    .title {
        margin-top: 40px;
        min-height: 80px;
    }
    
    h1 {
        font-size: 14px;
    }
    
    h2 {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .name {
        font-size: 16px;
    }
    
    /* Галерея — 1 колонка */
    .free-wall .brick {
        width: 100% !important;
    }
    
    .free-wall .brick img {
        width: 100%;
        height: auto;
    }
}
