/* $primary: #04a1e5 */

#top > * {
    border-color: transparent;
}

@media (max-width: 991px) {
    #root {
        min-width:0;
    }
    /* Responsive video */
    .embed-responsive {
        position: relative;
        display: block;
        width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .embed-responsive::before {
        content: '';
        display: block;
        padding-top: 56.25%;
    }

    .embed-responsive .embed-responsive-item, .embed-responsive embed, .embed-responsive iframe, .embed-responsive object, .embed-responsive video {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    iframe {
        height: auto;
    }

    iframe + iframe,
    .embed-responsive + .embed-responsive {
        margin-top: 1.5rem;
    }

    /* Responsive table */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        margin-bottom: 18px;
    }

    .table-responsive table {
        margin-bottom: 0;
    }

    /* General */
    #root {
        min-width: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    #content,
    #footer {
        width: 100%;
    }

    /* Header */
    #top {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        margin: 0 -15px;
    }

    #top > * {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
    }

    #top::after {
        width: 70%;
        left: -10px;
    }

    #top img {
        height: auto;
    }

    #pw,
    #logo {
        max-width: 45%;
    }

    #pw,
    #logo a {
        background-size: contain;
        background-position: left center;
    }

    #pw {
        top: 0;
        width: 250px;
        position: relative;
        margin: 0;
    }

    #logo {
        margin: 0;
        width: 40%;
    }

    #logo a {
        padding-bottom: 15%;
    }

    #nav {
        display: none;
    }

    /* featured */
    #featured {
        margin-left: -15px;
        margin-right: -15px;
    }

    #featured article > div {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    #featured h1, #featured h2, #featured h3, #featured h4, #featured h5, #featured h6 {
        padding: 30px;
        font-size: 5em;
    }

    #featured p {
        padding-left: 30px;
    }

    /* Weather widget */
    .weather {
        display: none;
    }

    /* Home boxes */
    .list-b {
        display: flex;
        flex-wrap: wrap;
    }

    .list-b li {
        height: auto;
        margin-bottom: 20px;
    }

    .list-b a {
        height: auto;
        padding-bottom: 50px;
        min-height: 100%;
    }

    /* Home : Breaking news slider */
    .slider-a ul {
        padding-right: 15px;
    }

    /* Home news */
    .news-a {
        display: flex;
        flex-wrap: wrap;
    }

    .news-a > * {
        width: 33.33333%;
    }

    .news-a > p {
        min-width: 195px;
        margin-left: auto;
    }

    .news-a h1, .news-a h2, .news-a h3, .news-a h4, .news-a h5, .news-a h6 {
        min-height: auto;
    }

    .news-a > p a {
        padding: 50px 10px 50px 115px;
    }

    /* Home : Video  */
    .module-d {
        margin-bottom: 0;
    }

    .module-d .double.b {
        display: flex;
    }

    .module-d .double.b > * {
        width: auto;
    }

    .module-d .double > .image-b {
        margin: 0;
        width: 100%;
    }

    /* TODO : Usunąć z kodu - nie wnosi żadnej funckjonalności*/
    .module-d .double > .image-b .toggle {
        position: absolute;
        margin-top: -10px;
        right: 0;
    }

    /* Container columns */
    .cols-a > header:first-child + *, .cols-a > *:first-child {
        width: 70%;
        padding-right: 30px;
    }

    .cols-a > header:first-child, .cols-a > aside {
        width: 30%;
    }

    /* Content */
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: .75rem;
    }

    li, dt, dd, p, figure, th, td, caption, legend, pre,
    .link-a {
        font-size: .75rem;
    }

    ul, ol, dd, blockquote {
        padding-left: 60px;
    }

    ul li:after {
        left: -20px;
    }

    /* Aside Module Badge*/
    .module-b h1.a:before, .module-b h2.a:before, .module-b h3.a:before, .module-b h4.a:before, .module-b h5.a:before, .module-b h6.a:before {
        width: 25px;
        left: -25px;
    }

    .module-b h1.a, .module-b h2.a, .module-b h3.a, .module-b h4.a, .module-b h5.a, .module-b h6.a {
        font-size: 1.125rem;
    }

    .module-b h1.a a, .module-b h2.a a, .module-b h3.a a, .module-b h4.a a, .module-b h5.a a, .module-b h6.a a, .module-b h1.a .title, .module-b h2.a .title, .module-b h3.a .title, .module-b h4.a .title, .module-b h5.a .title, .module-b h6.a .title {
        left: -15px;
    }

    /* Footer */
    #footer nav {
        display: flex;
        flex-wrap: wrap;
    }

    #footer nav > * {
        width: auto;
    }

    #footer nav > *:first-child {
        width: auto;
        flex: 1;
    }

    #footer nav > #social {
        padding-left: 40px;
    }

    #footer li.sub:before {
        left: -10px;
    }

    /* Contact page */
    .module-c {
        padding-left: 0;
    }

    .module-c h1:first-child {
        margin-left: 0;
    }

    .module-c h1:first-child img {
        position: static;
        float: right;
    }

    /* Services page */
    .services > * {
        height: auto;
        min-height: 115px;
        width: 65%;
    }

    .services > *:not(:last-child) {
        border-bottom: 1px dashed #dddddd;
        padding-bottom: 1.5rem;
    }

    .services > *:not(:last-child) {
        margin-bottom: 2rem;
    }

    .services:before {
        display: none;
    }

    .services .no {
        right: -60px;
    }

    .services > *:nth-child(2n) .no {
        left: -60px;
    }

}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    #top::after {
        width: 100%;
        left: 0;
    }

    /*featured */
    #featured h1, #featured h2, #featured h3, #featured h4, #featured h5, #featured h6 {
        font-size: 4em;
    }

    /* Home boxes */
    .list-b li {
        width: 50%;
        margin-bottom: 20px;
    }

    .list-b li .img img {
        min-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Home : Breaking news slider */
    .slider-a h1, .slider-a h2, .slider-a h3, .slider-a h4, .slider-a h5, .slider-a h6 {
        position: relative;
        margin: 0;
        background-color: #fe0101;
        border-radius: 3px 3px 0 0;
    }

    .slider-a h1:after, .slider-a h2:after, .slider-a h3:after, .slider-a h4:after, .slider-a h5:after, .slider-a h6:after {
        width: auto;
        height: 1px;
        left: 15px;
        right: 15px;
        top: 100%;
        margin: 0;
    }

    .slider-a ul {
        padding-left: 15px;
        border-top-left-radius: 0;
    }

    /* Home news */
    .news-a > * {
        width: 50%;
    }

    /* Container columns*/
    .cols-a > header:first-child + *, .cols-a > * {
        width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 2rem;
    }

    /* Content */
    li, dt, dd, p, figure, th, td, caption, legend, pre,
    .link-a {
        font-size: .9rem;
    }

    ul, ol, dd, blockquote {
        padding-left: 30px;
    }

    /* Aside Module Badge*/
    .module-b h1.a:before, .module-b h2.a:before, .module-b h3.a:before, .module-b h4.a:before, .module-b h5.a:before, .module-b h6.a:before {
        width: 10px;
        left: -10px;
    }

    .module-b h1.a a, .module-b h2.a a, .module-b h3.a a, .module-b h4.a a, .module-b h5.a a, .module-b h6.a a, .module-b h1.a .title, .module-b h2.a .title, .module-b h3.a .title, .module-b h4.a .title, .module-b h5.a .title, .module-b h6.a .title {
        left: -5px;
    }

    /* Footer */
    #footer {
        font-size: 10px;
    }

    #footer nav > #social {
        width: 100%;
        max-width: unset;
        padding: 0;
        margin-left: auto;
        text-align: right;
    }

    #footer nav > #social li {
        display: inline-block;
    }

    /* Contact page */
    .gallery-a {
        display: flex;
        flex-wrap: wrap;
        margin-left: -10px;
        margin-right: -10px;
    }

    .gallery-a li {
        width: 33.33333%;
        border-bottom: 1px solid #d9d9d9;
        padding-left: 10px;
        padding-right: 10px;
        border-left: none;
    }

    .gallery-a li:nth-child(4n) + li {
        clear: none;
    }

    .gallery-a li:nth-child(3n) + li {
        clear: both;
    }

    .gallery-a li:nth-child(4n-3):before {
        display: none;
    }

    /* Services page */
    .services > * {
        width: 85%;
    }
}

