@media (max-width: 1499px) {
    .slick-next {
        right: -30px !important;
    }
    .slick-prev {
        left: -30px !important;
    }
}

@media (max-width: 1399px) {
    #nav .navbar .nav > li ul > li.item-163 > ul {
        right: 95%;
        left: initial;
    }

    .slider .slide {
        height: 410px;
    }
    .slider .slide h2 {
        font-size: 44px;
        line-height: 50px;
        letter-spacing: -0.88px;
    }

    .boxes .box a, .news .box a {
        padding: 10px;
    }
    .boxes .box .photo {
        height: 220px;
    }
    .boxes .box .content, .news .box .content {
        padding: 20px 20px 10px 20px;
    }

    .slick-dots {
        margin-top: 30px;
    }

    .links {
        padding-top: 50px;
        padding-bottom: 50px;
        background: linear-gradient(to right,#f0f0f0 0,#f0f0f0 calc((.75 * 1140px) + ((100vw - 1140px)/ 2) - 2 * 15px),#eaeaea calc((.75 * 1140px) + ((100vw - 1140px)/ 2) - 2 * 15px),#eaeaea 100%);
    }

    .moduletable.sticky-top {
        top: 73px;
    }

    .anchor-items ul li a {
        padding: 20px;
    }

    .hero-module .photo {
        height: 400px;
    }
}

@media (max-width: 1299px) {
    #main .article .col-xl-8 {
        padding-right: 40px;
    }

    .page-header h1, .box-headline h1 {
        font-size: 34px;
    }
}

@media (max-width: 1199px) {
    .wrapper {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #main .article {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    #main .article .col-xl-8 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-header h1, .box-headline h1 {
        font-size: 31px;
    }

    .item-page h2 {
        font-size: 36px;
        line-height: 44px;
    }
    .item-page h3 {
        font-size: 27px;
        line-height: 33px;
    }

    .contact-form {
        padding-top: 40px;
    }

    #nav .navbar .nav > li > a, #nav .navbar .nav > li > span {
        padding: 11px 10px 13px 10px;
    }

    .slider .slide {
        height: 380px;
    }
    .slider .slide h2 {
        font-size: 40px;
        line-height: 46px;
        letter-spacing: -0.8px;
    }

    .boxes .headline h2, .news .headline h2, .about .content h2 {
        font-size: 38px;
    }
    .boxes .box:nth-child(n+3), .news .box:nth-child(n+3) {
        padding-top: 20px;
    }

    .links {
        padding-top: 40px;
        padding-bottom: 40px;
        background: linear-gradient(to right,#f0f0f0 0,#f0f0f0 calc((.75 * 940px) + ((100vw - 940px)/ 2) - 2 * 15px),#eaeaea calc((.75 * 940px) + ((100vw - 940px)/ 2) - 2 * 15px),#eaeaea 100%);
    }
    .links .box h4 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #footer .copy p {
        font-size: 13px;
    }

    .hero-module .content .box {
        padding: 30px 35px;
    }

    .benefit-items .item {
        padding-top: 20px;
        padding-left: 25px;
        padding-right: 25px;
    }
    .benefit-items .item img {
        max-height: 100px;
    }

    .tabs .row.g-0 {
        flex-wrap: nowrap;
        overflow-y: hidden;
        overflow-x: auto;
    }
    .tabs .tab a {
        height: 100%;
        text-align: center;
    }

    .tab-content {
        display: block !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-top: 1px solid #eaeaea;
    }
    .tab-content:last-of-type {
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 30px;
    }
    .tab-content .row-content {
        display: none;
    }
    .tab-content.tab-active .row-content {
        display: flex;
    }
    .tab-content.tab-active .tab-headline .title {
        color: var(--main);
        padding-bottom: 35px;
    }
    .tab-content.tab-active .tab-headline .title::after {
        transform: rotate(180deg);
    }

    .text-images.client-portals .col-xl-6:first-of-type .content .button {
        margin-top: -5px !important;
    }
}

