html {
    box-sizing: border-box;
}

*,
*::after,
*::before {
    box-sizing: inherit;
}

.container {
    width: auto;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    background: #fff;
}

.container::after {
    clear: both;
    content: "";
    display: table;
}

#content {
    background: #fff;
}

#block-basic-content {
    padding: 1em 2em 2em 2em;
}

.no-sidebars #content {
    width: 100%;
}

.one-sidebar.sidebar-second #content {
    width: 100%;
}

/********** COOKIE **********/

.eu-cookie-compliance-message p {
    font-size: 0.9em;
    font-weight: normal;
}

#sliding-popup {
    background: none;
    background-color: rgb(111, 111, 111, 0.9)
}

#popup-buttons button,
#popup-text button {
    font-family: 'Comfortaa', Century Gothic, sans-serif;
    font-weight: normal;
    text-decoration: none;
    padding: 5px;
    color: #333;
    margin-right: 1em;
    margin-top: 1em;
    background: #fff;
}

#popup-buttons button:hover,
#popup-text button:hover {
    background: #f0f0f0;
}


/********** HEADER **********/

#header {
    background: #ccc;
}

#header-region {
    background: #fff;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.top-bar__contact p {
    margin: 0;
    line-height: 1.6;
}

#site-name-top {
    margin: 0;
    font-family: 'Cabin', serif;
    color: #8ba08b;
    text-transform: uppercase;
}

#site-name-bottom {
    margin: 0;
    font-family: 'Cabin', serif;
    color: #777;
}

#site-name-top a {
    color: #8ba08b;
}

#site-name-top a:hover {
    color: #666;
}

#superfish-main-toggle {
    clear: both;
    float: left;
}

#block-bip {
    float: right;
    margin: 8px 8px 0 0;
}

#block-bip .quickedit-field img {
    margin: 0;
}

#block-bip p {
    margin: 0;
}

#high-contrast-switch a {
    padding: 6px 7px 5px 7px;
    background-color: #444;
    color: #fff;
    line-height: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

#high-contrast-switch a:hover {
    background-color: #111;
    color: #ffff00
}

#block-highcontrast {
    float: right;
    margin: 10px 10px 0 0;
}

#block-zmianarozmiarutekstu {
    float: right;
}

a#text_resize_increase {
    display: block;
    float: right;
    margin: 6px 10px 0 0;
    color: #444;
    font-size: 21px;
    font-weight: 700;
}

a#text_resize_decrease {
    display: block;
    float: right;
    margin: 11px 10px 0 0;
    color: #444;
    font-size: 16px;
    font-weight: 700;
}

a#text_resize_increase:hover {
    color: #8ba08b;
}

a#text_resize_decrease:hover {
    color: #8ba08b;
}

#block-slider-block {
    clear: both;
}

#views_slideshow_cycle_teaser_section_slider-block_1 {
    width: 100% !important;
}

/********** KOMUNIKATY **********/

#block-komunikat1,
#block-komunikat2 {
    overflow: auto;
    width: 100%;
    margin-top: 0.5em;
    margin-bottom: 2em;
    background: #eee;
}

#block-komunikat1 h2,
#block-komunikat2 h2 {
    padding: 0.2em;
    margin: 0;
    background: #666;
    border-left: 30px solid #8ba08b;
    text-align: center;
    color: #fff;
    font-weight: 300;
    line-height: 2em;
}

#block-komunikat1 p,
#block-komunikat2 p {
    padding-left: 2%;
    padding-right: 2%;
}

/********** SIDEBAR **********/

#sidebar-second {
    margin-bottom: 2em;
    background: none;
}

#sidebar-second h2 {
    padding: 0.2em;
    border-left: 30px solid #8ba08b;
    background: #666;
    text-align: center;
    color: #fff;
    font-weight: 300;
    line-height: 2em;
}

#sidebar-second a {
    text-decoration: none;
}

#block-basic-search {
    padding-bottom: 60px;
    background: #eee;
}

/********** FOOTER **********/


.footer {
    padding: 24px 0;
    clear: both;
}

.footer .container {
    background: #8ba08b;
    color: #fff;
}

.footer__main {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.footer__address,
.footer__contact {
    line-height: 1.6;
}

.footer__links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links li {
    margin: 0 0 6px 0;
}

.footer__links li:last-child {
    margin-bottom: 0;
}

.footer__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer h2 {
    padding-left: 1em;
    background: #2c8e81;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 2em;
}

#block-copyright p,
#block-zoum p,
#block-drupal p {
    margin: 0;
    text-align: center;
}

/********** RESPONSIVE STYLES **********/

