/*
 * E-Projekt — style podstron realizacji / case studies
 * Ładuj po style-clean.css wyłącznie na zakładkach projektów.
 */

.case-study-page {
    --case-navy: #11142f;
    --case-blue: #2563eb;
    --case-blue-soft: #dbeafe;
    --case-heading: #1f2937;
    --case-text: #64748b;
    --case-border: #e2e8f0;
    --case-muted-bg: #f8fafc;
}
.case-overview {
    padding: 92px 0 46px;
    background: #fff;
}
.case-overview__image {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08),
    0 3px 12px rgba(15, 23, 42, 0.04);
}
.case-overview__image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.45s ease;
}
.case-overview__image:hover img {
    transform: scale(1.012);
}
.case-overview__content {
    max-width: 720px;
}
.case-overview__content h2 {
    margin: 0 0 15px;
    color: var(--case-heading);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.case-overview__content p, .case-overview__continuation p {
    margin: 0;
    color: var(--case-text);
    font-size: 16px;
    line-height: 1.85;
}
.case-overview__content p + p, .case-overview__continuation p + p {
    margin-top: 17px;
}
.case-overview__continuation {
    max-width: 1110px;
    margin-top: 24px;
}
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}
.case-tags span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--case-border);
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}
.case-process {
    padding: 50px 0 90px;
    background: #fff;
}
.case-process .row > div {
    display: flex;
}
.case-process-card {
    width: 100%;
    padding: 36px;
    border: 1px solid var(--case-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055),
    0 3px 10px rgba(15, 23, 42, 0.025);
}
.case-process-card--accent {
    background: linear-gradient(
            180deg,
            rgba(37, 99, 235, 0.035),
            rgba(37, 99, 235, 0)
    ),
    #fff;
    border-color: #d8e5fb;
}
.case-process-card__eyebrow, .case-results__eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--case-blue);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.case-process-card > h2 {
    margin: 0 0 30px;
    color: var(--case-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.case-process-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.case-process-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #edf1f5;
}
.case-process-list li:first-child {
    padding-top: 0;
    border-top: 0;
}
.case-process-list li:last-child {
    padding-bottom: 0;
}
.case-process-list__number {
    color: var(--case-blue-soft);
    font-size: 31px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.case-process-list h3 {
    margin: 0 0 6px;
    color: var(--case-heading);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}
.case-process-list p {
    margin: 0;
    color: var(--case-text);
    font-size: 14px;
    line-height: 1.7;
}
.case-results {
    padding: 82px 0 92px;
    background: radial-gradient(
            circle at 100% 0%,
            rgba(37, 99, 235, 0.06),
            transparent 28%
    ),
    var(--case-muted-bg);
}
.case-results h2 {
    margin: 0 0 15px;
    color: var(--case-heading);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.case-results .col-lg-4 > p {
    max-width: 430px;
    margin: 0;
    color: var(--case-text);
    font-size: 16px;
    line-height: 1.8;
}
.case-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.case-results-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 23px;
    border: 1px solid var(--case-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}
.case-results-list__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--case-blue);
    background: #eff6ff;
}
.case-results-list__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.case-results-list h3 {
    margin: 0 0 6px;
    color: var(--case-heading);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}
.case-results-list p {
    margin: 0;
    color: var(--case-text);
    font-size: 14px;
    line-height: 1.65;
}
@media (max-width: 991.98px) {
.case-overview {
        padding-top: 72px;
    }
.case-overview__content {
        max-width: none;
    }
.case-process {
        padding-bottom: 72px;
    }
.case-process-card {
        padding: 30px;
    }
.case-results {
        padding: 72px 0 78px;
    }
.case-results-list {
        margin-top: 12px;
    }
}
@media (max-width: 767.98px) {
.case-overview {
        padding: 58px 0 34px;
    }
.case-overview__content h2 {
        font-size: 25px;
    }
.case-overview__content p, .case-overview__continuation p {
        font-size: 15px;
        line-height: 1.75;
    }
.case-process {
        padding: 36px 0 58px;
    }
.case-process-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
.case-process-card > h2 {
        margin-bottom: 22px;
        font-size: 22px;
    }
.case-process-list li {
        grid-template-columns: 37px minmax(0, 1fr);
        gap: 11px;
        padding: 17px 0;
    }
.case-process-list__number {
        font-size: 27px;
    }
.case-results {
        padding: 58px 0 64px;
    }
.case-results h2 {
        font-size: 30px;
    }
.case-results-list {
        grid-template-columns: 1fr;
        gap: 13px;
    }
.case-results-list li {
        padding: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
.case-overview__image img {
        transition: none;
    }
.case-overview__image:hover img {
        transform: none;
    }
}
.case-subheader {
    position: relative;
    overflow: hidden;

    padding: 46px 0 42px;

    border-bottom: 1px solid rgba(15, 23, 42, 0.06);

    background: linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
    );
}
.case-subheader__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 38%;

    background: url("../images/background/7.webp") center center / cover no-repeat;

    opacity: 0.055;

    filter: grayscale(0.35) saturate(0.65) contrast(1.05);

    pointer-events: none;
}
.case-subheader__overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.99) 58%,
            rgba(248, 250, 252, 0.92) 76%,
            rgba(248, 250, 252, 0.5) 100%
    );

    pointer-events: none;
}
.case-subheader .container {
    position: relative;
    z-index: 2;
}
.case-subheader__eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: #2563eb;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.case-subheader__title {
    max-width: 760px;
    margin: 0 0 12px;

    color: #1f2937;

    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.case-subheader__lead {
    max-width: 650px;
    margin: 0;

    color: #64748b;

    font-size: 15px;
    line-height: 1.65;
}
.case-subheader__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 16px;
}
.case-subheader__tags span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;

    padding: 0 10px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    color: #64748b;
    background: rgba(255, 255, 255, 0.82);

    font-size: 10px;
    line-height: 1;
    font-weight: 600;
}
.case-subheader + .case-study-page .case-overview {
    padding-top: 62px;
}
@media (max-width: 991.98px) {
.case-subheader {
        padding: 40px 0 38px;
    }
.case-subheader__image {
        width: 48%;
        opacity: 0.045;
    }
.case-subheader__title {
        font-size: 40px;
    }
.case-subheader__lead {
        max-width: 600px;
    }
}
@media (max-width: 575.98px) {
.case-subheader {
        padding: 34px 0 32px;
    }
.case-subheader__image {
        width: 100%;
        opacity: 0.025;
    }
.case-subheader__overlay {
        background: linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.99),
                rgba(248, 250, 252, 0.96)
        );
    }