@media (max-width: 991px) {
    #nav .navbar {
        margin-top: 0;
    }
    #nav .navbar .navbar-toggle {
        display: block;
        border: 0;
        cursor: pointer;
    }
    #nav .navbar .collapse {
        display: block;
    }
    #nav .navbar .nav {
        width: 300px;
        max-height: 85vh;
        flex-direction: column;
        flex-wrap: nowrap;
        position: absolute;
        top: 45px;
        right: -5px;
        padding: 20px 10px;
        background-color: #FFF;
        box-shadow: 0 8px 15px rgba(0, 0, 0, .15);
        transform-origin: 50% 0;
        transform: scaleY(0);
        transition-duration: 250ms;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 9999;
    }
    #nav .navbar .nav.active {
        transform: scaleY(1);
    }
    #nav .navbar .nav > li > a, 
    #nav .navbar .nav > li > span {
        display: block;
        color: #000;
        text-shadow: unset;
        border-bottom: 0;
    }
    #nav .navbar .nav > li.parent:not(.item-131) > a::after {
        display: none;
    }
    #nav .navbar .nav > li ul {
        display: none;
        width: 92%;
        position: relative;
        padding-top: 0;
        top: 0; left: 8%;
        opacity: 1;
        box-shadow: unset;
    }
    #nav .navbar .nav > li:hover > ul,
    #nav .navbar .nav > li:hover > ul > li:hover > ul {
        display: none;
    }
    #nav .navbar .nav > li.is-open ul {
        display: block;
    }
    #nav .navbar .nav > li ul > li > a, 
    #nav .navbar .nav > li ul > li > span {
        padding: 10px 20px;
        border: 0;
    }
    #nav .navbar .nav > li ul > li > ul {
        display: none !important;
    }

    .menu-toggle {
        position: absolute !important;
        top: 0; right: 0;
        cursor: pointer !important;
        color: var(--second) !important;
        font-size: 12px !important;
        padding: 12px !important;
    }
    #nav .navbar .nav > li.is-open .menu-toggle {
        transform: rotate(180deg);
    }

    .wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    #main .article, .boxes {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .breadcrumb {
        padding: 0 0 25px 5px !important;
        margin: 0 !important;
    }

    .item-page h1, .item-page h2, .item-page h3, .item-page h4, .item-page h5 {
        padding: 10px 0;
    }
    .item-page h1, .item-page h2 {
        font-size: 30px;
        line-height: 38px;
    }
    .item-page h3 {
        font-size: 25px;
        line-height: 31px;
    }
    .item-page h4 {
        font-size: 20px;
        line-height: 26px;
    }

    .slider .slide {
        height: 320px;
    }
    .slider .slide .bg {
        padding-left: 15px;
    }
    .slider .slide h2 {
        font-size: 34px;
        line-height: 40px;
        letter-spacing: -0.68px;
    }
    .slider .slide p {
        font-size: 17px;
        line-height: 28px;
        padding: 15px 0 0 2px;
    }
    .slider .slide a {
        height: 46px;
        line-height: 44px;
        margin-top: 25px;
    }

    .boxes .headline h2, .news .headline h2, .about .content h2 {
        font-size: 36px;
        padding-bottom: 25px;
    }
    .boxes .box .photo {
        height: 190px;
    }
    .boxes .box .content, .news .box .content {
        padding: 20px 15px 10px 15px;
    }
    .boxes .box .content h3, .news .box .content h3 {
        font-size: 22px;
        padding-bottom: 10px;
    }

    .links {
        background: #f0f0f0;
    }
    .links .box:nth-child(n+3) {
        padding-top: 25px;
    }
    .links .box h4 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    #footer .copy p {
        width: calc(100% - 40px);
    }
    #footer .copy p br {
        display: none;
    }

    .mod-custom.custom, .benefit-items .row, .accordion-items, .boxes-icons, .tabs, .tab-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .benefit-items .item {
        width: 33.333%;
    }

    .tab-headline .title {
        padding-left: 0;
        padding-right: 40px;
    }
    .tab-headline .title::after {
        right: 10px;
    }

    .accordion-button::after {
        width: 30px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    #header {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    #header .logo img {
        max-height: 26px;
    }

    #nav .navbar {
        margin-right: 10px;
    }

    .slider {
        padding-top: 30px;
    }
    .slider .slide {
        height: 330px;
    }
    .slider .slide .bg {
        background-size: auto 65%;
        background-repeat: no-repeat;
        background-position: bottom right;
    }
    .slider .slide h2 {
        font-size: 30px;
        line-height: 36px;
        letter-spacing: -0.6px;
    }
    .slider .slide p {
        font-size: 16px;
        line-height: 23px;
        padding: 10px 0 0 1px;
    }
    .slider .slide a {
        height: 44px;
        line-height: 42px;
        margin-top: 20px;
    }

    .page-header, .box-headline {
        margin-bottom: 25px;
    }
    .page-header h1, .box-headline h1 {
        font-size: 28px;
    }

    .item-page h1, .item-page h2 {
        font-size: 26px;
        line-height: 32px;
    }
    .item-page h3 {
        font-size: 22px;
        line-height: 28px;
    }
    .item-page h4 {
        font-size: 19px;
        line-height: 25px;
    }

    .subpage .boxes {
        padding-bottom: 0 !important;
    }
    .subpage.page-assistance .boxes {
        padding-top: 0 !important;
    }

    .boxes .headline h2, .news .headline h2, .about .content h2 {
        font-size: 30px;
        padding-bottom: 15px;
    }
    .boxes .box:nth-child(n+2), .news .box:nth-child(n+2) {
        padding-top: 15px;
    }
    .boxes .box .content h3, .news .box .content h3 {
        font-size: 20px;
        padding-bottom: 8px;
    }

    .news .box:nth-child(n+2) {
        padding-top: 15px;
    }
    .news .all a {
        margin-top: 20px;
    }

    .links .box h4 {
        font-size: 19px;
        margin-bottom: 10px;
    }
    .links .box ul li {
        margin-top: 2px;
    }
    .links .box .phone {
        font-size: 26px;
        margin-top: 2px;
        margin-bottom: 2px;
    }

    #footer .menu a {
        font-size: 13px;
    }
    #footer .menu a:not(:last-of-type) {
        margin-right: 15px;
    }

    .anchor-items ul {
        overflow-y: hidden;
        overflow-x: auto;
    }
    .anchor-items ul li a {
        white-space: nowrap;
    }

    .hero-module .photo {
        height: 340px;
    }

    .benefit-items .item {
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .benefit-items .item img {
        max-height: 86px;
    }

    .accordion-items .accordion-title:not(:first-of-type) {
        padding-top: 30px;
    }

    .tabs .tab a {
        font-size: 14px;
        padding: 10px 15px;
    }

    .client-portals .col-xl-6:nth-child(n+2) {
        padding-top: 20px;
    }

    .tab-content .col-xl-8 .boxes-icons .box {
        width: 100%;
    }

    .contact-sidebar {
        margin-top: 0 !important;
    }
}