@media screen and (min-width: 240px) {

    .wydarzenia__image div,
    .aktualnosci__image div {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    #site-name-top {
        padding: 20px 20px 0px 20px;
        font-size: 1.6em;
    }

    #site-name-bottom {
        padding: 0px 20px 20px 20px;
        font-size: 1em;
        letter-spacing: 1px;
    }

    #block-highcontrast,
    #block-zmianarozmiarutekstu
    {
        display: none;
    }

    #block-komunikat1 h2,
    #block-komunikat2 h2,
    #sidebar-second h2 {
        font-size: 17px;
    }

    #footer .quickedit-field img {
        margin: 0px;
    }

    #block-copyright {
        margin: 0px;
    }

    #block-zoum {
        float: right;
        margin: 0em 1em 1em 1em;
    }

    #block-drupal {
        float: right;
        margin: 1.1em 0.5em 1em 0.5em;
    }

    .no-sidebars #content {
        display: block;
        float: left;
        width: 100%;
        margin-right: 2%;
        margin-left: 2%;
    }

    .one-sidebar.sidebar-second #content {
        float: left;
        display: block;
        width: 92%;
        margin-top: 1.5em;
        margin-right: 4%;
        margin-left: 4%;
    }

    #sidebar-second {
        clear: both;
        display: block;
        width: 298px;
        margin-left: auto;
        margin-right: auto;
    }

    #footer {
        margin-left: auto;
        margin-right: auto;
        background: #ccc;
    }

}


@media screen and (min-width: 640px) {

    .wydarzenia__image div,
    .aktualnosci__image div {
        display: inline-block;
        margin: 0.4em;
    }

    #site-name-top {
        padding: 30px 30px 0px 30px;
        font-size: 2.1em;
    }

    #site-name-bottom {
        padding: 0px 30px 40px 30px;
        font-size: 1.1em;
    }

    #block-bip,
    #block-highcontrast,
    #block-zmianarozmiarutekstu {
        display: inline;
    }

    #block-komunikat1 h2,
    #block-komunikat2 h2,
    #sidebar-second h2 {
        font-size: 20px;
    }

    .one-sidebar.sidebar-second #content {
        float: left;
        display: block;
        margin-top: 1.5em;
        margin-right: 2%;
        margin-left: 2%;
        width: 96%;
    }

    #sidebar-second {
        clear: both;
        display: block;
        width: 298px;
        margin-right: auto;
        margin-left: auto;
    }

    #footer {
        width: 100%;
    }

    #block-zoum {
        margin: 1em 1em 1em 1em;
    }

}

@media (max-width: 768px) {
        .top-bar {
        display: block;
    }
        .top-bar__contact {
        margin: 0 12px 12px 12px;
    }
}

@media screen and (min-width: 960px) {

    .one-sidebar.sidebar-second #content {
        float: left;
        display: block;
        margin-top: 1.5em;
        margin-right: 2%;
        margin-left: 2%;
        width: 69%;
    }

    #sidebar-second {
        clear: none;
        float: left;
        display: block;
        width: 25%;
        margin-right: 2%;
        margin-left: 0%;
    }

}

/* [23042020] */

ul.sf-menu ul {
    margin-top: -5px !important;
    margin-left: -1px !important;
}

.sf-depth-1.menuparent.sfHover > a.sf-with-ul {
    color:#7BA267 !important;
}

.basic__body {
    background-color: #FFF !important;
    position: relative;
}

#superfish-main {
    background: #7ba267 !important;
    padding-left: 20px !important;
    border-left: none !important;
    border-top: 6px solid #eef1ee;
}

div.sf-accordion-toggle.sf-style-white a { 
    float: none;
    border-right:0px;
}

#superfish-main li {
    float: none !important;
    display: inline-block !important;
}

#superfish-main.sf-style-white {
    float: none !important;
}

#block-mainnavigation #superfish-main-toggle {
    border-left:0px;
    width:100%;
    margin-bottom:6px;
    background-color: #7BA267;
}

#block-mainnavigation {
    border-bottom:6px solid #EEF1EE;
}

#superfish-main-accordion {
    margin-bottom:6px;
}

#superfish-main-accordion li {
    background: #7BA267 !important;
    color:#fff;
}

#superfish-main-accordion li.sf-depth-1 {
    border-left:0px !important;
    border-right:0px !important;
}

#superfish-main-accordion li.sf-depth-1 a:hover {
    color:#fff !important;
}

#superfish-main-accordion li.sf-depth-2 a {
    color:#fff !important;
}

#superfish-main-accordion li.sf-depth-2 a:hover {
    color:#fff !important;
}

footer .container {
    background: #666666 !important;
    color: #fff !important;
    margin-top: 6px !important;
    padding:20px;
    font-size:14px !important;
}

footer .container a {
    color: #bdd3bd;
}
footer .basic__body {
    background-color: transparent !important;
}

#site-name-bottom {
    color: #9c948d !important;
    padding: 0px 30px 30px 30px !important;
}

#site-name-top a {
    color: #7BA267 !important;
}

body {
    background-color: #eef1ee !important;
}

#header {
    background: none !important;
}

.header-contact {
    position:absolute;
    right:15px;
    bottom:15px;
    text-align:right;
    font-size:16px;
}

ul.sf-menu.sf-style-white a {
    background: transparent !important;
    /*background: linear-gradient(0deg, rgba(102, 119, 102, 1) 0%, rgba(117, 137, 117, 1) 51%) !important;*/
    padding: 6px 12px;
}

#footer {
    background: none !important;
    margin-bottom: 10px;
}

#block-slider-block {
    margin-top: 0px !important;
    border-bottom: 6px solid #eef1ee !important;
}

