.ep-admin-actions {
    position: relative !important;
    text-align: right !important;
}

.ep-admin-actions .glyphicon {
    font-size: inherit !important;
    display: inline-block !important;
}

.ep-admin-actions .btn-default .glyphicon {
    color: #333333;
}

.ep-admin-actions .btn-danger .glyphicon {
    color: #fff;
}

.ep-admin-actions button * {
    font-size: 12px !important;
}

.ep-admin-editable {
    z-index: 1;
}

.ep-admin-editable:hover {
    outline: 1px dotted #666 !important;
}

.ep-admin-editable .ep-admin-actions {
    opacity: .2;
}

.ep-admin-editable:hover > .ep-admin-actions {
    opacity: 1;
}

body {
    text-align: left;
}

h1 {
    margin: 30px 0 15px;
}

h2 {
    margin-top: 15px;
}

#header {
    background: url('../images/resp/header-bg.jpg') left top no-repeat;
}

#header a span {
    background:url('../images/resp/header-logo.png') left top no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 240px;
    height: 130px;
    overflow: hidden;
}

.slogan p {
    margin-top: 72px;
    color: #fff;
    font-size: 32px;
    text-shadow: 2px 2px 2px #000;
    line-height: inherit;
}

hr {
    display: block;
    width: 100%;
}

.reference .gi {
    box-sizing: border-box;

}

.content-bottom {
    padding: 0 15px 30px;
}

.content-free {
    padding: 0 15px;
}

.btn-nav, #mininav {
    display: none;
}

#signbarout {
    padding: 25px 15px;
    text-align: center;
}

#signbarout p {
    margin: 0;
}

.content, .reference, .referencenb, .news {
    border-bottom: 0;
}

.kontosoby .osoba.foto h3 {
    padding-left: 75px;
}

.pobocka {
    float: none;
    width: 100%;
    margin-bottom: 30px;
}

.clearfix {
    clear: both;
}

.pobocka .item {
    float: left;
    width: 50%;
}

.pobocka iframe {
    float: right;
    width: 50%;
}

#mainnav li ul {
    z-index: 2;
}

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

#skf {
    margin: 50px 15px;
}

#skf fieldset {
     width: 100%;
    box-sizing: border-box;
}

#skfleft, #skfright {
    width: 50%;
}

#skf .name {
    display: none;
}

.pagination .active {
    padding: 4px 6px;
    background: #e30303;
    color: #fff;
    border: 1px solid #e30303;
}

@media (min-width: 992px) {
    .reference > .gi:nth-child(4n+1) {
        clear: left;
    }
}

@media (max-width: 991px) {
    * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }


    #page, #header, .content, .reference, .referencenb, .news, .kontosoby, #subnav, #addressbar, #signbar {
        max-width: 960px;
        width: 100%;
    }

    #header, .content, .reference, .referencenb, .news, .kontosoby, #subnav, #addressbar, #signbar {
        padding-left: 15px;
        padding-right: 15px;
    }

    #header {
        background-position: right top;
    }

    #mainnav li a.mn {
        padding: 0 6px;
        font-size: 10px;
    }

    #subnav {
        height: auto;
    }

    /*#subnav li,*/
    /*#subnav li + li {*/
        /*display: inline-block;*/
        /*padding: 0 10px;*/
        /*width: auto;*/
        /*height: 90px;*/
    /*}*/

    .reference .gi {
         width: 50%;
        text-align: center;
    }

    .reference > .gi:nth-child(2n+1) {
        clear: left;
    }

    .reference .gi span {
        display: block;
        margin: 0 auto 5px;
    }

    .news dl {
        min-height: 150px;
    }

    .news dl,
    .news dl + dl {
        width: 50%;
    }

    .rsi {
        width: 50%;
    }

    .rsi dt, .rsi dd {
        width: 100%;
    }

    .rsi dd.img {
        width: 100%;
        position: relative;
    }

    .kontosoby .osoba {
        width: 50%;
    }

    .kontosoby > .osoba:nth-child(2n+1) {
        clear:both
    }
}


@media (max-width: 767px) {
    #mainnav {
        display: none;
    }

    #header {
        height: 514px;
    }
    #subnav li {line-height:20px;padding: 25px 0;}
    /*#subnav li,*/
    /*#subnav li + li {*/
        /*width: 50%;*/
        /*display: table;*/
        /*line-height: inherit;*/
    /*}*/

    #subnav li a {
        font-size: 12px;
        /*display: table-cell;*/
        vertical-align: middle;
        line-height: inherit;
        padding: 10px 0 !important;
    }

    #subnav li:nth-child(3) {
        background: none;
    }

    .slogan {
        font-size: 24px;
    }

    .btn-nav {
        display: block;
        position: absolute;
        top: 28px;
        right: 15px;
        background-color: #fff;
        border-radius: 5px;
        border: 0;
        padding: 7px 10px;
        cursor: pointer;
    }

    .btn-nav span {
        width: 15px;
        height: 2px;
        background-color: #000101;
        display: block;
        margin: 3px 0;
    }

    #mininav.open {
        display: block;
    }

    #mininav {
        display: none;
        position: absolute;
        margin: 0;
        left: 0;
        width: 100%;
        background-color: #000101;
        z-index: 1;
    }

    #mininav li {
        padding: 2px 15px;
    }

    #mininav a {
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
        position: relative;
        font-size: 14px;
    }

    .reference .gi {
        width: 100%;
    }

    .news dl,
    .news dl + dl {
        width: 100%;
    }

    .rsi {
        width: 100%;
    }

    .rsi dt, .rsi dd {
        width: 100%;
    }

    .rsi dd.img {
        width: 100%;
        margin-bottom: 30px;
    }

    .rsi dd.img span {
        width: initial;
    }

    .reference .gi {
        width: 50%;
    }

    .pobocka .item,
    .pobocka iframe {
        float: none;
        width: 100%;
    }


    #skfleft, #skfright {
        width: 100%;
    }
}




@media (max-width: 577px) {
    .reference .gi {
        width: 100%;
    }

    .kontosoby .osoba {
        width: 100%;
    }

    #skf textarea {
        width: 240px;
    }
}

.table-responsive {
    overflow-y: hidden;
}