@media (max-width: 575px) {
    .button.button-mini {
        height: 38px;
        line-height: 36px;
        padding: 0 15px;
    }

    #header {
        padding-top: 25px;
        padding-bottom: 25px;
    }
    #header .logo {
        padding-right: 0;
    }
    #header .logo img {
        max-height: 17px;
    }

    #nav .login-menu {
        width: 300px;
        padding: 15px 20px;
    }
    #nav .login-menu .item p {
        font-size: 13px;
    }

    #nav {
        padding-left: 0;
    }
    #nav .navbar {
        margin-right: 5px;
    }
    #nav .navbar .navbar-toggler {
        padding: 10px 7px;
    }
    #nav .navbar .nav {
        left: -90px;
    }

    .slider .slide .bg {
        padding-left: 10px;
        justify-content: flex-start;
        background-size: cover;
        background-position: center right;
    }
    .slider .slide h2 {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.48px;
        padding-top: 20px;
    }
    .slider .slide p {
        font-size: 15px;
        line-height: 22px;
        padding: 8px 0 0 1px;
    }
    .slider .slide a {
        height: 40px;
        line-height: 38px;
        margin-top: 15px;
    }

    .wrapper,
    #main .article {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .page-header, .box-headline {
        margin-bottom: 15px;
    }
    .page-header h1, .box-headline h1 {
        font-size: 25px;
        line-height: 30px;
    }

    .item-page h1, .item-page h2 {
        display: block;
        font-size: 23px;
        line-height: 29px;
    }
    .item-page h3 {
        display: block;
        font-size: 19px;
        line-height: 25px;
    }
    .item-page h4 {
        display: block;
        font-size: 17px;
        line-height: 23px;
    }

    .item-page ul,
    .mod-custom.custom,
    .accordion-items .accordion-title {
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }
    .item-page ol {
        padding-right: calc(var(--bs-gutter-x) * .5);
    }

    .item-page p, .item-page li {
        hyphens: auto;
    }

    /* .item-page img {
        display: block;
        width: 100%;
        float: unset;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
    } */

    .anchor-items {
        display: none;
    }

    .boxes {
        padding-top: 35px;
        padding-bottom: 35px;
    }
    .boxes .headline h2, .news .headline h2, .about .content h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .slick-dots {
        margin-top: 20px;
    }

    .news .box .content {
        padding: 15px 10px 5px 10px;
    }

    .links {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .links .box:nth-child(n+2) {
        padding-top: 15px;
    }
    .links .box h4 {
        position: relative;
        font-size: 17px;
        margin-bottom: 6px;
        cursor: pointer;
    }
    .links .box:not(:last-of-type) h4::after {
        content: "\f107";
        position: relative;
        display: inline-block;
        color: var(--second);
        font-family: "Font Awesome 6 Free";
        font-size: 12px;
        font-weight: 700;
        top: 1px;
        margin-left: 6px;
    }
    .links .box.is-open h4::after {
        content: "\f106";
    }
    .links .box p, .links .box ul li a {
        font-size: 13px;
        line-height: 25px;
    }
    .links .box p:last-of-type {
        max-width: calc(100% - 40px);
    }
    .links .box ul {
        display: none;
    }
    .links .box.is-open ul {
        display: flex;
    }

    #footer .menu a {
        display: block;
    }
    #footer .menu a:not(:last-of-type) {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .scroll-to-top {
        position: absolute;
        right: 10px; bottom: 268px;
    }

    .moduletable.sticky-top {
        top: 70px;
    }

    .anchor-items ul li a {
        padding: 15px;
    }

    .hero-module .content .box {
        padding: 20px 20px;
    }
    .hero-module .photo {
        height: 240px;
    }

    .benefit-items .item {
        width: 50%;
        padding-top: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .benefit-items .item img {
        max-height: 76px;
        margin-bottom: 0;
    }

    .accordion-items .items {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .accordion-items .accordion-header .accordion-button {
        padding: 15px;
    }
    .accordion-body {
        padding: 0 15px 10px 15px;
    }

    .boxes-icons .item {
        padding: 10px 15px 25px 15px;
    }
    .boxes-icons .icon img {
        margin-bottom: 0;
    }
    .boxes-icons .box .content {
        margin-top: -15px;
    }

    .tabs .tab {
        max-width: 80%;
    }

    .form-check-label {
        font-size: 13px;
        line-height: 22px;
    }

    .tab-content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    .tab-headline .title {
        font-size: 14px !important;
    }
    .tab-headline .title::after {
        top: 11px;
    }
    /* .tab-content .row-content > .col-xl-8 {
        padding-left: 0 !important;
    } */

    .page-nagrody-i-wyroznienia .hero-module .photo {
        height: 160px;
    }
    .page-nagrody-i-wyroznienia .hero-module .photo > div {
        background-size: 130%;
        background-position: center right;
        background-repeat: no-repeat;
    }
}