/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@viewport {
	width: device-width;
	zoom: 1;
}

@font-face {
    font-family: 'ubunturegular';
    src: url('../fonts/ubuntu-r-webfont.eot');
    src: url('../fonts/ubuntu-r-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ubuntu-r-webfont.woff') format('woff'),
         url('../fonts/ubuntu-r-webfont.ttf') format('truetype'),
         url('../fonts/ubuntu-r-webfont.svg#ubunturegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'ubuntulight';
    src: url('../fonts/ubuntu-l-webfont.eot');
    src: url('../fonts/ubuntu-l-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ubuntu-l-webfont.woff') format('woff'),
         url('../fonts/ubuntu-l-webfont.ttf') format('truetype'),
         url('../fonts/ubuntu-l-webfont.svg#ubuntulight') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'ubuntubold';
    src: url('../fonts/ubuntu-b-webfont.eot');
    src: url('../fonts/ubuntu-b-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/ubuntu-b-webfont.woff') format('woff'),
         url('../fonts/ubuntu-b-webfont.ttf') format('truetype'),
         url('../fonts/ubuntu-b-webfont.svg#ubuntubold') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'komika_textregular';
    src: url('../fonts/KOMTXT__-webfont.eot');
    src: url('../fonts/KOMTXT__-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/KOMTXT__-webfont.woff') format('woff'),
         url('../fonts/KOMTXT__-webfont.ttf') format('truetype'),
         url('../fonts/KOMTXT__-webfont.svg#komika_textregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'komika_textbold';
    src: url('../fonts/KOMTXTB_-webfont.eot');
    src: url('../fonts/KOMTXTB_-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/KOMTXTB_-webfont.woff') format('woff'),
         url('../fonts/KOMTXTB_-webfont.ttf') format('truetype'),
         url('../fonts/KOMTXTB_-webfont.svg#komika_textbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body {
	background: #8d817b;
}

body {
	color: #706761;
	font-family: 'ubuntulight', Arial, Helvetica, sans-serif;
	font-size: 0.85em;
}

h1 {
	color: #6d1a42;
	font-family: 'komika_textbold', "Times New Roman", Times, serif;
	font-weight: normal !important;
}
h2 {
	color: #6d1a42;
	font-family: 'komika_textregular', "Times New Roman", Times, serif;
	font-weight: normal !important;
}
h3 {
	color: #6d1a42;
	font-family: 'komika_textregular', "Times New Roman", Times, serif;
	font-weight: normal !important;
}

address {
	font-style: normal;
}

#header {
	color: #fff;
	background: -moz-linear-gradient(top, #5b1637, #6d1a42) 68px;
	height: 68px;
	padding: 0;
	margin: 0;
	position: relative;
}
#header .container {
	margin: 0 auto;
	position: relative;
	width: 1024px;
}
#header .content {
	padding: 0 22px;
}

#header-nav {
	position: absolute;
	bottom: -84px;
	left: 22px;
}
#header-nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#header-nav ul:after {
	clear: both;
} 
#header-nav ul li {
	margin: 0;
	padding: 0 21px 0 0;
	float: left;
	line-height: 1.2em;
}
#header-nav ul li a {
	color: #fff;
	display: block;
	font-family: 'ubunturegular', Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	font-weight: normal;
	height: 30px;
	padding: 0;
	text-decoration: none;
}
#header-nav ul li.act a {
	color: #fff;
	display: block;
	font-family: 'ubuntubold', Arial, Helvetica, sans-serif;
	font-size: 1.8em;
	font-weight: normal;
	height: 30px;
	padding: 0;
	text-decoration: none;
}
#header-nav .projects {
	background: url(../img/header-nav-projects.png) left bottom 16px no-repeat;
	padding-left: 9px;
}
#header-nav .contacts {
	background: url(../img/header-nav-contacts.png) left bottom 16px no-repeat;
	padding-left: 9px;
}
#header-nav .offers {
	background: url(../img/header-nav-offers.png) left bottom 16px no-repeat;
	padding-left: 9px;
}
#header-nav .news {
	background: url(../img/header-nav-news.png) left bottom 16px no-repeat;
	padding-left: 9px;
}
#header-nav .team {
	background: url(../img/header-nav-team.png) left bottom 16px no-repeat;
	padding-left: 9px;
}
#header-nav .concept {
	background: url(../img/header-nav-concept.png) left bottom 16px no-repeat;
	padding-left: 9px;
}

