.bb-refresh {
    --bb-ink: #261a27;
    --bb-line: #e4dbe5;
    --bb-tint: #f8f4f8;
    --bb-wrap: min(1220px, calc(100% - 100px));
}

.bb-refresh .qodef-content {
    margin-top: 0 !important;
}

.bb-refresh .qodef-page-header .qodef-menu-area {
    background: white;
}

.bb-page {
    color: var(--bb-ink);
    background: #fff;
}

.bb-page-hero {
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: var(--bb-plum);
    color: white;
}

.bb-page-hero::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: -55px;
    width: min(45vw, 640px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: repeating-radial-gradient(circle, transparent 0 28px, #eaa7e734 29px 30px, transparent 31px 56px);
    mask-image: linear-gradient(115deg, transparent, #000);
    content: '';
}

.bb-page-hero__inner {
    width: var(--bb-wrap);
    margin-inline: auto;
    padding-block: clamp(50px, 5.5vw, 82px);
}

.bb-page-hero__parent {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    margin-bottom: 16px;
    color: var(--bb-mint);
    font-size: 14px;
    font-weight: 700;
}

.bb-page-hero h1 {
    max-width: 17ch;
    margin: 0;
    color: white;
    font: 800 clamp(39px, 5vw, 72px)/1.05 Raleway, 'Open Sans', sans-serif;
    letter-spacing: -.047em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.bb-page-hero p {
    max-width: 56ch;
    margin: 23px 0 0;
    color: #f1e5f0;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.6;
}

.bb-page-hero__action,
.bb-page .qodef-call-to-action .qodef-btn,
.bb-page .bb-job__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--bb-mint);
    color: var(--bb-plum);
    font: 700 15px/1.35 'Open Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.bb-page-hero__action {
    margin-top: 26px;
}

.bb-page-hero__action:hover,
.bb-page-hero__action:focus-visible {
    background: white;
    color: var(--bb-plum);
}

.bb-page-hero__parent:hover {
    color: white;
    text-decoration: underline;
}

.bb-page :is(a, button, input, textarea, select, summary):focus-visible {
    outline: 2px solid #176d71;
    outline-offset: 3px;
}

.bb-page-hero a:focus-visible {
    outline-color: var(--bb-mint);
}

.bb-page__body {
    width: var(--bb-wrap);
    margin-inline: auto;
    padding-block: clamp(40px, 6vw, 82px);
}

.bb-page :is(#zakres, #formularz, #form4) {
    scroll-margin-top: 95px;
}

.bb-page__body :is(.qodef-section-inner, .qodef-container-inner) {
    width: 100%;
}

.bb-page__body > .wpb-content-wrapper > .vc_row + .vc_row {
    margin-top: clamp(20px, 3vw, 44px);
}

.bb-page__body > .wpb-content-wrapper > .vc_row:not([id]):has(.vc_empty_space):not(:has(:is(p, h2, h3, h4, img, a, form, table, iframe, button, .qodef-google-map, .qodef-parallax-section-holder, .qodef-counter-holder, .qodef-portfolio-list-holder, .qodef-carousel-holder))) {
    display: none;
}

.bb-page__body .wpb_animate_when_almost_visible,
.bb-page__body .qodef-row-animations-holder > div {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

.bb-page__body :is(h2, h3, h4, h5) {
    color: inherit;
    font-family: Raleway, 'Open Sans', sans-serif;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.035em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.bb-page__body h2 {
    font-size: clamp(28px, 4.1vw, 54px);
}

.bb-page__body h3 {
    font-size: clamp(22px, 2.3vw, 34px);
}

.bb-page__body h4 {
    font-size: clamp(19px, 1.75vw, 25px);
}

.bb-page__body :is(.wpb_text_column, .bb-job, .qodef-portfolio-single-holder) :is(p, li) {
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.7;
}

.bb-page__body .wpb_text_column p {
    margin-block: .75em;
}

.bb-page__body :is(.wpb_text_column, .qodef-portfolio-single-holder) p a {
    color: #176d71;
    text-underline-offset: .18em;
    text-decoration: underline;
}

.bb-page__body :is(img, iframe, video, table) {
    max-width: 100%;
}

.bb-page__body .wpb_text_column table {
    width: 100%;
    overflow-wrap: anywhere;
}

.bb-page__body .qodef-parallax-section-holder {
    background-attachment: scroll;
    border-radius: 5px;
}

.bb-page .qodef-call-to-action {
    border: 1px solid var(--bb-line);
    border-radius: 5px;
    background: var(--bb-tint);
}

.bb-page .qodef-call-to-action :is(.qodef-call-to-action-row-75-25, .qodef-call-to-action-row-50-50) {
    padding: clamp(24px, 4vw, 48px) !important;
}

.bb-page .qodef-call-to-action .qodef-btn:hover,
.bb-page .bb-job__apply:hover {
    background: var(--bb-plum);
    color: white;
}

.bb-page__body .bb-job {
    padding-block: 0 28px;
}

.page-id-1255 .bb-page__body > .wpb-content-wrapper > .qodef-grid-section {
    margin-top: 0;
    padding-block: 0 !important;
}

.page-id-1255 .bb-page__body .qodef-section-inner-margin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

.page-id-1255 .bb-page__body .qodef-section-inner-margin::before,
.page-id-1255 .bb-page__body .qodef-section-inner-margin::after {
    display: none;
}

.page-id-1255 .bb-page__body .qodef-section-inner-margin > .vc_column_container {
    float: none;
    width: auto;
    min-width: 0;
}

.page-id-1255 .bb-page__body .qodef-section-inner-margin > .vc_column_container > .vc_column-inner {
    display: flex;
    height: 100%;
    padding: 0 !important;
}

.page-id-1255 .bb-page__body .vc_column-inner > .wpb_wrapper:has(.qodef-btn) {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    padding: clamp(21px, 2.8vw, 35px);
    border: 1px solid var(--bb-line);
    border-radius: 5px;
    background: var(--bb-tint);
}

.page-id-1255 .bb-page__body .vc_column-inner > .wpb_wrapper:has(.qodef-btn) :is(.vc_empty_space, .qodef-separator-holder) {
    display: none;
}

.page-id-1255 .bb-page__body .vc_column-inner > .wpb_wrapper .qodef-btn {
    margin-top: auto;
    padding: 10px 0 0;
    color: #176d71 !important;
}

.page-id-1255 .bb-page__body h2 {
    margin-bottom: 24px;
}

.page-id-1255 .bb-page__body h3 {
    margin: 0;
    font-size: clamp(21px, 2.4vw, 29px);
}

.bb-page__body #formularz {
    padding: clamp(20px, 4vw, 52px) !important;
    border: 1px solid var(--bb-line);
    border-radius: 5px;
    background: var(--bb-tint);
    box-sizing: border-box;
}

.bb-page__body #formularz form.fm-form {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
}

.bb-page__body #formularz .fm-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
    max-width: 100% !important;
    box-sizing: border-box;
    border-color: #cfc1d0;
    border-radius: 4px;
    font-size: 16px;
}

