/*
Theme Name: Kancelaria
Version: 1.0
Theme URI: https://gronix.pl
Author: Dariusz Grochocki (Gronix)
Author URI: https://gronix.pl
*/

/* ogólne */

.visually-hidden-focusable {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 36px;
    border: 3px solid #ffffff;
    border-radius: 4px;
    outline: 2px solid #000000;
    outline-offset: 0px;
    display: inline-block;
    background: #000000;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    display: block;
    text-decoration: none;
}

body {
    font-family: "Mulish", sans-serif;
    background: #ffffff;
    color: #000000;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

.imgfull img,
.imgfull_img {
    width: 100%;
    height: auto;
}

.no_padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row_100 {
    width: 100%;
}

.row_no_gotter {
    --bs-gutter-x: 0;
}

ul.list_clear,
footer ul {
    padding-left: 0;
    margin-bottom: 0;
}

ul.list_clear li,
footer ul li {
    list-style: none;
}

/* focus */

a:focus-visible:not(header a):not(.sec_3 a):not(.team_4 a):not(footer a) {
    outline: 2px solid #000000 !important;
    outline-offset: 2px;
}

.sec_3 a:focus-visible {
    outline: 3px solid #000000 !important;
    outline-offset: -3px;
}

.sec_3_5:active {
    outline: unset !important;
}

.sec_3_5:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px;
}

.homepage button:active,
.homepage header :focus,
.homepage header :focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
    border-radius: 1px;
}

.paged header button:active,
.paged header :focus,
.paged header :focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
    border-radius: 1px;
}

footer a:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 4px;
    border-radius: 1px;
}

/* buttons */

.button1,
.button2 {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    border-radius: 3px;
    padding: 16px 24px;
}

.button1 {
    display: inline-block;
    color: #ffffff;
    background: #121C39;
    text-decoration: none;
    border: 3px solid #121C39;
}

.button1:hover {
    background: #800000;
    border: 3px solid #800000;
}

.button2 {
    display: inline-block;
    color: #1D1D1B;
    background: #ffffff;
    text-decoration: none;
    border: 4px solid #121C39;
}

.button2:hover {
    border: 4px solid #800000;
    color: #800000;
}

.button1:focus,
.button1:focus-visible,
.button2:focus,
.button2:focus-visible {
    outline-offset: 4px !important;
    border-radius: 1px;
}

/* header */

.phone_menu a {
    text-decoration: none;
    color: #ffffff;
    background: #800000;
    padding: 14px 24px;
    display: inline-block;
}

.phone_menu a:hover {
    text-decoration: none;
    color: #ffffff;
    background: #121C39;
}

.paged header {
    background: #fbfbfb;
}

.head_2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.homepage nav a {
    color: #000000;
}

.paged nav a {
    color: #000000;
}

nav a {
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    text-decoration: none;
}

nav a:hover,
nav li.current-menu-item a {
    text-decoration: underline;
    color: #800000;
}

.header_mobile [type="button"] {
    border: 0;
    padding: 0;
    background: unset;
}

.div_mobile {
    height: 100vh;
    height: var(--doc-height);
    overflow: auto;
}

h1,
h2 {
    font-weight: 700;
    color: #800000;
}

h2 {
    font-size: 2.2rem !important;
}

h3:not(.sec_3 ul li h3):not(.sec_5 ul li h3):not(.team_m_2 h3) {
    font-size: 1.5rem !important;
}

/* homepage */

/* section 1*/

.sec_1 {
    position: relative;
}

.sec_1_2 {
    color: #ffffff;
}

.sec_1_2 p:first-child {
    margin-bottom: 2rem;
    font-size: 20px;
}

.sec_1_2 .button2 {
    margin-left: 2rem;
}

/* section 2*/

.sec_2 {
    background: #121C39;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.sec_2 h2 {
    margin-bottom: 2rem;
}

.sec_2_1 {
    background: #ffffff;
    padding: 48px 98px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 32px;
}

/* section 3*/

.sec_3 h2 {
    margin-bottom: 6rem;
}

.sec_3 ul li {
    width: 25%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    position: relative;
}

.sec_3 ul li.sec_3_2 a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

.sec_3 ul li.sec_3_2 p,
.sec_3 ul li.sec_3_2 button {
    display: none;
}

.sec_3 ul li.sec_3_1 img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.sec_3 ul li h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0;
}

