/* =========================================================
   CONTACT
========================================================= */

.contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 140px clamp(40px, 6vw, 100px);

    background: #162540;
    color: #ffffff;
}


/* =========================================================
   DECORATIONS
========================================================= */

.contact::before {
    content: "";

    position: absolute;
    top: -280px;
    left: -220px;

    width: 760px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.035) 40%,
            rgba(255, 255, 255, 0.01) 58%,
            transparent 76%
        );

    transform: rotate(-12deg);

    pointer-events: none;
    z-index: 0;
}


.contact::after {
    content: "";

    position: absolute;
    right: -220px;
    bottom: -320px;

    width: 760px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 255, 255, 0.01) 58%,
            transparent 76%
        );

    transform: rotate(12deg);

    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   CONTAINER
========================================================= */

.contact__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;

    margin: 0;

    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(500px, 1fr);

    column-gap: clamp(70px, 8vw, 150px);

    align-items: center;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.contact__content {
    max-width: 620px;
}


.contact__eyebrow {
    display: block;

    margin: 0 0 22px;

    color: #e52d35;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}


.contact__title {
    max-width: 650px;

    margin: 0 0 28px;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;

    line-height: 0.98;
    letter-spacing: -0.055em;
}


.contact__title strong {
    color: #e52d35;
    font-weight: 700;
}


.contact__description {
    max-width: 540px;

    margin: 0;

    color: rgba(255, 255, 255, 0.78);


    font-size: 16px;
    font-weight: 400;

    line-height: 1.65;
}


/* =========================================================
   ACCENT
========================================================= */

.contact__accent {
    width: 74px;
    height: 3px;

    margin: 38px 0 42px;

    background: #e52d35;
}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.contact__details {
    display: grid;

    grid-template-columns: minmax(240px, 1fr) 300px;

    grid-template-rows: repeat(3, auto);

    column-gap: 40px;
    row-gap: 25px;

    align-items: center;
}


.contact__detail {
    display: flex;
    align-items: center;

    gap: 18px;

    color: inherit;
    text-decoration: none;
    grid-column: 1;
}


.contact__detail-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.contact__detail:hover .contact__detail-icon {
    background: #e52d35;
    transform: translateY(-2px);
}


.contact__detail-icon img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;

    filter: brightness(0) invert(1);
}