#font-size {
	position: absolute;
	bottom: -81px;
	height: 30px;
	line-height: 1.2em;
	right: 22px;
}
#font-size a {
	color: #fff;
	text-decoration: none;
}
#font-size .label {
	font-family: 'ubunturegular', Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	font-weight: normal;
}
#font-size .normal {
	font-family: 'ubuntubold', Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	font-weight: normal;
	padding-left: 5px;
}
#font-size .medium {
	font-family: 'ubuntubold', Arial, Helvetica, sans-serif;
	font-size: 1.8em;
	font-weight: normal;
	padding-left: 5px;
}
#font-size .big {
	font-family: 'ubuntubold', Arial, Helvetica, sans-serif;
	font-size: 2.2em;
	font-weight: normal;
	padding-left: 5px;
}

#title {
	background: #fff;
}
#title .container {
	width: 980px;
	margin: 0 auto;
	position: relative;
}
#title .content {
	padding: 68px 0;
	border-bottom: 10px solid #f6ece5;
}

#main {
	background: #fff;
	z-index: 999;
	padding: 33px 0 68px 0;
}
#main .container {
	margin: 0 auto;
	position: relative;
	width: 1024px;
}
#main .main-nav {
	float: left;
	width: 225px;
}
#main .main-nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#main .main-nav ul li {
	line-height: 1.8em;
	margin: 0;
	padding: 0;
	margin-bottom: 2px;
}
#main .main-nav ul li a {
	color: #6d1a42;
	display: block;
	font-family: 'komika_textbold', "Times New Roman", Times, serif;
	font-size: 1.8em;
	font-weight: normal;
	height: 35px;
	padding: 0 0 0 22px;
	text-decoration: none;
}
#main .main-nav ul li.act a {
	background: url(../img/nav-act-bg.png) no-repeat;
	color: #fff;
	display: block;
	font-family: 'komika_textbold', "Times New Roman", Times, serif;
	font-size: 1.8em;
	font-weight: normal;
	height: 35px;
	padding: 5px 0 0 22px;
	text-decoration: none;
}
#main .content {
	float: left;
	width: 544px;
	padding: 0 22px;
}
#main .content h1 {
	background: url(../img/main-content-h1-bg.png) left top 14px no-repeat;
	font-size: 1.8em;
	margin-top: 0 !important;
	padding-left: 26px;
}
#main .content h2 {
	background: url(../img/main-content-h2-bg.png) left top 10px no-repeat;
	font-size: 1.4em;
	padding-left: 26px;
}
#main .content h3 {
	font-size: 1.25em;
	padding-left: 26px;
}
#main .content p {
	padding-left: 26px;
	line-height: 1.6em;
} 
#main .content a {
	border-bottom: 1px solid #00af9d;
	color: #6d1a42;
	text-decoration: none;
}
#main .sidebar {
	float: left;
	width: 189px;
}
#main .sidebar h1 {
	background: url(../img/main-sidebar-h1-bg.png) left 5px top 10px no-repeat;
	border-bottom: 4px solid #f6ece5;
	color: #6d1a42;
	font-family: 'komika_textbold', "Times New Roman", Times, serif;
	font-size: 1.4em;
	font-weight: normal !important;
	margin-top: 0 !important;
	padding-left: 26px;
}
#main .sidebar p {
	line-height: 1.6em;
	padding: 0 5px;
} 
#main .sidebar a {
	border-bottom: 1px solid #00af9d;
	color: #6d1a42;
	text-decoration: none;
}

#footer {
	background: #a79d96;
	border-top: 5px solid #8d817b;
	color: #59533e;
	padding: 40px 0;
}
#footer .container {
	margin: 0 auto;
	position: relative;
	width: 980px;
}
#footer h1 {
	color: #fff;
	font-size: 1.8em;
	margin-top: 0 !important;
}
#footer p {
	line-height: 1.6em;
} 
#footer a {
	border-bottom: 1px solid #8d817b;
	color: #6d1a42;
	text-decoration: none;
}
#footer .column {
	width: 291px;
	float: left;
	text-align: center;
	padding: 0 16px;
}
#footer .margin-left-five {
	margin-left: 5px;
}
#footer .icon {
	padding: 10px 0;
}

#info {
	color: #423930;
	padding-bottom: 12px;
	padding-top: 12px;
	font-size: 0.85em;
}
#info .container {
	margin: 0 auto;
	position: relative;
	width: 980px;
}
#info a {
	color: #423930;
	text-decoration: none;
}
#info .lilac {
	color: #6d1a42;
}
#info .lilac a {
	color: #6d1a42;
	text-decoration: none;
}

.team-list-img {
	padding-right: 22px;
}

.float-left {
	float: left;
	position: relative;
}

.float-right {
	float: right;
	position: relative;
}

.bold {
	font-family: 'ubuntubold', Arial, Helvetica, sans-serif;
	font-weight: normal;
}

.clear {
	clear: both;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