.case-subheader__title {
        margin-bottom: 10px;
        font-size: 31px;
        line-height: 1.1;
    }
.case-subheader__lead {
        font-size: 14px;
        line-height: 1.6;
    }
.case-subheader__tags {
        margin-top: 14px;
    }
.case-subheader__tags span {
        min-height: 27px;
        padding: 0 9px;
    }
.case-subheader + .case-study-page .case-overview {
        padding-top: 48px;
    }
}
.case-overview__images--domina {
    position: relative;
    max-width: 100%;
    padding-bottom: 74px;
}
.case-overview__images--domina .case-overview__image--main {
    position: relative;
    z-index: 1;
    width: 88%;
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;

    box-shadow:
            0 18px 45px rgba(15, 23, 42, 0.08),
            0 3px 10px rgba(15, 23, 42, 0.035);
}
.case-overview__images--domina .case-overview__image--secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;

    width: 57%;
    overflow: hidden;

    border: 7px solid #fff;
    border-radius: 12px;
    background: #fff;

    box-shadow:
            0 22px 50px rgba(15, 23, 42, 0.14),
            0 4px 12px rgba(15, 23, 42, 0.06);
}
.case-overview__images--domina img {
    display: block;
    width: 100%;
    height: auto;
}
.case-overview__images--domina .case-overview__image img {
    transition: transform 0.4s ease;
}
.case-overview__images--domina .case-overview__image:hover img {
    transform: scale(1.012);
}
.case-overview__images--domina .case-overview__image--secondary {
    position: absolute;
    right: 0;
    bottom: -30px;
    z-index: 2;

    width: 57%;
    overflow: hidden;

    border: 7px solid #fff;
    border-radius: 12px;
    background: #fff;

    box-shadow:
            0 22px 50px rgba(15, 23, 42, 0.14),
            0 4px 12px rgba(15, 23, 42, 0.06);
}
@media (max-width: 991.98px) {
.case-overview__images--domina {
        max-width: 650px;
        margin: 0 auto 20px;
        padding-bottom: 82px;
    }
.case-overview__images--domina .case-overview__image--main {
        width: 86%;
    }
.case-overview__images--domina .case-overview__image--secondary {
        width: 55%;
    }
}
@media (max-width: 575.98px) {
.case-overview__images--domina {
        padding-bottom: 58px;
    }
.case-overview__images--domina .case-overview__image--main {
        width: 92%;
    }
.case-overview__images--domina .case-overview__image--secondary {
        width: 58%;
        border-width: 5px;
    }
}
