/*! 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
   ========================================================================== */

body {
    color: #95a5a6;
    font-family: Tahoma, Arial, sans-serif;
    min-width: 960px;

}

h2 {
    color: #ed1c24;
    font-size: 30px;
    /*text-transform: uppercase;*/
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 41px 0;
}

.block {
    margin: 55px auto 100px;
}
div.wrapper {
    max-width: 1920px;
    min-width: 960px;
    overflow: hidden;
    margin: auto;
}

body.secondary div.wrapper {
    margin-top: 70px;
}

div.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    /*background: rgb(229,200,199);*/
    /*background: rgba(229,200,199, 0.8);*/
    /*background: #ed1c24;*/
    /*height: 52px;*/
    /*padding-top: 18px;*/
    z-index: 15;
    overflow-x: hidden;
}

div.navigation a.logo {
    float: left;
    display: block;
    width: 190px;
    height: 33px;
    background: url(../img/header-logo.png) center 45px no-repeat;
    height: 52px;
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

div.navigation ul.topmenu {
    padding: 0;
    line-height: 33px;
    margin: 0 0 0 0;
    list-style: none;
    position: absolute;
}

div.navigation ul.topmenu li {
    display: inline-block;
    background: #ed1c24;
    vertical-align: top;
}

div.navigation ul.topmenu li:first-child {
    background: #fff;
    background: rgba(255,255,255,0.6);
}

div.navigation ul.topmenu li:last-child::after {
	position: absolute;
	left: 100%;
	z-index: 9999;
	top: 0;
	bottom: 0;
	content: " ";
	width: 2000px;
	font-size: 14px;
    background: #ed1c24;
	overflow-x: hidden;
}

div.navigation ul.topmenu li:first-child::before {
	position: absolute;
	right: 100%;
	z-index: 9999;
	top: 0;
	bottom: 0;
	content: " ";
	width: 2000px;
	font-size: 14px;
    background: #ed1c24;
	overflow-x: hidden;
}

div.navigation ul.topmenu li a {
    /*text-transform: uppercase;*/
    display: block;
    box-sizing: border-box;
    height: 100px;
    padding: 50px 15px 0;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

div.navigation ul.topmenu li a.logo {
    width: 235px;
    background: url(../img/header-logo.png) center 39px no-repeat;
    padding-left: 18px;
    padding-right: 18px;
}

div.navigation ul.topmenu li:nth-child(2) a {
    padding-left: 30px
}

div.navigation ul.topmenu li:hover a {
    /*color: #ed1c24;*/
    font-weight: bold;
}

div.navigation ul.topmenu li.active a {
    /*text-decoration: underline;*/
    font-weight: bold;
}

body.secondary header {
    display: none;
}

header {
    position: relative;
    text-align: center;

}


header img.jumbo-img {
    max-width: 100%;
    height: auto;
}

header img.jumbo-img-second {
    position: absolute;
    top: 0;
    left: 0;
}

header div.jumbo {
    position: absolute;
    
    width: 100%;
    top:50%;
    transform:translateY(-50%);
    text-align: center;
}

header div.jumbo div.title {
    font-size: 80px;
    margin: auto;
    width: 80%;
    color: white;
    color: #ed1c24;
    /*font-size: 54px;*/
    padding: 30px 0;
    /*text-shadow: 3px 1px #362c2b;
    border-bottom: 1px solid white;*/
}

header div.jumbo div.text {
    padding: 30px;
    font-size: 28px;
    /*font-size: 22px;*/
    color: white;
    text-shadow: 2px 2px #362c2b;
}

@media screen and (max-width:1600px){
/*  header div.jumbo {
    margin-top: -70px;
  }*/
  header div.jumbo div.title {
    font-size: 62px;
  }
  header div.jumbo div.text {
    font-size: 24px;
  }
}

@media screen and (max-width:1280px){
/*  header div.jumbo {
    margin-top: -60px;
  }*/
  header div.jumbo div.title {
    font-size: 54px;
  }
  header div.jumbo div.text {
    font-size: 22px;
  }
}

@media screen and (max-width:1000px){
/*  header div.jumbo {
    margin-top: -50px;
  }*/
  header div.jumbo div.title {
    font-size: 54px;
  }
  header div.jumbo div.text {
    font-size: 22px;
  }
}



div.main div.about div.text {
    padding: 0 100px;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
}

div.main div.trends {
    padding: 0 60px 30px;
}

div.main div.trends div.item {
    display: inline-block;
    vertical-align: top;
    width: 165px;

}
div.main div.trends div.item div.text {
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}
div.main div.trends div.item div.icon {
    margin: auto;
    width: 100px;
    height: 100px;
    display:block;
    overflow:hidden;
    background-repeat: no-repeat;
    background-image:url(../img/icons.png);
}

div.main div.trends div.item div.icon.trend1 {
    background-position: -182px -2px;
}


div.main div.trends div.item div.icon.trend2 {
    background-position: -590px -2px;

}

div.main div.trends div.item div.icon.trend3 {
    background-position: -386px -2px;
}

div.main div.trends div.item div.icon.trend4 {
    background-position: -284px -2px;
}

div.main div.trends div.item div.icon.trend5 {
    background-position: -488px -2px
}

div.main div.trends div.item div.icon

div.main div.projects {

}

div.main div.projects div.thumbnails .item {
    cursor: pointer;
    display: block;
    float: left;
    width: 300px;
    height: 220px;
    position: relative;
    border: 1px solid #fee4e4;
    margin-bottom: 25px;
}

div.main div.projects div.thumbnails .item {
    margin-right: 17px;
}

div.main div.projects div.thumbnails .item div.info {
    display: none;
    position: absolute;
    padding: 15px 20px;
    width: 260px;
    /*height: 60px;*/
    bottom: 0;
    background: #ed1c24;
    background: rgba(237,28,36,0.4);
    color: #fff;
    line-height: 1.1;
}

div.main div.projects div.thumbnails .item div.info div.title {
    font-size: 21px;
}

div.main div.projects div.thumbnails .item div.zoomicon {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #ed1c24;
}

div.main div.projects div.thumbnails .item div.zoomicon:after {
    margin: auto;
    content: "";
    margin-top: 8px;
    display: block;
    overflow:hidden;
    background-repeat: no-repeat;
    background-image:url(../img/icons.png);
    width:18px;
    height:16px;
    background-position: -749px -2px;
}

div.main div.projects div.thumbnails .item:hover {
    /*border-color: #ed1c24;*/
}

div.main div.projects div.thumbnails .item:hover div.info {
    display: block;
}


div.main div.projects div.thumbnails .item:hover div.zoomicon {
    display: block;
}

div.main div.testimonials {
    text-align: center;
}

div.main div.testimonials table.table {
    width: 100%;
    margin-bottom: 20px;
}

div.main div.testimonials table.table td {
    text-align: center;
    width: 25%;
}

div.main div.testimonials table.table td.item.title {
    vertical-align: top;
    padding-top: 10px;
}

div.main div.testimonials table.table td.item.title .description {
    padding-top: 3px;
    font-size: 15px;
}

div.main div.testimonials .item a {
    color: gray;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    
}

div.main div.testimonials .item div.title {
    
}

div.main div.testimonials .item img {
    display: block;
    margin: auto;
    position: relative;
    border: 1px solid #ed1c24;
}

/*div.main div.testimonials .item img:after {
    content: "";
    position: absolute;
    display: none;
    margin: 0 0 0 -27px;
    bottom: 48px;
    left: 50%;
    overflow:hidden;
    width:55px;
    height:55px;
    background: url(../img/icons.png) no-repeat -692px -2px;
}

div.main div.testimonials .item:hover img:after {
    display: block;
}*/

div.main div.feedback {
    width: 760px;
    margin: auto;
}

div.main div.feedback table.form {
    width: 100%;
}

div.main div.feedback table.form td {
    min-width: 50%;
    padding: 15px;
}
div.main div.feedback table.form input, div.main div.feedback table.form textarea {
    width: 100%;
    background: #e4e8e8;
    border: none;
    -moz-box-sizing:    border-box;
    -webkit-box-sizing: border-box;
    box-sizing:        border-box;
}



div.main div.feedback table.form input {
    padding: 30px;
    height: 75px;

}

div.main div.feedback table.form textarea {
    padding: 30px;
    height: 250px;
}

div.main div.contacts {
    font-size: 20px;
    /*font-weight: bold;*/
}

div.main div.contacts div.map {
    margin-top: 20px;
    height: 470px;
    border: 1px solid #ed1c24;
}

div.main div.project-thumbnails {
    margin-top: 30px;
}

div.main div.project-thumbnails .item {
    cursor: pointer;
    display: block;
    float: left;
    width: 200px;
    height: 150px;
    position: relative;
    border: 7px solid #ed757d;
    margin: 0 34px 15px 0;
}

div.main div.project-thumbnails .item img {
    display: block;
    width: 100%;
}

div.main div.project-thumbnails .item:nth-child(4n+4) {
    margin-right: 0;
    
}

div.main div.project-thumbnails .item:hover {
    border-color: #ed1c24;
}

div.footer {
    position: relative;
    margin-top: 120px;
    height: 320px;
    background: #ed1c24;
}

div.footer div.text {
    margin-top: 50px;
    color: white;
    font-size: 15px;
}

div.footer div.text div.year {
    font-size: 24px;
    margin-top: 10px;
}

div.footer div.social a {
    display:inline-block;
    overflow:hidden;
    background: url(../img/icons.png) no-repeat;
    width: 70px;
    height: 70px;
    margin: 30px 0 0;
    border: 6px solid rgb(237, 28, 36);
    border: 6px solid rgba(237, 28, 36, 0.5);
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}

div.footer div.social a.vk {
    background-position: -101px -9px;
}

div.footer div.social a.facebook {
    background-position: -13px -10px;
}

.button {
    margin: 20px auto;
    display: inline-block;
    font-size: 21px;
    /*text-transform: uppercase;*/
    padding: 7px 30px;
    text-align: center;

}

.button.button-red {
    border: none;
    text-decoration: none;
    color: white;
    background: #ed1c24;
}


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

.anchor {
    position: relative;
    top: -70px;
}
.width960px {
    width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/*
 * 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;
    }
}
