/* CZERWONE TŁO */
.header-bg {
    position: relative;          /* ⬅️ TU */
    background: var(--itamaweb-color);
    padding: 80px 0 104px 0;
    overflow: visible;
}

/* GRID */
.header-inner {
    max-width: 1440px;
    width: calc(100% - 144px);
    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;

    position: relative;
}

/* TEKST */
.header-inner h1,
.header-inner .subhead {
    color: var(--white);
    margin-bottom: 0;
}

/* .subhead {
    font-size: 1.875rem;
    line-height: 150%;
} */

.text-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header-contact {
    position: relative;
}

.header-image {
    position: absolute;
    top: 80px;
    bottom: -72px;
    left: calc(50% + 36px);

    width: calc(50% - 108px);
    max-width: 684px;

    background: url(./img/co_robimy.jpg) center / cover no-repeat;
}

.board_header {
    z-index: 2;
    bottom: -176px;
    right: -72px;
    transform-origin: bottom right;
}

/* KONTAKT */


.section-contact {
    display: flex;
    flex-direction: row;

    max-width: 1440px;
    width: calc(100% - 144px);
    margin: 160px auto;
    gap: 72px;
    padding: 0;
}

.e-mail-conatainer,
.form-conatainer {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
}

.section-contact .caption {
    margin-bottom: 0;
}

.section-contact .mail {
    font-size: 3rem;
    font-weight: 600;
    line-height: 125%;
    text-decoration: underline;
    color: var(--link-color);
    margin-top: 16px;
}

.split-right {
    margin-top: 24px;
}

/* FORM */

.input-conatainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

label {
    font-weight: 700;
    color: var(--heading-color);
}

input, textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    border: 1px solid var(--input-border-color);
    border-radius: 0;
    background: var(--white);

    padding: 12px 16px;

    font: inherit;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 170%;

    cursor: pointer;

}

button {
    width: 100%;
    background: var(--white);

    cursor: pointer;
}

/* FOOTER */

footer .sub_footer {
    padding-top: 80px 0;
    padding-bottom: 48px;
    border-top: none;
}




/* MEDIA */


@media (max-width: 1280px) {

    .header-bg {
        padding: 64px 0 80px 0;
    }

    .header-inner,
    .section-contact {
        width: calc(100% - 72px);
    }

    .header-image {
        width: calc(50% - 72px);
    }

    .board_header {
        bottom: -152px;
    }
}


@media (max-width: 1080px) {

    .header-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 56px;

        width: calc(100% - 64px);
    }

    .header-bg {
        min-height: auto;
        padding-bottom: 72px; /* żeby tekst nie był przyklejony */
    }

    .header-image {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;

        width: calc(100% - 64px);
        max-width: none;
        margin: -64px auto 0 auto; /* ⬅️ nachodzi na czerwone */

        aspect-ratio: 2 / 1;
        background-size: cover;
    }

    .board_header {
        bottom: -136px;
        right: -64px;
    }

    /* KONTAKT */

    .section-contact {
        flex-direction: column;
        margin-top: 120px;
    }

    .section-contact .mail {
        margin-top: 0;
    }

    .split-right {
        margin-top: 24px;
    }

    .split-right > * {
        margin-bottom: 24px;
    }


}

@media (min-width: 769px) {

    header .board_header .square2 .red {
        opacity: 0%; /* Nie działa mi to */
    }

    footer .contact2 .board {
    top: -48px;
}
}

@media (max-width: 768px) {

    .header-bg {
        padding: 64px 0 80px 0;
    }

    .section-contact {
        margin-top: 80px;
        width: calc(100% - 48px);
    }

    .header-inner {
        width: calc(100% - 48px);
        padding-bottom: 16px;
    }

    .header-image {
        width: calc(100% - 48px);
        margin-top: -48px;
    }

    .board_header {
        bottom: -128px;
        right: -48px;
    }

    .split-right {
        margin-top: 8px;
    }

    .split-right > * {
        margin-bottom: 24px;
    }

    .split-right .product_description {
        padding-bottom: 24px;
    }

   
}












/* 

.header-offer {
    background: var(--itamaweb-color);
}

.header-offer .split {
    position: relative;
    min-height: auto;
    gap: 80px;
    padding: 120px 0;
}

.header-offer h1,
.header-offer p {
    color: var(--white);
    text-align: left;
    margin-bottom: 0;
}

.header-offer .head_text {
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 0;
}

.header-offer .split-img {
    position: absolute;
    width: calc(50% - 40px);
    height: 516px;
    top: 120px;
    right: 0;
    background: url(./img/co_robimy.jpg) no-repeat center/cover;
} */

/* PRODUKTY */

/* .products {
    margin-top: 240px;
    margin-bottom: 240px;
}

section.products .split {
    overflow: visible;
    align-items: flex-start;
    gap: 80px;

    transform: none;
}

.products .split-left {
    position: relative;
    display: flex;
    height: 100%;
    gap: 0;
}

.split-left .caption {
    align-self: flex-start;
}

.head_text .left-align {
    text-align: left;
}

.sticky-wrapper {
    position: sticky;
    height: auto;
    top: 40px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.products .head_text h2 {
    margin-bottom: 24px;
}

.large-p {
    font-size: 1.875rem;
    color: var(--font-color);
    line-height: 125%;
}

.head_text .large-p {
    text-align: left;
} */

/* SPLIT RIGHT */

/* .split-right {
    margin-top: 54px;
}

.split-right > * {
    margin-bottom: 24px;
}

.split-right > :last-child {
    margin-bottom: 0;
} */