.contact__detail-content {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.contact__detail-label {
    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.contact__detail-value {
    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   FORM WRAPPER
========================================================= */

.contact__form-wrapper {
    position: relative;
}


.contact__form-card {
    position: relative;

    width: 100%;

    padding: 48px 48px 46px;

    background: rgba(22, 37, 64, 0.8);
    color: #162540;

    border-radius: 28px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   FORM HEADER
========================================================= */

.contact__form-header {
    margin-bottom: 30px;
}


.contact__form-eyebrow {
    margin: 0 0 10px;

    color: #e52d35;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.contact__form-title {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 32px;
    font-weight: 700;

    line-height: 1.1;
    letter-spacing: -0.035em;
}


.contact__form-description {
    max-width: 520px;

    margin: 0;

    color: #7b8490;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   FORM
========================================================= */

.contact__form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


.contact__field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.contact__field label {
    color: #9ca4b1;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;
}


.contact__field label span {
    color: #e52d35;
}


.contact__field input,
.contact__field textarea {
    width: 100%;

    border: 1px solid #e2e7ed;
    border-radius: 10px;

    background: #f5f7fa;
    color: #162540;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.contact__field input {
    height: 52px;

    padding: 0 17px;
}


.contact__field textarea {
    min-height: 125px;

    padding: 15px 17px;

    resize: vertical;
}


.contact__field input::placeholder,
.contact__field textarea::placeholder {
    color: #a2aab5;
}


.contact__field input:focus,
.contact__field textarea:focus {
    border-color: #162540;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(22, 37, 64, 0.06);
}


/* =========================================================
   CONSENT
========================================================= */

.contact__consent {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    cursor: pointer;
}


.contact__consent input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.contact__consent-box {
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    margin-top: 1px;

    border: 1px solid #cbd1d9;
    border-radius: 4px;

    background: #ffffff;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.contact__consent input:checked + .contact__consent-box {
    background: #e52d35;
    border-color: #e52d35;
}


.contact__consent input:checked + .contact__consent-box::after {
    content: "✓";

    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    line-height: 17px;
    text-align: center;
}


.contact__consent-text {
    color: #7b8490;

    font-size: 11px;
    line-height: 1.5;
}


.contact__consent-text a {
    color: #e52d35;

    font-weight: 700;

    text-decoration: none;
}


.contact__consent-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: fit-content;
    min-height: 56px;

    gap: 20px;

    margin-top: 4px;
    padding: 0 24px;

    border: 0;
    border-radius: 999px;

    background: #e52d35;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contact__submit:hover {
    background: #c9232b;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(229, 45, 53, 0.25);
}


.contact__submit-arrow {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    font-size: 20px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.contact__submit:hover .contact__submit-arrow {
    background: rgba(255, 255, 255, 0.22);

    transform: translateX(3px);
}

/* =========================================================
   MAPA — SIEDZIBA FIRMY
========================================================= */

.contact__map-wrapper {
    grid-column: 2;
    grid-row: 1 / 4;

    width: 300px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


.contact__map-title {
    margin: 0;

    color: rgba(255, 255, 255, 0.45);

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.contact__map {
    width: 300px;
    height: 300px;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);
}


.contact__map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.contact__background-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact__background-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(22, 37, 64, 0.88) 0%,
            rgba(22, 37, 64, 0.68) 40%,
            rgba(22, 37, 64, 0.35) 70%,
            rgba(22, 37, 64, 0) 100%
        );
}

.contact__background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.50;
}


@media (min-width: 1200px) and (max-width: 1399px) {

.contact__details {
    grid-template-columns: minmax(200px, 1fr) 300px;
}
}

/* =========================================================
   CONTACT — TABLET / SMALL LAPTOP
   768px — 1100px
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .contact {
        padding: 110px 54px 100px;
    }


    /* =====================================================
       GŁÓWNY UKŁAD — JEDNA KOLUMNA
    ===================================================== */

    .contact__container {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: none;

        gap: 65px;
    }


    /* =====================================================
       LEWA CZĘŚĆ
    ===================================================== */

    .contact__content {
        width: 100%;
        max-width: none;
    }

    .contact__title {
        max-width: 700px;

        font-size: clamp(46px, 5.5vw, 60px);
        line-height: 1.02;
    }

    .contact__description {
        max-width: 700px;

        font-size: 15px;
        line-height: 1.65;
    }


    /* =====================================================
       DANE + MAPA
    ===================================================== */

    .contact__details {
        display: grid;

        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-rows: auto auto auto;

        column-gap: 50px;
        row-gap: 25px;

        width: 100%;
    }


    .contact__detail {
        grid-column: 1;
    }


    .contact__map-wrapper {
        grid-column: 2;
        grid-row: 1 / 4;

        width: 300px;

        align-self: start;
    }

    .contact__map {
        width: 300px;
        height: 300px;

        border-radius: 24px;
    }


    /* =====================================================
       FORMULARZ — POD SPODEM
    ===================================================== */

    .contact__form-wrapper {
    width: 100%;

    display: flex;
    justify-content: flex-start;
}

.contact__form-card {
    width: 100%;
    max-width: none;

    padding: 42px 42px 40px;

    border-radius: 26px;
}

}

/* =========================================================
   CONTACT — MOBILE
========================================================= */

@media (max-width: 767px) {

    .contact {
        padding: 70px 38px 80px;
    }


    /* =====================================================
       GŁÓWNY UKŁAD — JEDNA KOLUMNA
    ===================================================== */

    .contact__container {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: none;

        gap: 55px;
    }


    /* =====================================================
       TREŚĆ
    ===================================================== */

    .contact__content {
        width: 100%;
        max-width: none;
    }

    .contact__eyebrow {
        margin-bottom: 20px;
    }

    .contact__title {
        max-width: none;

        margin-bottom: 24px;

        font-size: clamp(40px, 10.5vw, 48px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .contact__description {
        width: 100%;
        max-width: none;

        font-size: 15px;
        line-height: 1.65;
    }

    .contact__accent {
        margin: 32px 0 35px;
    }


    /* =====================================================
       DANE KONTAKTOWE
    ===================================================== */

    .contact__details {
        display: flex;
        flex-direction: column;

        width: 100%;

        gap: 28px;
    }

    .contact__detail {
        width: 100%;
    }


    /* =====================================================
       MAPA
    ===================================================== */

    .contact__map-wrapper {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .contact__map {
        width: 100%;
        height: 280px;

        border-radius: 22px;
    }


    /* =====================================================
       FORMULARZ
    ===================================================== */

    .contact__form-wrapper {
        width: 100%;

        display: flex;
        justify-content: center;
    }

    .contact__form-card {
        width: 100%;
        max-width: 520px;

        padding: 35px 25px 32px;

        border-radius: 24px;
    }

    .contact__form-row {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.contact__form-row .contact__field {
    width: 100%;
}

}