/* Page frame, header, navigation, sidebars, footer and responsive layout. */

ul.menu.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
html {
    background: url(../images/bg.png) repeat fixed 50% 50%;
    background-size: auto;
    background-color: #dbbb74;
    font: 16px "Times New Roman", Times, serif !important;
}
.body {
    margin: 0 auto;
    width: 996px;
}
::selection { background: #E95D3C; color: #fff;}
#menu-pokaz, .close-mobile { display: none; }
#pageheader {
    width: 100%;
    height: 270px;
    background: url(../images/header-cien.png) repeat-y;
}
#header {
    background: url(../images/header.jpg) no-repeat;
    width: 100%;
    height: 270px;
    overflow: hidden;
    margin-left: 18px;
    clear: both;
}
#naglowek {
    display: block;
    background: url(../images/naglowek.png) no-repeat;
    height: 96px;
    width: 340px;
    margin: 10px 0 0 80px;
    cursor: pointer;
    font-size: 0;
}
#content {
    margin-top: -58px;
}
#kontener {
    background: url(../images/content.png) repeat-y left;
    padding: 0 13px 0 38px;
}
#brud-tlo {
    background: url(../images/brud.png) no-repeat left top;
    clear: both;
    margin-left: -37px;
    overflow: hidden;
    padding-left: 37px;
    display: table;
    width: 100%;
}
#footer {
    background: url(../images/footer.png) repeat-x left bottom;
    height: 62px;
}
#top_pod {
    background: url(../images/top_pod.png) repeat-x left bottom;
    height: 58px;
}
#top_pod span.lewa {
    padding: 29px 20px;
    position: relative;
    top: 0;
    left: 235px;
    float: left;
    background: url(../images/poczatek-kreski-pion-lewa.png) no-repeat bottom left;
}
#top_pod span.prawa {
    background: url(../images/poczatek-kreski-pion-prawa.png) no-repeat bottom left;
    padding: 29px 20px;
    position: relative;
    top: 0;
    right: 196px;
    float: right;
}
#srodek {
    display: table-cell;
    vertical-align: top;
}
#srodek fieldset {
    color: #977F5B;
}
#page-title {
    text-align: center;
    display: table;
    margin: 0 auto 20px auto;
}
#page-title span.lewa,
#page-title span.prawa {
    display: table-cell;
    width: 60px;
    height: 30px;
}
#page-title span.lewa {
    background: url(../images/naglowki/lewa.png) no-repeat center left;
}
#page-title span.prawa {
    background: url(../images/naglowki/prawa.png) no-repeat center right;
}
h1.page-title {
    color: #E58202;
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
    display: table-cell;
    font-size: 34px;
    margin-top: 4px;
    vertical-align: top;
}
.section {
    padding: 0 20px;
    position: relative;
    clear: both;
    line-height: 150%;
}
#prawa {
    width: 185px;
    background: url(../images/kreska-pion.png) left repeat-y;
    color: #977F5B;
    line-height: 150%;
    display: table-cell;
    vertical-align: top;
    padding-left: 25px;
    margin-right: 0px;
}
#prawa h2.module-title,
#prawa h3 {
    background: url(../images/naglowki/h3.png) no-repeat left top;
    color: #4f5142;
    margin-left: -25px;
    padding: 7px 5px 0 15px;
    font-family: "Arial Black", Gadget, sans-serif;
    font-weight: bold;
    font-size: 15px;
    text-shadow: #fff 0px -1px 5px;
    text-transform: uppercase;
    text-align: left;
    height: 45px;
    margin-top: 1em;
    margin-bottom: -10px;
}
#prawa div.finder {
    padding: 12px 0 0 0;
}
#prawa form.login {
    margin-left: 10px;
}
#prawa div.moduly {
    margin-bottom: 20px;
    background: none;
    clear: both;
}
#prawa div.moduly input,
form.login input {
    padding: 3px;
}
#prawa button.finder {
    background: none;
    padding: 5px;
    width: 30%;
    text-align: center;
    border: 1px solid #CCC;
    margin-left: -1px;
    margin-top: 0;
    float: left;
    font-size: 13px;
}
#prawa input.button {
    margin-top: 10px;
}
#prawa .finder button:hover {
    cursor: pointer;
    background: #E8E8E8;
}
#prawa .finder input {
    background: none;
    width: 60%;
    padding: 5px;
    border: 1px solid #CCC;
    float: left;
    font-size: 13px;
}
#prawa div.finder div {
    margin-top: 5px;
}
#lewa {
    width: 200px;
    display: table-cell;
    padding: 0;
    margin: 0;
    background: url('../images/kreska-pion.png') right repeat-y;
    vertical-align: top;
}
#lewa nav ul.menu {
    list-style: none;
    clear: both;
    padding: 0 !important;
    margin-left: 0px;
}
#lewa nav ul.menu + ul.menu {
    margin-top: 20px;
}
#lewa nav ul.menu li {
    background: url(../images/kreska-li.png) repeat-x bottom !important;
    padding-right: 10px;
}
#lewa nav ul.menu li ul li,
#lewa nav ul.menu li ul li a {
    background: none !important;
    padding-right: 10px;
    text-transform: none;

}
#lewa nav ul.menu li,
#lewa nav ul.menu li a,
#lewa nav ul.menu li.current.active ul.menu li a {
    font-family: 'Times New Roman';
    background: none;
    text-decoration: none;
    font-size: 15px;
    line-height: 200%;
    text-transform: uppercase;
    color: #5d4f42;
    display: block;
    text-align: right;
}
#lewa nav ul.menu li.current.active ul.menu li:last-child {
    margin-bottom: 10px;
}
#lewa nav ul.menu li.current.active ul.menu li a {
    text-transform: none;
    font-size: 14px;
}
#lewa nav ul.menu li a:hover,
#lewa nav ul.menu li.current.active,
#lewa nav ul.menu li.current.active a,
#lewa nav ul.menu li.current.active ul.menu li a:hover,
#lewa nav ul.menu li.current.active ul.menu li.current.active,
#lewa nav ul.menu li.current.active ul.menu li.current.active a {
    color: #ed6400;
}
#lewa form#login-form {
    margin-top: 30px;
    margin-left: 5px;
}
footer {
    overflow: hidden;
    clear: both;
    line-height: 1.7em;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.014em;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 2px solid #dbbb74;
    color: #625331;
    background-color: rgba(232, 209, 143, 0.8);
    display: table;
    width: 100%;
}
footer ul {
    list-style: none;
}
footer ul li {
    line-height: 1.47em;
    margin: 0 0 5px 0;
}
#footer-left {
    display: table-cell;
    width: 300px;
    border-right: 1px solid #dbbb74;
    vertical-align: top;
    padding: 0 5px 0 15px;
}
#footer-center {
    display: table-cell;
    padding: 0 15px;
    border-right: 1px solid #dbbb74;
    width: 400px;
    vertical-align: top;
}
#footer-right {
    display: table-cell;
    padding: 0 5px 0 15px;
    width: 250px;
    vertical-align: top;
}
#footer-bottom {
    text-align: center;
    border-top: 1px solid #dbbb74;
    padding-top: 5px;
    margin-top: 0;
}
@media only screen and (max-width: 768px) {
    .mobile-menu-open { overflow: hidden; }
    .mobile-menu-open #lewa,
    .mobile-menu-open .close-mobile { display: block; }
    .mobile-menu-open #menu-pokaz { left: 250px; }
    * {
        box-sizing: inherit;
    }
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    #menu-pokaz {
        top: 10px;
        position: fixed;
        display: block !important;
        background: #fff;
        left: 11px;
        margin-left: -1px;
        z-index: 10;
        font-weight: bold;
        font-size: 200%;
    }
    .close-mobile {
        border: 0;
        padding: 0;
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.8);
        display: none;
        overflow: scroll;
        z-index: 8;
        bottom: 0;
        left: 0;
    }
    .section {
        padding: 20px;
    }
    #lewa ul.menu {
        margin: 0;
    }
    #lewa {
        height: 100%;
        display: none;
        width: 250px;
        position: fixed;
        overflow-y: scroll;
        z-index: 9;
        background-color: #FFF;
        min-height: 100%;
        padding-top: 15px;
    }
    #prawa {
        display: none;
    }
    #footer {
        display: none;
    }
    #page-title {
        width: 100%;
        background: #fff;
        box-shadow: 1px 1px 5px #666;
        padding: 10px 0;
        margin: 0;
    }
    #page-title h1 {
        font-size: 35px;
        line-height: 150%;
        display: block;
    }
    #page-title .lewa {
        width: 120px !important;
        background-position: right !important;
    }
    #page-title .prawa {
        width: 60px !important;
        background-position: left !important;
    }
    #top_pod {
        display: none;
    }
    #pageheader {
        display: none;
    }
    #pageheader #header,
    #pageheader #header #naglowek {
        background-image: none;

    }
    #content {
        margin: 0;
    }
    .body {
        width: 100%;
    }
    #brud-tlo {
        display: block;
        background: none;
        margin: 0;
        padding: 0;
    }
    #kontener {
        background: none;
        padding: 0;
    }
    #srodek {
        width: 100%;
        display: block;
        margin-top: 0px;
    }
    #srodek-2 {
        padding: 0;
    }
}
@media only screen and (max-width: 768px) {
    footer,
    #footer-left,
    #footer-center,
    #footer-right,
    #footer-bottom {
        display: block;
        width: 100%;
    }
    #footer-left {
        border: 0;
        padding: 0 20px;
    }
    #footer-center,
    #footer-right {
        border-top: 1px solid #dbbb74;
        border-right: 0;
        padding: 20px;
    }
}