@media (max-width: 540px) {
    #top {
        flex-wrap: wrap;
        padding-top: 15px;
    }

    #logo {
        width: 50%;
    }

    .mod_mobile_menu {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    /* Home boxes */
    .list-b .title {
        font-size: 1.4em;
        min-height: 43px;
    }

    /* Home news */
    .news-a > * {
        width: 100%;
    }

    /* Home : Video  */
    .module-d .double.b .list-c {
        display: none;
    }

    /* Footer */
    #footer nav > * {
        width: 100%;
    }

    #footer > p {
        text-align: center;
    }

    #footer #author {
        position: static;
        display: block;
    }

    /* Contact page */
    .module-c h1:first-child img {
        display: none;
    }

    .gallery-a li {
        width: 50%;
    }

    /* Services page */
    .services figure {
        position: static;
        margin-bottom: 1rem;
    }

    .services > * {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }

    .services > *,
    .services > *:nth-child(2n) {
        padding-left: 0;
        padding-right: 0;
    }

    .services .no {
        position: static;
        order: -2;
    }

    .services h1, .services h2, .services h3, .services h4, .services h5, .services h6 {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 1.5em;
    }

    .services ul, .services ol, .services p {
        text-align: center !important;
    }
}

@media (max-width: 365px) {
    /* Home boxes */
    .list-b li {
        width: 100%;
    }

    .list-b li .img img {
        width: 100%;
    }
}