.bb-page__body #formularz .fm-form :is(.button-submit, button[type="submit"], input[type="submit"]) {
    min-height: 44px;
    border: 1px solid var(--bb-plum);
    border-radius: 4px;
    background: var(--bb-plum) !important;
    color: white !important;
    font-weight: 700;
}

.bb-page__body #formularz .fm-form :is(.button-submit, button[type="submit"], input[type="submit"]):hover {
    background: #176d71 !important;
}

.bb-refresh .qodef-footer-uncover {
    position: relative;
    inset: auto;
}

.bb-refresh .qodef-wrapper .qodef-content {
    margin-bottom: 0 !important;
}

.bb-refresh .qodef-footer-inner .qodef-footer-top-holder {
    background: #261a27;
}

@media (max-width: 900px) {
    .bb-refresh {
        --bb-wrap: calc(100% - 56px);
    }

    .page-id-1255 .bb-page__body .qodef-section-inner-margin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .bb-refresh {
        --bb-wrap: calc(100% - 36px);
    }

    .bb-page-hero__inner {
        padding-block: 40px 45px;
    }

    .bb-page-hero::after {
        right: -105px;
        width: 300px;
        opacity: .6;
    }

    .bb-page-hero h1 {
        max-width: none;
        font-size: clamp(34px, 9.5vw, 46px);
    }

    .bb-page-hero p {
        margin-top: 16px;
    }

    .bb-page__body > .wpb-content-wrapper > .vc_row:not([id]) {
        padding-block: min(36px, 7vw) !important;
    }

    .bb-page__body > .wpb-content-wrapper > .vc_row + .vc_row {
        margin-top: 8px;
    }

    .bb-page__body .vc_column-inner[class*="vc_custom"] {
        padding-inline: 14px !important;
    }

    .bb-page__body :is(.qodef-section-inner-margin, .qodef-full-section-inner-margin, .vc_row) {
        margin-inline: 0;
    }

    .bb-page__body > .wpb-content-wrapper > .vc_row :is(.qodef-section-inner, .qodef-full-section-inner) > .vc_column_container,
    .bb-page__body .qodef-section-inner-margin > .vc_column_container > .vc_column-inner:not([class*="vc_custom"]) {
        padding-inline: 0;
    }

    .page-id-1088 .bb-page__body #formularz table:first-of-type td {
        display: block;
        width: 100%;
        padding-inline: 0;
    }

    .bb-page__body #formularz .wdform_row {
        padding-inline: 0;
    }

    .bb-page__body :is(.wpb_text_column :is(h2, h3, h4, p), .qodef-content-aligment-center .wpb_text_column) {
        text-align: left !important;
    }

    .bb-page__body .wpb_text_column h2 {
        font-size: clamp(26px, 7vw, 33px) !important;
    }

    .bb-page__body .wpb_text_column h3 {
        font-size: clamp(21px, 5.6vw, 28px) !important;
    }

    .bb-page__body .vc_empty_space {
        max-height: 24px;
    }

    .bb-page__body .qodef-parallax-section-holder .vc_empty_space {
        max-height: 155px;
    }

    .page-id-1255 .bb-page__body .qodef-section-inner-margin {
        grid-template-columns: 1fr;
    }

    .bb-page__body #formularz {
        padding: 17px !important;
    }
}