ul.sf-menu.sf-style-white li {
    background: transparent;
}

ul.sf-menu.sf-style-white > li:hover {
    background-color: #e2e8e2;
}

ul.sf-menu.sf-style-white li:hover a {
    color:#7BA267;
}

li.sf-depth-1 {
    border-right: 3px solid transparent !important;
}

li.sf-depth-1:first-child {
    border-left: 0px solid transparent !important;
}

a.sf-depth-1:hover {
    background-color: #8ba08b !important;
}

li.sf-depth-2 a.sf-depth-2 {
    color: #7BA267 !important;
}

ul.sf-menu.sf-style-white li li {
    background-color: #eef1ee !important;
}

#header-region {
    margin-top:8px !important;
}

span.rok {
    padding:5px 10px;
    background-color: #eef1ee;
    color: #7ba267;
    width:65px;
    display:inline-block;
    text-align: center;
    margin-right:5px;
}

#block-basic-page-title {
    text-transform: lowercase !important;
    color:#818181 !important;
}

#block-basic-page-title::first-letter {
    text-transform: uppercase;
}

a#text_resize_decrease {
    z-index: 1;
    position: relative;
    background:none;
    background-color: #fff;
    color:#FF5656;
    text-indent: 0px;
    text-align: center;
    border:2px solid #FF5656;
    height: 32px;
    width: 32px;
    margin: 6px 10px 0 0;
    font-size:17px;
    line-height: 32px;
}

a#text_resize_decrease sup {
    display: none;
}

a#text_resize_increase {
    z-index: 1;
    position: relative;
    background:none;
    background-color: #fff;
    color:#FF5656;
    text-indent: 0px;
    text-align: center;
    border:2px solid #FF5656;
    height: 32px;
    width: 32px;
    margin: 6px 10px 0 0;
    font-size:17px;
    line-height: 32px;
}

a#text_resize_increase sup {
    position: absolute;
    top:8px;
    left:2px;
    font-weight: bold;
    font-size:18px;
}

#block-highcontrast {
    margin: 6px 10px 0 0;
}

#high-contrast-switch {
    z-index: 1;
    position: relative;
    background:none;
    background-color: #444444;
    text-indent: 0px;
    text-align: center;
    border:2px solid #444444;
    height: 32px;
    width: 32px;
    line-height: 32px;
}

#high-contrast-switch a {
    padding: 0px;
    font-size:17px;
}

#high-contrast-switch a:hover,
#high-contrast-switch #edit-toggle-link:hover {
    background-color: none !important;
}

#block-bip {
    z-index: 1;
    position: relative;
    background:none;
    background-color: #444444;
    text-indent: 0px;
    text-align: center;
    border:2px solid #E42520;
    height: 32px;
    width: 32px;
    margin: 6px 10px 0 0;
    line-height: 32px;
    box-sizing: border-box;
    overflow: hidden;
}

#block-um {
    z-index: 1;
    position: relative;
    background: none;
    text-indent: 0px;
    text-align: center;
    margin: 6px 10px 0 0;
    line-height: 33px;
    box-sizing: border-box;
    overflow: hidden;
    float:right;
}

#block-bip img {
    display: none;
}

#block-bip img:hover {
    opacity: 0;
}
#block-bip a {
    width:28px !important;
    height: 28px !important;
    display:block;
}
#block-bip a:after {
    height: 14px;
    width:28px;
    content: "";
    display: block;
    position: absolute;
    background-color: #E42520;
    bottom:0px;
}
#block-bip a:before {
    height: 14px;
    width:28px;
    content: "bip";
    display: block;
    position: absolute;
    color: #E42520;
    top:0px;
    line-height: 14px;
    font-size:10px;
    font-weight: bold;
    text-align: right;
    padding-right:2px;
}

.logo {
    width:60%;
    max-width:600px;
}

.footerbox {
    display: table;
    width:100%;
}
.footerbox > * {
    display: table-cell;
    vertical-align: middle;
}

h1 {
    color: #fff;
    background-color: #666666;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    font-size:22px;
    font-weight: normal;
}

.footerbox > *:last-child {
    text-align: right;
}

hr {
    border-bottom: 1px solid #a8c196;
}

.content a {
    color: #7ba267;
}

.footerbox > *:nth-child(2),
.footerbox > *:nth-child(3) {
    padding-left:30px;
    border-left: 1px solid #7C7C7C;
}

.greenbox {
    border: 1px solid #c8cdc6;
    display: inline-block;
    padding: 20px 80px;
    background-color: #eef1ee;
    margin: 20px auto;
}

@media screen and (max-width: 960px) {

    ul.sf-menu.sf-style-white a, ul.sf-menu.sf-style-white a:visited {
        font-size: 12px !important;
    }
    
}

@media screen and (max-width: 780px) {

    .header-contact {
        display: none;
    }
    
    .footerbox > *:first-child {
        display: none;
    }

    h1 {
        font-size:16px;
    }

}

@media screen and (max-width: 640px) {
    
    .logo {
        max-width: 100%;
        width:100%;
    }
    
    .footerbox > *:nth-child(2) {
        display: none;
    }
    
}
