/*! 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    text-align: justify;
    font-family: 'Noticia Text', serif;
}

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

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

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screen readers: 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 screen readers, 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;
}

/* ==========================================================================
   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 the additional HTTP request: 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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]: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;
    }

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

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

a {
    color: #443441;
}

body {
    color: #443441;
}

div.container {
    width: 960px;
    margin: 0px auto 20px;
    position:relative;
    z-index:99999;
}

nav li, main, aside h1, aside > div, footer {
    background: rgba(255,255,255,0.8);
    box-shadow: rgba(0,0,0,0.3) 5px 0px 5px;
    -webkit-box-shadow: rgba(0,0,0,0.3) 5px 0px 5px;
    -moz-box-shadow: rgba(0,0,0,0.3) 5px 0px 5px; 
}

.top {
  padding-top: 30px;
    margin-bottom: 10px;
}

header {
    background: #fff;
    width: 629px;
    float: left;
}

header h1 {
    margin: 0px;
    margin-left:20px;
    margin-top: 15px;
    padding: 10px 0px 0px;
    font-size: 32px;
    padding-left: 135px;
    padding-right: 20px;
    background: url('../img/logo.png') no-repeat left top;
    height: 100px;
}

header h1 span {
    font-size: 18px;
    display: block;
}

nav, header {
    height: 125px;
}

nav {
    float: right;
    /*width: 320px;
*/}

nav li {
    float: left;
}

nav li {
    list-style: none;
}

#bgimg {
    position: fixed;
    z-index: -1;
    width: 0px;
    height: 0px;
}

.content main {
    float: left;
    width: 690px;
    padding: 32px;
}

main img {
    float: right;
    margin: 0 0 10px 20px;
}

.blog-post {
    margin-bottom: 32px;
}

.blog-post:last-of-type {
    margin-bottom: 0;
}

.blog-post h2 {
    margin-top: 0;
}

h1.page-title {
    margin-top: 0;
}

.blog-back {
    display: inline-block; font-weight: 700; text-decoration: none; margin-top: 48px;
}

.pagination {
    text-align:center; margin-top: 48px;
}

.pagination a, .pagination span.pages, .pagination span.dots, .pagination span.current {
    height: 2rem; line-height: 2rem; display: inline-block; text-decoration: none; background-color: #eee; padding: 0 0.5rem; margin: 0 0.25rem;
}

.pagination a:hover, .pagination a:focus, .pagination a:active {
    background-color: #aaa;
}

.pagination span.current {
    color: #fff; background-color: #443441;
}

.pagination a.first, .pagination a.last {
    display: none;
}

.content aside {
    float: right;
    width: 195px;
}

footer {
    margin-top: 12px;
    padding: 10px 20px;
}

footer p {
    float: right;
    font-size: 12px;
}

footer p.copy {
    float: left;
}

footer a {
    text-decoration: none;
    color: #443441;
}

nav ul {
    padding: 0px;
    margin: 0px;
}

nav li {
    text-align: center;
}

nav li a {
    height: 125px;
    line-height: 210px;
}

nav li.menu-item-18 a {
    background: url('../img/info.png') no-repeat center 20px;
}

nav li.menu-item-17 a {
    background: url('../img/news.png') no-repeat center 20px;
}

nav li.menu-item-16 a {
    background: url('../img/sortiment.png') no-repeat center 20px;
}

nav li.menu-item-15 a {
    background: url('../img/contact.png') no-repeat center 20px;
    width: 59px;
}

nav li a {
    padding: 0 12px;
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    color: #443441;
}

nav li.current-menu-item, nav li.current-page-ancestor, nav li:hover, nav li:focus, nav li:active {
    background: #fff;
}

nav li {
    margin: 0 0 0 4px;
}
nav li.first {
    margin: 0;
}

aside h1 {
    margin: 0 0 5px;
    padding: 3px 5px;
    font-size: 16px;
}

aside h2 {
    font-size: 14px;
    line-height: 16px;
    padding: 10px;
    margin: 0;
}

aside p {
    padding: 5px 0;
    margin: 0 10px;
    font-size: 12px;
    line-height: 14px;
}

aside div.news {
    padding: 10px 0;
    margin-bottom: 20px;
}

aside div.contact {
    padding: 5px 0 10px;
}

h1.news:before, h1.contact:before, .address:before, .phone:before, .mail:before {
    content: "";
    display: inline-block;
    position: relative;
    top: 5px;
    margin-right: 5px;
    height: 25px;
    width: 25px;
    background: url('../img/icons.png');
}
h1.contact:before {
    background-position: 0 -25px;   
}
.address:before {
    background-position: 0 -50px;   
}
.phone:before {
    background-position: 0 -75px;   
}
.mail:before {
    background-position: 0 -100px;   
}

/* JC 2014-05-13 */

ol.letters {
    counter-reset: list;
    margin: 0;
}

ol.letters > li {
    list-style: none;
    position: relative;
}

ol.letters > li:before {
    counter-increment: list;
    content: counter(list, lower-alpha) ") ";
    position: absolute;
    left: -1.4em;
}
/*
.content article article h3, .content article article h2, .content article article h4 {
    text-align: center;
}
*/