/* Keep the product pages' interactive sections and align their opening panels. */
.bb-refresh .bb-ai-assistant-page .bb-ai-hero,
.bb-refresh .bb-pilot-page > .bb-hero,
.bb-refresh .bb-chatgpt-page .bb-cg-hero {
    background: var(--bb-plum);
    color: #fff;
}

.bb-refresh :is(.bb-ai-hero, .bb-pilot-page > .bb-hero, .bb-cg-hero) h1 {
    color: white;
    font-family: Raleway, 'Open Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -.045em;
}

.bb-refresh .bb-ai-hero-copy > p,
.bb-refresh .bb-pilot-page > .bb-hero .bb-lead,
.bb-refresh .bb-cg-hero__copy > p {
    color: #f1e5f0;
}

.bb-refresh .bb-pilot-page#primary {
    padding-top: 0;
}

.bb-refresh .bb-ai-hero :is(.bb-ai-point, .bb-ai-mini-proof),
.bb-refresh .bb-pilot-page > .bb-hero .bb-point,
.bb-refresh .bb-cg-hero__copy .bb-cg-hero__note,
.bb-refresh .bb-cg-hero__copy .bb-cg-hero__note strong {
    color: #f1e5f0;
}

.bb-refresh .bb-ai-hero .bb-ai-btn-ghost {
    background: white;
    color: var(--bb-plum);
}

.bb-refresh .qodef-content-inner > .qodef-title-holder:empty {
    display: none;
}

.bb-refresh .bb-ai-hero .bb-ai-mini-proof-note {
    color: #f1e5f0;
}

.bb-refresh .bb-ai-hero .bb-ai-chat-card {
    color: var(--bb-ink);
}

.bb-refresh .bb-pilot-page > .bb-hero .bb-hero__visual img {
    box-sizing: border-box;
    padding: clamp(16px, 3vw, 34px);
    border-radius: 10px;
    background: #fff;
}

.bb-refresh :is(.bb-ai-hero, .bb-pilot-page > .bb-hero, .bb-cg-hero) a:is(.bb-ai-btn-primary, .bb-btn--primary, .bb-cg-btn--primary) {
    border-color: var(--bb-mint);
    border-radius: 4px;
    background: var(--bb-mint);
    color: var(--bb-plum) !important;
}

.bb-refresh :is(.bb-ai-hero, .bb-pilot-page > .bb-hero, .bb-cg-hero) a:is(.bb-ai-btn-primary, .bb-btn--primary, .bb-cg-btn--primary):hover {
    border-color: white;
    background: white;
}

.bb-refresh .bb-cg-hero .bb-cg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 620px) {
    .bb-refresh .bb-pilot-page > .bb-hero .bb-hero__visual {
        min-height: 0;
    }
}
