/* ==========================================
   Before / After
========================================== */

.before-after-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}


/* ==========================================
   Heading
========================================== */

.before-after-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    text-align: center;
}


/* ==========================================
   Eyebrow
========================================== */

.before-after-heading .section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;

    margin-bottom: 2rem;

    color: #55a2f6;
    font-size: 13.6px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.before-after-heading .section-eyebrow .accent-line {
    display: block;

    width: 36px;
    height: 2px;

    flex-shrink: 0;

    background: #f28c28;
}


/* ==========================================
   Main title
========================================== */

.before-after-title {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 1.5rem;

    color: var(--color-white, #fff);

    font-size: clamp(3rem, 4.5vw, 5rem);
    line-height: .98;
    letter-spacing: -.045em;

    text-align: center;
}

.before-after-title-line {
    display: block;
    white-space: nowrap;
}

.before-after-title .title-accent {
    color: var(--color-primary);
}


/* ==========================================
   Description
========================================== */

.before-after-description {
    max-width: 760px;

    margin: 0 auto;

    color: var(--color-text-muted);

    font-size: 1rem;
    line-height: 1.6;

    text-align: center;
}


/* ==========================================
   Panels layout
========================================== */

.before-after-grid {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 4.5rem;

    align-items: stretch;
}


/* ==========================================
   Panels
========================================== */

.before-after-panel {
    position: relative;

    padding: 2.25rem 2rem;

    overflow: hidden;

    border-radius: 22px;
}


/* BEFORE — niebieski */

.before-panel {
    border: 1px solid rgba(77,124,255,.34);

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(77,124,255,.16),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(26,51,100,.85),
            rgba(8,19,39,.96)
        );

    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.before-panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;

    width: 76%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(133,176,255,.75),
        transparent
    );
}


/* AFTER — pomarańczowy */

.after-panel {
    border: 1px solid rgba(242,140,40,.38);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(242,140,40,.12),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(96,66,36,.32),
            rgba(20,22,34,.4)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 0 40px rgba(242,140,40,.05);
}

.after-panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;

    right: auto;

    width: 76%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(242,140,40,.85),
        transparent
    );

    box-shadow: none;
}


/* ==========================================
   Panel heading
========================================== */

.before-after-panel-heading {
    display: flex;
    align-items: center;

    gap: 1rem;

    margin-bottom: 1.5rem;
}

.before-after-heading-icon {
    display: block;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    object-fit: contain;
}

.before-after-panel-heading h3 {
    margin: 0;

    color: var(--color-white, #fff);

    font-size: 1.25rem;
    line-height: 1.1;
}

.before-after-panel-heading span {
    display: block;

    margin-top: .25rem;

    color: #55a2f6;

    font-size: .8rem;
    line-height: 1.2;
}

.after-panel .before-after-panel-heading h3 {
    color: var(--color-white, #fff);
}

.after-panel .before-after-panel-heading span {
    color: var(--color-accent);
}


/* ==========================================
   List
========================================== */

.before-after-list {
    display: flex;
    flex-direction: column;
}


/* ==========================================
   Item
========================================== */

.before-after-item {
    display: grid;

    grid-template-columns: 44px 1fr;

    gap: .8rem;

    align-items: center;

    padding: 1rem 0;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.before-after-item:last-child {
    border-bottom: 0;
}


/* ==========================================
   Item icon
========================================== */

.before-after-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
	border-radius: 50%;
}

.before-after-item-icon img {
    display: block;

    width: 25px;
    height: 25px;

    object-fit: contain;
}


.after-panel .before-after-item-icon img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(72%)
            saturate(1352%) hue-rotate(340deg) brightness(97%) contrast(92%);
}

/* ==========================================
   Item
========================================== */

.before-after-item {
    display: grid;

    grid-template-columns: 44px 1fr;

    gap: .8rem;

    align-items: center;

    padding: 1rem 0;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.before-after-item:last-child {
    border-bottom: 0;
}


/* ==========================================
   Item icon
========================================== */

.before-after-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
}

.before-after-item-icon img {
    display: block;

    width: 25px;
    height: 25px;

    object-fit: contain;
}


/* ==========================================
   Item text
========================================== */

.before-after-item p {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 1.1rem;
    line-height: 1.5;
}


/* ==========================================
   Arrow
========================================== */

.before-after-arrow {
    position: absolute;

    top: 50%;
    left: 50%;

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

    width: 70px;
    height: 70px;

    transform: translate(-50%, -50%);

    border: 1px solid var(--color-primary);
    border-radius: 50%;

    background: #07111D;

    color: #fff;

    font-size: 1.8rem;
    font-weight: 600;

    box-shadow:
        0 0 30px rgba(77,124,255,.25);

    z-index: 5;
}


/* ==========================================
   Responsive — Tablet
========================================== */

@media (max-width: 1100px) {

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .before-after-arrow {
        top: 50%;
        left: 50%;
    }
}


/* ==========================================
   Responsive — Mobile
========================================== */

@media (max-width: 600px) {

    .before-after-section {
        padding: 2rem 0;
    }


    /* ==========================================
       Heading
    ========================================== */

    .before-after-heading {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2.5rem;
        padding: 0 .75rem;
    }

    .before-after-heading .section-eyebrow {
        margin-bottom: 1.5rem;
        font-size: 12px;
    }

    .before-after-title {
        width: 100%;
        max-width: 100%;

        margin: 0 auto 1.25rem;

        font-size: clamp(2.5rem, 10.5vw, 3.5rem);
        line-height: .98;
        letter-spacing: -.045em;

        white-space: normal;
    }

    .before-after-title-line {
        display: inline;
        white-space: normal;
    }

    .before-after-description {
        max-width: 340px;

        font-size: .95rem;
        line-height: 1.55;
    }


    /* ==========================================
       Panels
    ========================================== */

    .before-after-grid {
        display: flex;
        flex-direction: column;

        gap: 1.5rem;

        width: 100%;
    }

    .before-after-panel {
        width: 100%;
        padding: 1.5rem;
    }


    /* ==========================================
       Arrow — downward
    ========================================== */

    .before-after-arrow {
        position: relative;

        top: auto;
        left: auto;

        display: flex;

        width: 54px;
        height: 54px;

        margin: 0 auto;

        transform: none;

        border: 0;
        border-radius: 0;

        background: transparent;

        color: var(--color-primary);

        font-size: 2rem;
        line-height: 1;

        box-shadow: none;

        z-index: 5;
    }

    .before-after-arrow::before {
        content: "↓";
    }

    .before-after-arrow {
        font-size: 0;
    }

    .before-after-arrow::before {
        font-size: 2rem;
    }
}


/* ==========================================
   Small Mobile
========================================== */

@media (max-width: 400px) {

    .before-after-section {
        padding: 4.5rem 0;
    }

    .before-after-heading {
        padding: 0 .5rem;
    }

    .before-after-title {
        font-size: 2.45rem;
    }

    .before-after-description {
        font-size: .9rem;
    }

    .before-after-panel {
        padding: 1.25rem;
    }

    .before-after-arrow {
        width: 50px;
        height: 50px;
    }

    .before-after-arrow::before {
        font-size: 1.8rem;
    }
}