.sec_3 ul .modal_1 h3,
.sec_3 ul .modal_2 h3,
.sec_3 ul .modal_4 h3 {
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
}

.sec_3 ul {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.modal_1,
.modal_2,
.modal_4 {
    padding: 2rem;
    background: #121C39;
    color: #ffffff;
    position: relative;
}

.modal_1 {
    width: 200% !important;
    height: 200% !important;
    position: absolute;
    top: 0;
    left: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    z-index: 10;
    overflow: auto;
}

.modal_2 {
    width: 200% !important;
    height: 200% !important;
    position: absolute;
    top: 0;
    right: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    z-index: 10;
    overflow: auto;
}

.row_last .modal_1,
.row_last .modal_2,
.row_last_md .modal_1,
.row_last_md .modal_2,
.row_last_sm .modal_1,
.row_last_sm .modal_2 {
    bottom: 0;
    top: unset !important;
}

.modal_3 {
    display: block !important;
}

/* section 4 */

.sec_4 {
    background: #FBFBFB;
}

.sec_4 ul li {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.sec_4 li h3 {
    margin-bottom: 1.5rem;
}

.sec_4 li a span,
.sec_5_2.sec_5_4 a span,
a.more_link.link_span span {
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

.sec_4 li a,
.sec_5_2.sec_5_4 a,
a.more_link.link_span {
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
}

.sec_4 li a:hover span,
.sec_5_2.sec_5_4 a:hover span,
a.more_link.link_span:hover span {
    border-bottom: 2px solid #800000;
}

.sec_4 li a:focus-visible,
.sec_5_2.sec_5_4 a:focus-visible,
a.more_link.link_span:focus-visible {
    outline-offset: 6px !important;
    outline: 2px solid #000000 !important;
}

.sec_4 li a:focus-visible span,
.sec_5_2.sec_5_4 a:focus-visible span,
a.more_link.link_span:focus-visible span {
    border-bottom: 0;
}

.sec_4 .button1 {
    margin-top: 3rem;
}

/* section 5 */

.sec_5 h2 {
    margin-bottom: 6rem;
}

.sec_5 ul li h3 {
    font-size: 2rem !important;
    margin: 2rem 0;
}

.sec_5 ul li img {
    width: 200px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.sec_5_1 {
    text-transform: uppercase;
    color: #800000;
    font-weight: 700;
}

.sec_5_2 {
    font-size: 16px;
}

.sec_5_2_1 {
    margin-bottom: 2rem;
}

.sec_5_3 {
    width: 100px;
    height: 2px;
    margin: 2rem auto;
    background: #e9e9e9;
}

.sec_5_4 a {
    color: #000000;
}


/* team */

.team_m_0 {
    margin-bottom: 3rem !important;
}

.team_m_0 li {
    margin-bottom: 3rem;
}

.team_m_1 h1 {
    margin-bottom: 3rem;
}

.team_m_1 h2 {
    margin-bottom: 3rem;
}

.team_m_2 {
    background: #fbfbfb;
    height: 100%;
}

.team_m_2_spec {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.team_m_2_spec .team_m_4 {
    padding: 1rem 1rem 1.5rem 1rem !important;
}

.team_m_2_spec .team_m_2_user {
    max-width: 120px !important;
}

.team_m_2_spec .team_m_4 h3 {
    font-size: 1.2rem !important;
    margin-bottom: .5rem !important;
}

.team_m_4 {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.team_m_2 img.team_m_2_user {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.team_m_2.team_m_2b img.team_m_2_user {
    height: 100%;
    width: auto;
}

.team_m_2 h3 {
    margin-bottom: 1rem;
}

.team_m_3 {
    text-transform: uppercase;
    color: #800000;
    font-weight: 700;
    font-size: 16px;
}

.contact_2 a,
.team_m_4 a,
.team_5 a,
.team_2 a {
    color: #000000;
}

.contact_2 a,
a.more_link:hover,
.team_contact a,
.team_5 a,
.team_2 a {
    text-decoration: none !important;
}

.contact_2 a:hover,
.team_contact a:hover,
.team_5 a:hover {
    text-decoration: underline !important;
}

.team_1 {
    display: flex;
}

.team_1 img.team_user {
    width: 300px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.team_2 a {
    text-decoration: none;
}

.team_3 {
    background: #800000 !important;
    color: #ffffff !important;
}

.team_4 p {
    margin-bottom: 3rem;
    font-size: 20px;
}

.team_4 a:focus-visible {
    outline: 3px solid #000000 !important;
    outline-offset: -3px !important;
}

.team_4 ul li a {
    padding: 1rem;
    text-decoration: none;
    color: #000000;
    background: #fbfbfb;
    display: block;
}

.team_4 ul li a:not(.team_4 ul li:last-child a) {
    border-bottom: 1px solid #9e9e9e;
}

.team_4 ul li a:hover {
    background: #800000;
    color: #ffffff;
}

.team_5b {
    padding-left: 4rem;
    padding-top: 4rem;
}

.team_6 {
    margin: 2.5rem 0;
}

.team_0 {
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.team_0.team_0_spec {
    margin-bottom: 3rem !important;
}

.team_contact_2 {
    margin-bottom: 2rem;
}

.team_contact img {
    margin-right: .5rem;
}

.team_m_4 .team_contact img {
    width: 35px !important;
    height: auto;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #800000;
    box-shadow: none;
}

.accordion-button:focus,
.accordion-button:focus-visible,
.accordion-button:active {
    box-shadow: none;
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.accordion-button:after {
    background-image: url('data:image/svg+xml,<svg width="26" height="14" viewBox="0 0 26 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L12.6464 12.6464C12.8417 12.8417 13.1583 12.8417 13.3536 12.6464L25 1" stroke="%23000000" stroke-width="2" stroke-linecap="round"/></svg>');
    background-size: 28px 13px;
    width: 28px;
    height: 13px;
}

.accordion-button:not(.collapsed):after {
    background-image: url('data:image/svg+xml,<svg width="26" height="14" viewBox="0 0 26 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L12.6464 12.6464C12.8417 12.8417 13.1583 12.8417 13.3536 12.6464L25 1" stroke="%23ffffff" stroke-width="2" stroke-linecap="round"/></svg>');
    background-size: 28px 13px;
    width: 28px;
    height: 13px;
}

.accordion-button[aria-expanded="false"]:after {
    transform: unset !important;
}

.accordion-button[aria-expanded="false"] {
    color: #800000 !important;
}

/* kontakt */

iframe.iframe_contact {
    width: 100%;
    height: 400px;
    border: 0
}

/* others */

.section_2_1,
.section_2_2 {
    padding: 32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 32px;
    border-top-right-radius: 0;
}

.section_2_1 {
    color: #ffffff;
}

.section_2_2 {
    color: #000000;
}

.section_2_1 h3,
.section_2_2 h3 {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.section_2_1 {
    background: #0E25C3;
}

.section_2_2 {
    background: #ED830B;
}

.section_2_4 {
    position: relative;
}

@supports (content: "x" / "y") {

    .section_2_4:after {
        content: "" / "";
        background: url(/wp-content/uploads/2024/08/fundacja.png) no-repeat center center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
    }

    .section_2_4_mobile:after {
        content: "" / "";
        background: url(/wp-content/uploads/2024/08/fundacja.png) no-repeat center center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        width: 100%;
        height: 282px;
        top: 0;
        left: 0;
        position: absolute;
    }

}

@supports not (content: "x" / "y") {

    .section_2_4:after {
        content: '';
        background: url(/wp-content/uploads/2024/08/fundacja.png) no-repeat center center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
    }

    .section_2_4_mobile:after {
        content: '';
        background: url(/wp-content/uploads/2024/08/fundacja.png) no-repeat center center;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        width: 100%;
        height: 282px;
        top: 0;
        left: 0;
        position: absolute;
    }

}

.section_2_5 p {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.section_3 {
    background: #fef3ed;
}

.section_4_1 {
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 32px;
}

.section_4_2 {
    border-top-left-radius: 0;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-top: 2rem;
}

.section_4_4 p {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.section_4_2 h2,
.section_4_5 {
    margin-bottom: 3rem;
}

.section_4_5 a {
    display: block;
    width: 100%;
}

.section_5 {
    background: #fef3ed;
}

.section_5 img {
    max-width: 405px;
}

/* footer */

.footer_logo {
    display: inline-block;
}

footer .menu_social img {
    filter: brightness(0) invert(1);
}

footer .menu_social {
    margin-top: 1rem;
}

footer .menu_social a {
    display: block;
}

footer {
    background: #121C39;
}

footer,
footer a {
    color: #ffffff;
}

footer a:not(.priv_photo) {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.priv_photo_2 {
    margin-top: 3rem;
    font-size: 1rem;
}

.priv_photo:hover{
    text-decoration: none !important;
}

/* specjalizacje */

.spec_0 {
    margin-bottom: 3rem;
}

.lista_spec li {
    margin-bottom: 1rem;
}

.lista_spec a {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}

.spec_1 h1 {
    margin-bottom: 2rem;
}

.spec_2 {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.spec_3 {
    height: 100%;
    outline: 2px solid #800000;
    outline-offset: -2px;
    border-radius: 15px;
}

.spec_3 img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.spec_3_b {
    padding: 2rem;
}

.spec_4 li {
    margin-bottom: 3rem;
}

.news_0 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.news_1 .row {
    margin-bottom: 4rem !important;
}

.news_1 h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem !important;
}

.news_2 {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

.news_3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact_1 h1 {
    margin-bottom: 4rem;
}

.contact_1 h2 {
    margin-bottom: 6rem;
}

.contact_2 h3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact_3 {
    margin-top: 6rem;
}

.error_1 {
    margin-top: 3rem;
    margin-bottom: 6rem;
}

/* sticky */

.sticky {
    background: #ffffff;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    position: fixed;
}

.menu_scroll_a {
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -ms-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    top: 0 !important;
    background: #f3f2f2 !important;
}

.menu_scroll_b {
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -ms-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    top: 0;
}

.content_1 a {
    color: #000000;
}

.content_1 a:hover {
    text-decoration: none !important;
}

/* RWD */


@media (min-width: 576px) and (max-width: 991.98px) {

    .sec_3 ul li {
        width: 50% !important;
    }

}

@media (max-width: 575.98px) {

    .sec_1_2 .button2 {
        display: block;
        width: max-content;
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .sec_2_1 {
        padding: 2rem 1.5rem;
    }

    .sec_3_5 {
        border: 0;
        background: unset;
        padding: 5px;
        margin: 0;
        border-radius: 100%;
        margin: 0 auto 1rem auto;
    }

    .modal_1,
    .modal_2,
    .modal_4 {
        padding: 1rem !important;
    }

    .modal_4 {
        width: 100% !important;
        height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        z-index: 10;
        overflow: auto;
    }

    .sec_3 ul li {
        width: 100% !important;
    }

    .section_5 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

}

@media (max-width: 991.98px) {

    .sec_2 {
        padding-top: 3rem !important;
    }

    .sec_1_1 {
        position: relative;
    }

    /*
    .sec_1_1:after {
        content: "" / "";
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        z-index: 1;
        background-size: cover;
    }
    */

    .phone_menu {
        margin-top: 1.5rem;
    }

    body.paged main#content {
        margin-top: calc(120px + 2rem);
    }

    header {
        padding-top: 0;
        padding-bottom: 0;
        height: 100px;
    }

    body.homepage .sec_1_1 {
        margin-top: 100px;
    }

    .team_7 {
        margin-top: 4rem;
    }

    .contact_4 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .accordion button {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .team_1 img.team_user {
        width: 250px !important;
    }

    .team_1 {
        flex-direction: column-reverse;
    }

    .team_5b {
        padding-left: 0 !important;
        padding-top: 0 !important;
    }

    .team_5 {
        margin-bottom: 2rem;
    }

    .sec_5 h2 {
        margin-bottom: 2rem !important;
    }

    .footer_1 {
        margin-top: 3rem;
    }

    .sec_1_2 {
        width: 100%;
        background: #fbfbfb;
        color: #000000;
        padding: 3rem 1rem;
    }

    .header_mobile {
        padding-left: 0;
        padding-right: 0;
    }

    .header_mobile .head_2 {
        height: 100px;
    }

    /* others */

    .image_1:before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        border: 4px solid #ED830B;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
        border-bottom-left-radius: 64px;
        border-bottom-right-radius: 0;
        z-index: 1;
    }

    .mobile_menu {
        padding-top: 2rem;
        z-index: 9999;
        position: relative;
        background: #fbfbfb;
    }

    .mobile_menu li {
        margin-bottom: 2rem;
    }

    .mobile_social {
        display: flex;
        margin-top: 2rem;
        margin-left: 0;
    }

    .mobile_social li:first-child {
        margin-right: 3rem;
    }

    nav a {
        font-size: 24px;
    }

    .p1 {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
    }

    .header_desktop,
    .section4_button_desktop {
        display: none;
    }

    .section_1 p {
        font-size: 24px;
        font-weight: 500;
        line-height: 32.4px;
    }

    .button1,
    .button2 {
        font-size: 20px;
        line-height: 30px;
    }

    .section_1 {
        background: #fef3ed;
        padding-bottom: 4rem;
    }

    .section_1 .button1,
    .section_1 .button2 {
        display: block;
        width: max-content;
        margin: 0 auto;
    }

    .section_1 .button1 {
        margin-bottom: 1.5rem;
    }

    .section_1_1 {
        text-align: center;
    }

    .section_1_4 {
        display: none !important;
    }

    .section_2_2 {
        margin-top: 2rem;
    }

    .section_2 {
        margin-top: 4rem;
    }

    .section_2_3 {
        margin-top: 2rem;
    }

    .section_2_4_mobile_2 {
        position: relative;
        height: 282px;
    }

    .section_2_4_mobile:before {
        content: "";
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
        height: 242px;
        border: 4px solid #ED830B;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
        border-bottom-left-radius: 64px;
        border-bottom-right-radius: 0;
        z-index: 1;
    }

    .section_2_5 {
        margin-top: 0;
        margin-bottom: 4rem;
    }

    .section_2_3_desktop {
        display: none !important;
    }

    .section_2_4_mobile {
        margin-top: 4rem;
    }

    .section_3,
    .section_4,
    .section_5,
    footer {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .section_4_1,
    .section_4_2 {
        background: #ffffff;
        padding: 48px 16px;
    }

    .section_4_1 {
        display: flex;
        flex-direction: column-reverse;
    }

    .section4_button_mobile {
        width: fit-content;
        margin: 3rem auto 0 auto;
    }

    .section_4_5 img {
        max-width: 212px;
    }

    .section_4_2 .section_4_5:last-child {
        margin-bottom: 0 !important;
    }

    .section_5 h2 {
        margin-bottom: 3rem;
    }

    .page_1 p {
        font-size: 24px;
        font-weight: 500;
        line-height: 32.4px;
    }

    .page_2 p,
    .page_2 ul,
    .page_2 li {
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }

    .page_1 {
        background: #FEF3ED;
        padding-bottom: 4rem;
    }

    .page_2 {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .page_3 {
        margin-top: 3rem;
    }

    .page_3 p {
        margin-bottom: 0;
    }

    .page_1 img {
        width: 100%;
        height: auto;
        border-bottom-left-radius: 151px;
    }

}

@media (max-width: 1199.98px) {

    .sec_5_5 li {
        margin-top: 3rem;
    }

    .section_2_6 {
        display: none !important;
    }

    .section_2_1,
    .section_2_2 {
        min-height: 412px;
    }

}

@media (max-width: 400px) {

    .image_4 .button1 {
        width: 100% !important;
    }

}

@media (max-width: 767.98px) {

    .team_contact {
        display: inline-flex;
        align-items: flex-start;
        flex-direction: column;
        word-break: break-all;
    }

    .image_2 {
        display: flex;
        flex-direction: column;
    }

    .image_3,
    .image_4,
    .image_3 img {
        width: 100% !important;
        height: auto;
        max-width: 100%;
    }

    .image_3 img {
        aspect-ratio: 3/ 2;
        object-fit: cover;
    }

    .image_3:before {
        content: '';
        position: absolute;
        top: 30px;
        left: 20px;
        right: 20px;
        bottom: 30px;
        width: calc(100% - 40px);
        height: calc(100% - 60px);
        border: 5px solid #ED830B;
        border-top-left-radius: 0;
        border-top-right-radius: 48px;
        border-bottom-left-radius: 48px;
        border-bottom-right-radius: 48px;
        z-index: 1;
    }

    .image_4 h2 {
        margin-top: 1rem;
    }

}

@media (min-width: 576px) {

    .sec_3_5 {
        border: 0;
        background: unset;
        padding: 5px;
        margin: 0;
        position: absolute;
        top: 2rem;
        right: 2rem;
        border-radius: 100%;
    }

    .sec_3_3 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}

@media (min-width: 768px) {

    .team_contact {
        display: inline-flex;
        align-items: center;
        flex-direction: row;
        word-break: break-all;
    }

    .image_2 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .image_3:before {
        content: '';
        position: absolute;
        top: 30px;
        left: 20px;
        right: 20px;
        bottom: 30px;
        width: calc(100% - 40px);
        height: calc(100% - 60px);
        border: 5px solid #ED830B;
        border-top-left-radius: 48px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 48px;
        border-bottom-right-radius: 48px;
        z-index: 1;
    }

    .image_3 {
        margin-right: 1rem;
    }

}

@media (min-width: 992px) {

    body.paged main#content {
        margin-top: calc(120px + 4rem);
    }

    header.menu_scroll_a {
        height: 80px !important;
    }

    header {
        padding-top: 0;
        padding-bottom: 0;
        height: 120px;
    }

    .sticky {
        background: #ffffffc2;
    }

    body.homepage .sticky {
        top: 1rem;
    }

    body.homepage .menu_scroll_b {
        top: 1rem;
    }

    .accordion button {
        font-size: 2rem;
        font-weight: 700;
    }

    header {
        display: flex;
        align-items: center;
    }

    .sec_1 {
        height: 100vh;
    }

    /*
    .sec_1:before {
        content: "" / "";
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        z-index: 0;
        background-size: cover;
    }
    */

    @supports (content: "x" / "y") {

        .sec_1:after {
            content: "" / "";
            background: url(img/hero.jpg) no-repeat top left;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: absolute;
            z-index: -1;
            background-size: cover;
            background-attachment: fixed;
        }

    }

    @supports not (content: "x" / "y") {

        .sec_1:after {
            content: '';
            background: url(img/hero.jpg) no-repeat top left;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: absolute;
            z-index: -1;
            background-size: cover;
            background-attachment: fixed;
        }

    }

    .sec_1_1 {
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        position: relative;
    }

    .sec_1_2 {
        width: 600px;
        background: rgb(126 131 145 / 80%);
        padding: 3rem;
        margin-bottom: 6rem;
    }

    .hero_mobile {
        display: none !important;
    }

    /* others */

    .image_1:before {
        content: '';
        position: absolute;
        top: 40px;
        left: 40px;
        right: 40px;
        bottom: 40px;
        width: calc(100% - 80px);
        height: calc(100% - 80px);
        border: 5px solid #ED830B;
        border-top-left-radius: 72px;
        border-top-right-radius: 72px;
        border-bottom-left-radius: 72px;
        border-bottom-right-radius: 0;
        z-index: 1;
    }

    header nav ul,
    .head_1 {
        display: flex;
        align-items: center;
    }

    nav {
        margin-right: 2rem;
    }

    .p1 {
        font-size: 20px;
        font-weight: 500;
        line-height: 30px;
    }

    .header_mobile,
    .section4_button_mobile {
        display: none !important;
    }

    .section_1 p {
        font-size: 32px;
        font-weight: 500;
        line-height: 43.2px;
    }

    .section_1 {
        min-height: 890px;
    }

    .section_1:after {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        right: 0;
        bottom: 5rem;
        z-index: -1;
        background: url(img/hero.jpg) no-repeat top left;
    }

    .hero_mobile {
        display: none !important;
    }

    .section_2,
    .section_2_3 {
        margin-top: 6rem;
    }

    .section_2_4:before {
        content: '';
        position: absolute;
        top: 40px;
        left: 40px;
        right: 40px;
        bottom: 40px;
        width: calc(100% - 80px);
        height: calc(100% - 80px);
        border: 5px solid #ED830B;
        border-top-left-radius: 72px;
        border-top-right-radius: 72px;
        border-bottom-left-radius: 72px;
        border-bottom-right-radius: 0;
        z-index: 1;
    }

    .section_2_5 {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }

    .section_2_3_mobile {
        display: none !important;
    }

    .section_3,
    .section_4,
    .section_5,
    footer {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .section_4_1 {
        display: flex;
        flex-wrap: nowrap;
    }

    .section_4_2 {
        background: #ffffff;
        padding: 48px 98px 12px 98px;
    }

    .section_4_4 {
        width: 50%;
    }

    .section_4_5 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section_4_5 img {
        width: 80%;
        height: auto;
    }

    .f_p_1 {
        font-size: 18px;
        font-weight: 700;
        line-height: 27px;
    }

    .f_p_2,
    .f_p_4 {
        font-size: 18px;
        font-weight: 500;
        line-height: 27px;
    }

    .f_p_4 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .page_1 p {
        font-size: 32px;
        font-weight: 500;
        line-height: 43.2px;
    }

    .page_2 p,
    .page_2 ul,
    .page_2 li {
        font-size: 18px;
        font-weight: 500;
        line-height: 27px;
    }

    .page_1 {
        background: #FEF3ED;
        padding-bottom: 5rem;
    }

    .page_2 {
        margin-top: 5rem;
        margin-bottom: 5rem;
    }

    .page_3 {
        display: flex;
        align-items: center;
    }

}

@media (min-width: 1200px) {

    nav li,
    .head_3 li:first-child {
        margin-right: 2rem;
    }

    .section_2_1,
    .section_2_2 {
        height: 100%;
    }

}

@media (min-width: 992px) and (max-width: 1399.98px) {

    .x_1 {
        --bs-gutter-x: 4rem !important;
    }

    .section_1_2 {
        padding-top: 2rem;
    }

}

@media (min-width: 992px) and (max-width: 1199.98px) {

    .team_5b {
        padding-left: 2rem;
        padding-top: 2rem;
    }

    .head_3 li:first-child {
        margin-right: 1.5rem;
    }

    nav li {
        margin-right: 1.2rem;
    }

    .container.head_2 {
        max-width: 100% !important;
    }

    nav {
        margin-right: 0;
    }

    .sec_3 ul li {
        width: 33.3% !important;
    }

    .section_5_1 {
        display: flex;
        align-items: center;
    }

}

@media (min-width: 992px) and (max-width: 1399.98px) {

    .section_1 .button1 {
        margin-bottom: 2rem;
    }

    .section_1:after {
        bottom: 0;
    }

    .section_4_1 {
        background: #ffffff;
        padding: 48px;
    }

}

@media (min-width: 1400px) {

    .x_1 {
        --bs-gutter-x: 6rem !important;
    }

    .x_2 {
        --bs-gutter-x: 3rem !important;
    }

    .container {
        width: 1350px;
        max-width: unset;
        padding-left: 0;
        padding-right: 0;
    }

    .section_1 .button1 {
        margin-right: 1.5rem;
    }

    .section_1_2 {
        padding-top: 6rem;
    }

    .section_4_1 {
        background: #ffffff;
        padding: 48px 98px;
    }

}

@media (min-width: 992px) and (max-width: 1499.98px) {

    .page_1 img {
        border-bottom-left-radius: 396px;
    }

}

@media (max-width: 1499.98px) {

    .page_1 img {
        width: 100%;
        height: auto;
    }

}

@media (min-width: 1500px) {

    .page_1 img {
        max-width: 730px;
        height: auto;
        border-bottom-left-radius: 396px;
    }

}

/* paginacja */

.pag2 {
    margin-bottom: 6rem;
    margin-top: 3rem;
}

.pag3 {
    width: 100%;
    margin: 0;
    padding: 0;
}

.pag3 a:focus-visible {
    outline: 0 !important;
}

.pag3 span {
    font-size: 16px;
    line-height: 21px;
    color: #000000;
    font-weight: 600;
}

.pag3 a:hover span,
.pag3 a:hover,
.pag3 a:active span,
.pag3 a:active,
.pag3 a:focus span,
.pag3 a:focus {
    color: #000000;
    border-radius: 3px;
    text-decoration: none;
}

.pag3 a:active,
.pag3 a:focus,
.pag3 a:focus-visible {
    outline: 0;
}

.pag3 a:focus:after,
.pag3 a:active:after,
.pag3 a:focus-visible:after {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    outline: 2px solid #000000;
    outline-offset: -1px;
    border-radius: 3px;
}

.pag3 a {
    color: #800000;
    padding: 5px;
    font-weight: 600;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pag3 a:not(.pag3 li.nav_link_move a) {
    width: 45px;
}

.pag3 a,
.pag3 a:hover {
    text-decoration: none;
}

.pag3 .active a {
    pointer-events: none;
    color: #800000;
    border: 2px solid #000000;
    font-size: 18px;
}

.pag3 li {
    margin: 0;
    list-style: none;
    display: inline-block;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}