/* Mobile menu */
.mod_mobile_menu {
    order: 1;
    white-space: nowrap;
}

.mobile_menu.active {
    height: 100% !important;
}

.mobile_menu .inner {
    background: #f4f4f4;
}

.mobile_menu .inner > div {
    padding: 1.5rem 1rem;
}

.mobile_menu .inner *[class^="mod_"] {
    margin-bottom: 0;
}

.mobile_menu .inner .mod_navigation {
    padding: 0;
}

.mobile_menu .inner .mod_navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.mobile_menu .inner .mod_navigation ul li {
    margin: 0;
    padding: 0;
}

.mobile_menu .inner .mod_navigation a,
.mobile_menu .inner .mod_navigation span {
    background-color: #fff;
    border-bottom: 1px solid #dddddd;
    color: #5c5c5c;
    display: block;
    padding: 15px;
    text-decoration: none;
}

.mobile_menu .inner .mod_navigation li.submenu > a,
.mobile_menu .inner .mod_navigation li.submenu > span {
    padding-right: 55px;
    position: relative;
}

.mobile_menu .inner .mod_navigation li.submenu > a:after,
.mobile_menu .inner .mod_navigation li.submenu > span:after {
    content: '\e917';
    font-family: 'i';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    right: 0;
    background: rgba(255, 255, 255, .3);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    color: #5c5c5c;
    font-size: 8px;
}

.mobile_menu .inner .mod_navigation li.submenu_show > a:after,
.mobile_menu .inner .mod_navigation li.submenu_show > span:after {
    content: '\e91a';
    font-size: 14px;
}

.mobile_menu .inner .mod_navigation a:hover,
.mobile_menu .inner .mod_navigation a.trail,
.mobile_menu .inner .mod_navigation span.trail {
    color: #04a1e5;
}

.mobile_menu .inner .mod_navigation span.active {
    background-color: #04a1e5;
    color: #fff;
}

.mobile_menu .inner .mod_navigation .level_2 a,
.mobile_menu .inner .mod_navigation .level_2 span {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 15px;
    background-color: rgba(0, 0, 0, .02);
    font-size: .95em;
}

.mobile_menu .inner .mod_navigation .level_2 span.active {
    background-color: #04a1e5;
}

.mobile_menu .inner .mod_navigation .level_3 a, .mobile_menu .inner .mod_navigation .level_3 span {
    padding-left: 25px;
    background-color: rgba(0, 0, 0, .04);
}

.mobile_menu .inner .mod_navigation .level_4 a, .mobile_menu .inner .mod_navigation .level_4 span {
    padding-left: 40px;
    background-color: rgba(0, 0, 0, .06);
}

/* Mobile menu trigger */
.mobile_menu_trigger {
    color: #04a1e5;
    display: none;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 25px;
    border: 1px solid #04a1e5;
    border-radius: 3px;
}

.mobile_menu_trigger__text {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    top: 3px;
    font-size: 18px;
}

.mobile_menu_trigger .hamburger {
    width: 30px;
    display: inline-block;
    vert-align: middle;
    vertical-align: middle;
}

.mobile_menu_trigger .hamburger::after, .mobile_menu_trigger .hamburger::before,
.mobile_menu_trigger .hamburger i {
    background-color: currentColor;
    border-radius: 3px;
    content: '';
    display: block;
    height: 3px;
    margin: 5px 0;
    transition: all .2s ease-in-out;
}

.mobile_menu_trigger.active .hamburger:before {
    transform: translateY(8px) rotate(135deg);
}

.mobile_menu_trigger.active .hamburger:after {
    transform: translateY(-8px) rotate(-135deg);
}

.mobile_menu_trigger.active .hamburger i {
    transform: scale(0);
}
