/* =========================================================
   USTAWIENIA OGÓLNE
   ========================================================= */

.sperling-home *,
.sperling-home *::before,
.sperling-home *::after {
    box-sizing: border-box;
}

.sperling-home,
.sperling-home {
    margin: 0;
    padding: 0;
}

.sperling-home {
    min-width: 320px;
    font-family: "Inter", sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

.sperling-home img {
    display: block;
    max-width: 100%;
}

.sperling-home a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HERO - GŁÓWNY UKŁAD
   ========================================================= */

.sperling-home .hero-section {
    --hero-height: clamp(745px, 52vw, 920px);

    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    width: 100%;
    min-height: var(--hero-height);

    overflow: hidden;
    background-color: #ffffff;
}

.sperling-home .hero-section > .hero-text,
.sperling-home .hero-section > .hero-team {
    width: auto;
    min-width: 0;
}

.sperling-home .hero-section--without-team {
    grid-template-columns: minmax(0, 1fr);
}

.sperling-home .hero-section--without-team .hero-text {
    padding-right: clamp(45px, 12vw, 180px);
}

.sperling-home .hero-section--without-team h1,
.sperling-home .hero-section--without-team .hero-text > p:not(.section-name) {
    max-width: 850px;
}


/* =========================================================
   HERO - LEWA STRONA
   ========================================================= */

.sperling-home .hero-text {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-height: var(--hero-height);

    padding:
        clamp(60px, 7vw, 110px)
        clamp(45px, 7vw, 105px);

    background-color: #ffffff;
}

.sperling-home .section-name {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0 0 25px;

    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #1e293b;
}

.sperling-home .section-name::before {
    content: "";

    display: block;
    flex: 0 0 32px;

    width: 32px;
    height: 2px;

    background-color: #1e293b;
}

.sperling-home .hero-section h1 {
    max-width: 650px;
    margin: 0;

    font-size: clamp(44px, 4vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -2px;

    color: #1e293b;
}

.sperling-home .hero-section h1 span {
    display: block;
    color: #ff5722;
}

.sperling-home .hero-text > p:not(.section-name) {
    max-width: 570px;
    margin: 15px 0 0;

    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0;

    color: #4b5563;
}

.sperling-home .hero-text > .bold-text {
    margin-top: 25px;
    font-weight: 700;
}


/* =========================================================
   HERO - PRZYCISKI
   ========================================================= */

.sperling-home .hero-section .cta-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    margin-top: 30px;
}

.sperling-home .hero-section .cta-section a {
    display: block;
    cursor: pointer;
}

.sperling-home .hero-section .cta-section p {
    display: flex;
    align-items: center;
    gap: 16px;

    margin: 0;
    padding: 15px 23px;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.7px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.sperling-home .hero-section .cta-section a:hover p {
    transform: translateY(-2px);
}

.sperling-home .hero-section .cta-section .hero-cta-button {
    color: #ffffff;
    background-color: #ff5722;

    box-shadow:
        0 8px 18px rgba(255, 87, 34, 0.22),
        inset 0 10px 20px rgba(255, 86, 34, 0.66);
}

.sperling-home .hero-section .cta-section .hero-cta-button-ghost {
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
}

.sperling-home .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   HERO - TAGI
   ========================================================= */

.sperling-home .hero-section .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    width: 100%;
    margin-top: 42px;
	margin-bottom: 32px;
}

.sperling-home .hero-section .hero-tags .hero-tag {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 15px 23px;

    border: 1px solid #d1d5db;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.7px;

    color: #4b5563;
    background-color: #ffffff;

    white-space: nowrap;
    text-decoration: none;
}

.sperling-home .hero-section .hero-tags a.hero-tag {
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.sperling-home .hero-section .hero-tags a.hero-tag:hover,
.sperling-home .hero-section .hero-tags a.hero-tag:focus-visible {
    color: #ffffff;
    border-color: #ff5722;
    background-color: #ff5722;
}

.sperling-home .hero-section .hero-tags a.hero-tag:focus-visible {
    outline: 3px solid rgba(255, 87, 34, 0.32);
    outline-offset: 3px;
}


/* =========================================================
   HERO - PRAWA STRONA
   ========================================================= */

.sperling-home .hero-section .hero-team {
    position: relative;
    isolation: isolate;

    min-height: var(--hero-height);

    overflow: hidden;
    background-color: #ff5722;
}

.sperling-home .hero-team::before {
    content: "";

    position: absolute;
    z-index: 0;
    inset: 0;

    background-color: #1e293b;

    clip-path: polygon(
        0 0,
        9% 0,
        39% 100%,
        0 100%
    );
}


/* =========================================================
   HERO - KARTY ZESPOŁU
   ========================================================= */

.sperling-home .hero-team .team-member {
    position: absolute;
    z-index: 2;

    margin: 0;
    padding: 7px;

    overflow: hidden;

    background-color: #ffffff;
    border-radius: 20px;

    transform: skewX(-4deg);
    transform-origin: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: box-shadow 180ms ease;
}

.sperling-home .hero-team .team-member-inside {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 13px;
    background-color: #dddddd;
}

.sperling-home .hero-team .team-member-photo {
    position: absolute;

    top: 0;
    left: 50%;

    width: 114%;
    max-width: none;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transform:
        translateX(-50%)
        skewX(4deg)
        scale(1.05);

    transform-origin: center;
    transition: none;
}

.sperling-home .hero-team .team-member-inside.is-fallback-logo {
    background-color: #f4f5f6;
}

.sperling-home .hero-team .team-member-inside.is-fallback-logo .team-member-photo {
    top: 14%;
    width: 72%;
    height: 62%;
    padding: 10%;
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%) skewX(4deg);
}

.sperling-home .sph-image-placeholder {
    position: absolute;
    inset: 14% 10% 28%;

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

    padding: 20px;

    font-size: clamp(14px, 1.4vw, 24px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;

    color: #1e293b;
}

.sperling-home .hero-team .member-info {
    position: absolute;
    z-index: 3;

    left: -3px;
    bottom: -3px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 78%;
    min-height: 23%;
    padding: 14px 17px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 85% 85%,
            rgba(15, 73, 138, 0.65),
            transparent 58%
        ),
        #001b45;

    border-radius: 0 12px 12px 0;

    transform: skewX(4deg);
    transform-origin: left bottom;

    transition: none;
}

.sperling-home .hero-team .member-info p {
    width: auto;
    max-width: none;

    margin: 0;
    padding: 0;

    color: #ffffff;
    letter-spacing: 0;
}

.sperling-home .hero-team .member-name {
    margin-bottom: 7px !important;

    font-size: clamp(11px, 0.68vw, 14px);
    font-weight: 700;
    line-height: 1.3;
}

.sperling-home .hero-team .member-role {
    font-size: clamp(8px, 0.52vw, 10.5px);
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   HERO - ROZMIESZCZENIE KART
   ========================================================= */

.sperling-home .hero-team .member-1 {
    z-index: 5;

    top: 15%;
    left: 4%;

    width: 33.5%;
    aspect-ratio: 340 / 485;
}

.sperling-home .hero-team .member-1 .member-info {
    width: 80%;
    min-height: 23%;
    padding: 16px 19px;
}

.sperling-home .hero-team .member-1 .member-name {
    margin-bottom: 8px !important;
    font-size: clamp(12px, 0.75vw, 15px);
}

.sperling-home .hero-team .member-1 .member-role {
    font-size: clamp(8.5px, 0.56vw, 11px);
}

.sperling-home .hero-team .member-2 {
    top: 3%;
    left: 45%;

    width: 26%;
    aspect-ratio: 4 / 5.2;
}

.sperling-home .hero-team .member-3 {
    top: 15%;
    right: 3%;

    width: 24.5%;
    aspect-ratio: 4 / 4.95;
}

.sperling-home .hero-team .member-4 {
    top: 55%;
    left: 36.5%;

    width: 26.5%;
    aspect-ratio: 4 / 5;
}

.sperling-home .hero-team .member-5 {
    top: 56%;
    right: 4%;

    width: 25%;
    aspect-ratio: 4 / 4.9;
}


/* =========================================================
   HERO - HOVER KART
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    /* Bez skalowania zdjęcia i karty - obraz pozostaje ostry podczas hoveru. */
    .sperling-home .hero-team .team-member:hover {
        z-index: 10;
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
    }

}


/* =========================================================
   SEKCJA - DLACZEGO WARTO WYBRAĆ SPERLING
   ========================================================= */

/*
 * Sama sekcja zaczyna się normalnie pod hero.
 * Tylko biały element po lewej wychodzi do góry o 72 px.
 * Nad prawą częścią nie ma granatowego prostokąta.
 */

.sperling-home .why-section {
    position: relative;
    z-index: 3;
    isolation: isolate;

    min-height: 930px;

    overflow: visible;

    /*
     * Granat jest tylko od początku tej sekcji.
     * Nie wychodzi ponad nią na hero.
     */
    background-color: #14243a;
}


/*
 * Zdjęcie i granat rozpoczynają się dopiero od początku
 * właściwej sekcji - nie nachodzą na hero.
 */

.sperling-home .why-section__bg {
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;
    bottom: 0;

    width: 48%;

    background-color: #14243a;
    background-image:
        linear-gradient(
            rgba(20, 36, 58, 0.78),
            rgba(20, 36, 58, 0.9)
        ),
        var(--sph-why-bg-image, linear-gradient(#14243a, #14243a));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/*
 * Wyłączenie wcześniejszych ozdobników nad sekcją.
 */

.sperling-home .why-section__top-accent,
.sperling-home .why-section__top-accent-navy,
.sperling-home .why-section__top-accent-orange {
    display: none;
}


/* =========================================================
   WHY - GŁÓWNY UKŁAD
   ========================================================= */

.sperling-home .why-section__inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 52% 48%;

    min-height: 930px;
}


/* =========================================================
   WHY - BIAŁY SKOŚNY KSZTAŁT
   ========================================================= */

.sperling-home .why-section__left {
    position: relative;
    z-index: 3;

    padding:
        210px
        90px
        90px
        clamp(40px, 7vw, 120px);

    /*
     * Ważne - sam kontener nie może mieć
     * białego prostokątnego tła.
     */
    background: transparent;
}

.sperling-home .why-section__left::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -72px;
    left: 0;
    bottom: 0;

    width: 118%;

    background-color: #ffffff;

    /*
     * Jedna prosta linia od prawego górnego
     * narożnika do punktu na dole.
     */
    clip-path: polygon(
        0 0,
        100% 0,
        77% 100%,
        0 100%
    );

    pointer-events: none;
}


/* =========================================================
   WHY - LEWA TREŚĆ
   ========================================================= */

.sperling-home .why-section__eyebrow {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 18px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #ff7a43;
}

.sperling-home .why-section__eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background-color: #ff7a43;
}

.sperling-home .why-section__left h2 {
    max-width: 640px;
    margin: 0 0 24px;

    font-size: clamp(34px, 3.2vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1px;

    color: #1f3145;
}

.sperling-home .why-section__intro {
    max-width: 560px;
    margin: 0 0 44px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;

    color: #697583;
}

.sperling-home .why-section__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 30px;

    max-width: 720px;
}

.sperling-home .why-feature {
    padding-top: 18px;
    border-top: 1px solid rgba(31, 49, 69, 0.15);
}

.sperling-home .why-feature h3 {
    margin: 0 0 12px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;

    color: #1f3145;
}

.sperling-home .why-feature p {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: #7a8591;
}

.sperling-home .why-section__more {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    margin-top: 34px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #51606e;
}

.sperling-home .why-section__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    font-size: 16px;
    line-height: 1;

    color: #ffffff;
    background-color: #ff5a1f;

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

.sperling-home .why-section__more:hover .why-section__more-icon {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.28);
}


/* =========================================================
   WHY - PRAWA STRONA I STATYSTYKI
   ========================================================= */

.sperling-home .why-section__right {
    position: relative;
    z-index: 2;

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

    padding:
        100px
        clamp(30px, 5vw, 90px)
        90px
        60px;
}

.sperling-home .why-stats {
    width: min(100%, 560px);
    margin-left: auto;
}

.sperling-home .why-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 20px;

    padding: 16px 0;

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

.sperling-home .why-stat__label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    text-align: right;

    color: rgba(255, 255, 255, 0.82);
}

.sperling-home .why-stat__value {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 150px;
    min-width: 150px;
    min-height: 56px;

    padding-left: 18px;

    border-left: 1px solid rgba(255, 255, 255, 0.18);

    font-size: clamp(34px, 3vw, 56px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;

    color: #ffffff;
}


/* =========================================================
   RESPONSYWNOŚĆ - MNIEJSZE LAPTOPY
   ========================================================= */

@media (max-width: 1300px) {

    .sperling-home .hero-text {
        padding:
            60px
            clamp(35px, 5vw, 70px);
    }

    .sperling-home .hero-section h1 {
        font-size: clamp(40px, 4vw, 52px);
    }

    .sperling-home .hero-text > p:not(.section-name) {
        font-size: 17px;
        line-height: 26px;
    }

    .sperling-home .hero-section .hero-tags .hero-tag {
        padding: 15px 23px;

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

}

@media (max-width: 1200px) {

    .sperling-home .why-section__inner {
        grid-template-columns: 56% 44%;
    }

    .sperling-home .why-section__bg {
        width: 44%;
    }

    .sperling-home .why-section__left {
        padding: 190px 60px 80px 50px;
    }

    .sperling-home .why-section__right {
        padding: 100px 35px 70px;
    }

    .sperling-home .why-section__features {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .sperling-home .why-stat {
        grid-template-columns: minmax(0, 1fr) 130px;
    }

    .sperling-home .why-stat__value {
        width: 130px;
        min-width: 130px;
    }

}


/* =========================================================
   RESPONSYWNOŚĆ - TABLETY
   ========================================================= */

@media (max-width: 1050px) {

    .sperling-home .hero-section {
        --hero-height: 760px;
        grid-template-columns: 1fr;
    }

    .sperling-home .hero-text {
        min-height: auto;
        padding: 70px 40px;
    }

    .sperling-home .hero-section h1 {
        max-width: 700px;
    }

    .sperling-home .hero-text > p:not(.section-name) {
        max-width: 650px;
    }

    .sperling-home .hero-team .member-1 {
        top: 15%;
        left: 4%;

        width: 33%;
    }

    .sperling-home .hero-team .member-2 {
        top: 3%;
        left: 45%;

        width: 25%;
    }

    .sperling-home .hero-team .member-3 {
        top: 15%;
        right: 3%;

        width: 24%;
    }

    .sperling-home .hero-team .member-4 {
        top: 55%;
        left: 36.5%;

        width: 26%;
    }

    .sperling-home .hero-team .member-5 {
        top: 56%;
        right: 4%;

        width: 24.5%;
    }

}

@media (max-width: 991px) {

    .sperling-home .why-section {
        min-height: auto;
    }

    .sperling-home .why-section__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sperling-home .why-section__bg {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 50%;
    }

    .sperling-home .why-section__left {
        padding: 120px 24px 70px;
    }

    .sperling-home .why-section__left::before {
        top: -40px;
        width: 100%;

        clip-path: polygon(
            0 0,
            100% 0,
            94% 100%,
            0 100%
        );
    }

    .sperling-home .why-section__right {
        min-height: 650px;
        padding: 70px 24px;
    }

    .sperling-home .why-stats {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    .sperling-home .why-stat {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .sperling-home .why-stat__label {
        text-align: right;
    }

    .sperling-home .why-stat__value {
        width: 150px;
        min-width: 150px;
    }

}


/* =========================================================
   RESPONSYWNOŚĆ - TELEFONY
   ========================================================= */

@media (max-width: 650px) {

    .sperling-home .hero-section {
        --hero-height: 600px;
    }

    .sperling-home .hero-text {
        padding: 50px 22px;
    }

    .sperling-home .section-name {
        gap: 12px;
        margin-bottom: 20px;

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

    .sperling-home .section-name::before {
        flex-basis: 25px;
        width: 25px;
    }

    .sperling-home .hero-section h1 {
        font-size: clamp(36px, 11vw, 46px);
        line-height: 1.15;
        letter-spacing: -1.5px;
    }

    .sperling-home .hero-text > p:not(.section-name) {
        font-size: 15px;
        line-height: 24px;
    }

    .sperling-home .hero-section .cta-section {
        gap: 10px;
    }

    .sperling-home .hero-section .cta-section p {
        padding: 13px 18px;

        font-size: 12px;
        line-height: 18px;
    }

    .sperling-home .hero-section .hero-tags {
        gap: 8px;
        margin-top: 32px;
    }

    .sperling-home .hero-section .hero-tags .hero-tag {
        padding: 11px 16px;

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

    .sperling-home .hero-team::before {
        clip-path: polygon(
            0 0,
            8% 0,
            40% 100%,
            0 100%
        );
    }

    .sperling-home .hero-team .team-member {
        padding: 4px;
        border-radius: 13px;
    }

    .sperling-home .hero-team .team-member-inside {
        border-radius: 9px;
    }

    .sperling-home .hero-team .member-info {
        padding: 7px 8px;
        border-radius: 0 8px 8px 0;
    }

    .sperling-home .hero-team .member-name {
        margin-bottom: 4px !important;
        font-size: 8px;
    }

    .sperling-home .hero-team .member-role {
        font-size: 6px;
        line-height: 1.35;
    }

    .sperling-home .hero-team .member-1 {
        top: 15%;
        left: 4%;

        width: 37%;
    }

    .sperling-home .hero-team .member-1 .member-info {
        padding: 9px 10px;
    }

    .sperling-home .hero-team .member-1 .member-name {
        font-size: 9px;
    }

    .sperling-home .hero-team .member-1 .member-role {
        font-size: 6.5px;
    }

    .sperling-home .hero-team .member-2 {
        top: 4%;
        left: 47%;

        width: 27%;
    }

    .sperling-home .hero-team .member-3 {
        top: 19%;
        right: 2.5%;
        left: auto;

        width: 23%;
    }

    .sperling-home .hero-team .member-4 {
        top: 58%;
        left: 37%;

        width: 28%;
    }

    .sperling-home .hero-team .member-5 {
        top: 60%;
        right: 3%;
        left: auto;

        width: 25%;
    }

    .sperling-home .why-section__left h2 {
        font-size: 32px;
    }

    .sperling-home .why-section__intro {
        font-size: 15px;
    }

    .sperling-home .why-feature h3 {
        font-size: 15px;
    }

    .sperling-home .why-feature p {
        font-size: 13px;
    }

    .sperling-home .why-section__right {
        min-height: auto;
        padding: 60px 22px 70px;
    }

    .sperling-home .why-stat {
        grid-template-columns: 1fr;
        gap: 8px;

        padding: 18px 0;
    }

    .sperling-home .why-stat__label {
        text-align: left;
        font-size: 13px;
    }

    .sperling-home .why-stat__value {
        width: auto;
        min-width: 0;
        min-height: 0;

        padding-left: 0;

        border-left: 0;

        font-size: 34px;
    }

}


/* =========================================================
   RESPONSYWNOŚĆ - BARDZO MAŁE TELEFONY
   ========================================================= */

@media (max-width: 420px) {

    .sperling-home .hero-section {
        --hero-height: 520px;
    }

    .sperling-home .hero-text {
        padding: 45px 20px;
    }

    .sperling-home .hero-section .cta-section {
        align-items: flex-start;
    }

    .sperling-home .hero-section .cta-section p {
        padding: 12px 15px;
    }

    .sperling-home .hero-section .hero-tags .hero-tag {
        padding: 9px 13px;

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

}

/* =========================================================
   SEPARATOR PRZED SEKCJĄ USŁUG
   ========================================================= */

.sperling-home .services-separator {
    position: relative;
    z-index: 1;

    width: 100%;
    height: clamp(90px, 8vw, 135px);

    overflow: hidden;
    background-color: #14243a;
}

/*
 * Biały fragment na górnej krawędzi.
 * Nawiązuje do skosu z poprzedniej sekcji.
 */
.sperling-home .services-separator::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 43%;
    height: 10px;

    background-color: #ffffff;

    clip-path: polygon(
        0 0,
        100% 0,
        99% 100%,
        0 100%
    );
}


/* =========================================================
   SEKCJA USŁUG I REKOMENDACJI
   ========================================================= */

.sperling-home .services-recommendations {
    position: relative;
    z-index: 1;

    width: 100%;

    overflow: hidden;
    background-color: #14243a;

    border-bottom: 2px solid rgba(255, 255, 255, 0.65);
}

.sperling-home .services-recommendations__inner {
    display: grid;
    grid-template-columns: 50% 50%;

    width: 100%;
    min-height: 395px;
}


/* =========================================================
   LEWA STRONA - USŁUGI
   ========================================================= */

.sperling-home .services-panel {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        70px
        clamp(50px, 6vw, 120px)
        70px
        clamp(50px, 13vw, 250px);

    color: #ffffff;
    background-color: #14243a;
}

.sperling-home .services-panel__eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0 0 10px;

    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: #ff5722;
}

.sperling-home .services-panel__eyebrow::before {
    content: "";

    display: block;
    flex: 0 0 26px;

    width: 26px;
    height: 1px;

    background-color: #ff5722;
}

.sperling-home .services-panel__title {
    margin: 0 0 30px;

    font-size: clamp(28px, 2.2vw, 38px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.8px;

    color: #ffffff;
}


/* =========================================================
   LISTA USŁUG
   ========================================================= */

.sperling-home .services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;

    width: 100%;
    max-width: 620px;
}

.sperling-home .services-list__column {
    margin: 0;
    padding: 0;

    list-style: none;
}

.sperling-home .services-list__column li {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 50px;
    padding: 10px 8px 10px 18px;

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

.sperling-home .services-list__column li::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background-color: #ff5722;

    transform: translateY(-50%);
}

.sperling-home .services-list__column a {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;

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

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.sperling-home .services-list__column li:hover a {
    color: #ff5722;
    transform: translateX(3px);
}


/* =========================================================
   LINK - WSZYSTKIE USŁUGI
   ========================================================= */

.sperling-home .services-panel__more {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    align-self: flex-start;

    margin-top: 25px;

    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.9);
}

.sperling-home .services-panel__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    font-size: 16px;
    line-height: 1;

    color: #ffffff;
    background-color: #ff5722;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.sperling-home .services-panel__more:hover .services-panel__more-icon {
    transform: translateX(4px);

    box-shadow:
        0 8px 18px rgba(255, 87, 34, 0.35);
}


/* =========================================================
   PRAWA STRONA - REKOMENDACJA
   ========================================================= */

.sperling-home .recommendation-panel {
    position: relative;
    z-index: 2;

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

    min-width: 0;

    padding:
        55px
        clamp(45px, 7vw, 135px)
        55px
        clamp(90px, 10vw, 180px);

    background-color: #ff5722;

    /*
     * Jedna prosta ukośna linia na całej wysokości panelu.
     */
    clip-path: polygon(
        18% 0,
        100% 0,
        100% 100%,
        0 100%
    );
}

.sperling-home .recommendation-panel__content {
    width: min(100%, 540px);

    margin-left: auto;

    text-align: center;
    color: #14243a;
}

.sperling-home .recommendation-panel__title {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;

    margin: 0 0 24px;

    font-size: clamp(30px, 2.6vw, 43px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;

    color: #14243a;
}

.sperling-home .recommendation-panel__quotes {
    display: inline-block;

    height: 36px;

    font-family: Georgia, serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.75;

    color: #14243a;

    transform: rotate(180deg);
}

.sperling-home .recommendation-panel__quote {
    max-width: 500px;

    margin: 0 auto;

    font-size: clamp(16px, 1.35vw, 22px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.48;

    color: #ffffff;
}

.sperling-home .recommendation-panel__author {
    margin: 24px 0 0;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #14243a;
}


/* =========================================================
   LINK - WIĘCEJ REKOMENDACJI
   ========================================================= */

.sperling-home .recommendation-panel__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 35px;

    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #ffffff;
}

.sperling-home .recommendation-panel__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    font-size: 20px;
    line-height: 1;

    color: #ff5722;
    background-color: #ffffff;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.sperling-home .recommendation-panel__more:hover .recommendation-panel__more-icon {
    transform: translateX(5px);

    box-shadow:
        0 10px 24px rgba(20, 36, 58, 0.18);
}


/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 1200px) {

    .sperling-home .services-panel {
        padding:
            65px
            50px
            65px
            60px;
    }

    .sperling-home .recommendation-panel {
        padding:
            55px
            50px
            55px
            100px;
    }

}

@media (max-width: 900px) {

    .sperling-home .services-separator {
        height: 75px;
    }

    .sperling-home .services-recommendations__inner {
        grid-template-columns: 1fr;
    }

    .sperling-home .services-panel {
        padding: 65px 35px;
    }

    .sperling-home .services-list {
        max-width: none;
    }

    .sperling-home .recommendation-panel {
        min-height: 470px;

        padding:
            100px
            35px
            65px;

        clip-path: polygon(
            0 13%,
            100% 0,
            100% 100%,
            0 100%
        );
    }

    .sperling-home .recommendation-panel__content {
        margin: 0 auto;
    }

}

@media (max-width: 600px) {

    .sperling-home .services-separator {
        height: 55px;
    }

    .sperling-home .services-separator::before {
        width: 65%;
        height: 7px;
    }

    .sperling-home .services-panel {
        padding: 55px 22px;
    }

    .sperling-home .services-panel__title {
        font-size: 31px;
    }

    .sperling-home .services-list {
        grid-template-columns: 1fr;
    }

    .sperling-home .services-list__column li {
        min-height: 48px;
    }

    .sperling-home .services-list__column a {
        font-size: 13px;
    }

    .sperling-home .recommendation-panel {
        min-height: 500px;

        padding:
            95px
            22px
            60px;

        clip-path: polygon(
            0 9%,
            100% 0,
            100% 100%,
            0 100%
        );
    }

    .sperling-home .recommendation-panel__title {
        font-size: 31px;
    }

    .sperling-home .recommendation-panel__quotes {
        font-size: 60px;
    }

    .sperling-home .recommendation-panel__quote {
        font-size: 16px;
    }

    .sperling-home .recommendation-panel__more {
        gap: 14px;
    }

}

.sperling-home .services-separator::before {
    content: none;
    display: none;
}
.sperling-home .services-separator {
    position: relative;
    z-index: 1;

    width: 100%;
    height: clamp(90px, 8vw, 135px);

    overflow: hidden;
    background-color: #14243a;
}

/* =========================================================
   SEKCJA - ZAUFALI NAM
   ========================================================= */

.sperling-home .trusted-section {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: clamp(75px, 8vw, 125px) 0;

    overflow: hidden;

    background-color: #ffffff;
}

.sperling-home .trusted-section__container {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}


/* =========================================================
   TYTUŁ
   ========================================================= */

.sperling-home .trusted-section__title {
    margin: 0 0 clamp(45px, 5vw, 75px);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2.2px;
    text-align: center;
    text-transform: uppercase;

    color: #6b7280;
}


/* =========================================================
   KARUZELA
   ========================================================= */

.sperling-home .trusted-carousel {
    position: relative;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);

    width: 100%;
}

.sperling-home .trusted-carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.sperling-home .trusted-carousel__track {
    display: flex;

    transform: translateX(0);

    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}


/* =========================================================
   POJEDYNCZY LOGOTYP
   ========================================================= */

.sperling-home .trusted-carousel__slide {
    flex: 0 0 25%;

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

    min-height: 130px;
    padding: 20px 35px;
}

.sperling-home .trusted-carousel__slide img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 95px;

    object-fit: contain;

    opacity: 0.42;
    filter: grayscale(1);

    transition:
        opacity 250ms ease,
        filter 250ms ease,
        transform 250ms ease;
}

.sperling-home .trusted-carousel__slide:hover img {
    opacity: 0.85;
    filter: grayscale(0);
    transform: scale(1.04);
}


/* =========================================================
   STRZAŁKI
   ========================================================= */

.sperling-home .trusted-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 70px;
    padding: 0;

    border: 0;

    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;

    color: #9ca3af;
    background: transparent;

    cursor: pointer;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.sperling-home .trusted-carousel__arrow:hover {
    color: #ff5722;
}

.sperling-home .trusted-carousel__arrow--prev:hover {
    transform: translateX(-4px);
}

.sperling-home .trusted-carousel__arrow--next:hover {
    transform: translateX(4px);
}

.sperling-home .trusted-carousel__arrow:focus-visible {
    outline: 2px solid #ff5722;
    outline-offset: 4px;
}


/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 1000px) {

    .sperling-home .trusted-carousel__slide {
        flex-basis: 33.3333%;
        padding: 20px 25px;
    }

}

@media (max-width: 750px) {

    .sperling-home .trusted-section {
        padding: 70px 0;
    }

    .sperling-home .trusted-section__container {
        width: min(100% - 24px, 1200px);
    }

    .sperling-home .trusted-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
    }

    .sperling-home .trusted-carousel__arrow {
        width: 34px;
        font-size: 40px;
    }

    .sperling-home .trusted-carousel__slide {
        flex-basis: 50%;
        min-height: 110px;
        padding: 18px;
    }

    .sperling-home .trusted-carousel__slide img {
        max-height: 75px;
    }

}

@media (max-width: 480px) {

    .sperling-home .trusted-carousel__slide {
        flex-basis: 100%;
    }

    .sperling-home .trusted-carousel__slide img {
        max-width: 220px;
        max-height: 90px;
    }

}

/* =========================================================
   SEKCJA ZESPOŁU
   ========================================================= */

.sperling-home .team-showcase {
    --team-navy: #14243a;
    --team-background: #344657;
    --team-orange: #ff5722;
    --team-gap: 16px;
    --team-visible: 7;

    position: relative;
    z-index: 4;
    isolation: isolate;

    width: 100%;
    min-height: 680px;

    padding: 76px 0 84px;

    overflow: visible;

    color: #ffffff;
    background-color: var(--team-background);
}

/*
 * Jeden element tworzy jednocześnie:
 * - wystający granatowy fragment nad sekcją,
 * - ciemniejszą lewą część tła,
 * - jeden ciągły skos aż do samego dołu.
 */
.sperling-home .team-showcase::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: -50px;
    left: 0;
    bottom: 0;

    width: 32%;

    background-color: var(--team-navy);

    clip-path: polygon(
        0 0,
        100% 0,
        78% 100%,
        0 100%
    );

    pointer-events: none;
}

/* Drugi pseudo-element nie jest potrzebny. */
.sperling-home .team-showcase::after {
    content: none;
    display: none;
}

.sperling-home .team-showcase__container {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 40px), 1920px);
    margin: 0 auto;
}

.sperling-home .team-showcase__title {
    margin: 0 0 42px 100px;

    font-size: clamp(34px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;

    color: #ffffff;
}


/* =========================================================
   UKŁAD KARUZELI
   ========================================================= */

.sperling-home .team-carousel {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: end;
    gap: 18px;

    width: 100%;
}

.sperling-home .team-carousel__viewport {
    width: 100%;
    min-width: 0;

    overflow: hidden;
}

.sperling-home .team-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--team-gap);

    width: 100%;

    will-change: transform;
}

.sperling-home .team-person-card {
    position: relative;

    flex:
        0
        0
        calc(
            (
                100% -
                (var(--team-visible) - 1) * var(--team-gap)
            ) / var(--team-visible)
        );

    min-width: 0;

    color: #ffffff;
    text-decoration: none;

    transition:
        transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}


/* =========================================================
   ZDJĘCIE OSOBY
   ========================================================= */

.sperling-home .team-person-card__photo {
    position: relative;

    width: 100%;
    aspect-ratio: 0.74;

    overflow: hidden;

    background-color: #d7dce0;

    box-shadow:
        0 10px 30px rgba(5, 18, 32, 0.08);

    transition:
        box-shadow 350ms ease,
        transform 350ms ease;
}

.sperling-home .team-person-card__photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20, 36, 58, 0.34),
            transparent 40%
        );

    opacity: 0;

    transition: opacity 350ms ease;
}

.sperling-home .team-person-card__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transition:
        transform 550ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 350ms ease;
}

.sperling-home .team-person-card__photo.is-fallback-logo {
    background-color: #f4f5f6;
}

.sperling-home .team-person-card__photo.is-fallback-logo img {
    padding: 20%;
    object-fit: contain;
    object-position: center;
}

.sperling-home .team-person-card__photo .sph-image-placeholder {
    inset: 0;
}


/* =========================================================
   NAZWA I STANOWISKO
   ========================================================= */

.sperling-home .team-person-card__content {
    position: relative;

    padding: 21px 6px 0;

    text-align: center;
}

.sperling-home .team-person-card__content::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 50%;

    width: 0;
    height: 2px;

    background-color: var(--team-orange);

    transform: translateX(-50%);

    transition: width 350ms ease;
}

.sperling-home .team-person-card__content h3 {
    margin: 0 0 8px;

    font-size: clamp(18px, 1.35vw, 24px);
    font-weight: 700;
    line-height: 1.2;

    color: #ffffff;

    transition: color 250ms ease;
}

.sperling-home .team-person-card__content p {
    min-height: 40px;
    margin: 0;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.75px;
    text-transform: uppercase;

    color: var(--team-orange);
}


/* =========================================================
   HOVER NA KARTACH
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .sperling-home .team-person-card:hover {
        z-index: 3;
        transform: translateY(-10px);
    }

    .sperling-home .team-person-card:hover .team-person-card__photo {
        box-shadow:
            0 22px 40px rgba(5, 18, 32, 0.25);
    }

    .sperling-home .team-person-card:hover .team-person-card__photo img {
        transform: scale(1.055);
        filter: contrast(1.03);
    }

    .sperling-home .team-person-card:hover .team-person-card__photo.is-fallback-logo img {
        transform: none;
        filter: none;
    }

    .sperling-home .team-person-card:hover .team-person-card__photo::after {
        opacity: 1;
    }

    .sperling-home .team-person-card:hover .team-person-card__content::before {
        width: 48px;
    }

    .sperling-home .team-person-card:hover .team-person-card__content h3 {
        color: #ff7043;
    }

}


/* =========================================================
   STRZAŁKI KARUZELI
   ========================================================= */

.sperling-home .team-carousel__controls {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 52px;
}

.sperling-home .team-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid var(--team-orange);
    border-radius: 50%;

    font-size: 17px;
    line-height: 1;

    color: var(--team-orange);
    background-color: transparent;

    cursor: pointer;

    transition:
        color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
}

.sperling-home .team-carousel__button--next {
    color: #ffffff;
    background-color: var(--team-orange);
}

.sperling-home .team-carousel__button:hover {
    color: #ffffff;
    background-color: var(--team-orange);

    transform: translateY(-3px);

    box-shadow:
        0 8px 18px rgba(255, 87, 34, 0.3);
}

.sperling-home .team-carousel__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.sperling-home .team-carousel__button:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}


/* =========================================================
   RESPONSYWNOŚĆ - ZESPÓŁ
   ========================================================= */

/* Szerokie ekrany - wszystkie 7 osób jednocześnie. */
@media (min-width: 1701px) {

    .sperling-home .team-showcase {
        --team-visible: 5;
        --team-gap: 16px;
    }

    .sperling-home .team-showcase__container {
        width: min(calc(100% - 40px), 1920px);
    }

    .sperling-home .team-showcase::before {
        width: 32%;
    }

}

@media (max-width: 1700px) {

    .sperling-home .team-showcase {
        --team-visible: 5;
        --team-gap: 18px;
    }

    .sperling-home .team-showcase__container {
        width: min(calc(100% - 50px), 1600px);
    }

    .sperling-home .team-showcase::before {
        width: 36%;
    }

}

/* Mniejsze laptopy. */
@media (max-width: 1300px) {

    .sperling-home .team-showcase {
        --team-visible: 4;
    }

    .sperling-home .team-showcase::before {
        width: 48%;
    }

}

/* Tablety. */
@media (max-width: 1000px) {

    .sperling-home .team-showcase {
        --team-visible: 3;

        min-height: 570px;
        padding-top: 70px;
    }

    .sperling-home .team-showcase::before {
        top: -40px;
        width: 56%;
    }

    .sperling-home .team-showcase__title {
        margin-left: 90px;
    }

}

/* Małe tablety. */
@media (max-width: 750px) {

    .sperling-home .team-showcase {
        --team-visible: 2;
        --team-gap: 16px;

        padding: 65px 0 70px;
    }

    .sperling-home .team-showcase__container {
        width: min(calc(100% - 30px), 1900px);
    }

    .sperling-home .team-showcase::before {
        top: -35px;
        width: 70%;
    }

    .sperling-home .team-showcase__title {
        margin: 0 0 35px 70px;
    }

    .sperling-home .team-carousel {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .sperling-home .team-carousel__controls {
        flex-direction: column;
        padding-bottom: 45px;
    }

    .sperling-home .team-carousel__button {
        flex-basis: 38px;

        width: 38px;
        height: 38px;
    }

}

/* Telefony. */
@media (max-width: 520px) {

    .sperling-home .team-showcase {
        --team-visible: 1;

        min-height: auto;
    }

    .sperling-home .team-showcase::before {
        width: 86%;
    }

    .sperling-home .team-showcase__title {
        margin-left: 55px;
        font-size: 34px;
    }

    .sperling-home .team-carousel {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .sperling-home .team-person-card__content h3 {
        font-size: 20px;
    }

    .sperling-home .team-person-card__content p {
        font-size: 9px;
    }

}

/* Większy odstęp strzałek od zdjęć na mniejszych ekranach */
@media (max-width: 1700px) {

    .sperling-home .team-carousel {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 32px;
    }

    .sperling-home .team-carousel__controls {
        justify-content: flex-end;
    }

}

@media (max-width: 1200px) {

    .sperling-home .team-carousel {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 26px;
    }

}

@media (max-width: 750px) {

    .sperling-home .team-carousel {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 22px;
    }

    .sperling-home .team-carousel__controls {
        flex-direction: column;
        justify-content: flex-end;
        gap: 10px;
    }

}

/* =========================================================
   ORGANIZACJE ZAWODOWE
   ========================================================= */

.sperling-home .professional-organizations {
    position: relative;
    z-index: 2;

    width: 100%;
    padding:
        clamp(70px, 7vw, 110px)
        0
        clamp(75px, 7vw, 115px);

    background-color: #ffffff;
}

.sperling-home .professional-organizations__container {
    width: min(calc(100% - 60px), 1320px);
    margin: 0 auto;
}


/* =========================================================
   TYTUŁ
   ========================================================= */

.sperling-home .professional-organizations__title {
    margin: 0 0 clamp(45px, 5vw, 70px);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.4px;
    text-align: center;
    text-transform: uppercase;

    color: #6b7280;
}


/* =========================================================
   LOGOTYPY
   ========================================================= */

.sperling-home .professional-organizations__logos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    gap: clamp(25px, 3vw, 55px);

    width: 100%;
}

.sperling-home .professional-organizations__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 130px;
}

.sperling-home .professional-organizations__logo img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 125px;

    object-fit: contain;
}

/* =========================================================
   SEKCJA - SPOSÓB PRACY I KONTAKT
   ========================================================= */

.sperling-home .work-contact-section {
    --work-navy: #1c3042;
    --work-navy-dark: #15283a;
    --work-orange: #ff521b;
    --work-white: #ffffff;

    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 755px;

    overflow: hidden;

    color: var(--work-white);
    background-color: var(--work-navy);
}

.sperling-home .work-contact-section__inner {
    position: relative;

    width: 100%;
    min-height: 755px;
}


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

.sperling-home .work-process {
    position: relative;
    z-index: 2;

    width: 75%;
    min-height: 755px;

    display: flex;
    align-items: center;

    padding:
        90px
        clamp(120px, 10vw, 190px)
        90px
        clamp(70px, 7.5vw, 145px);
}

.sperling-home .work-process__content {
    width: 100%;
    max-width: 980px;
}


/* =========================================================
   NAGŁÓWEK LEWEJ CZĘŚCI
   ========================================================= */

.sperling-home .work-process__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 8px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--work-orange);
}

.sperling-home .work-process__eyebrow::before {
    content: "";

    display: block;
    flex: 0 0 36px;

    width: 36px;
    height: 1px;

    background-color: var(--work-orange);
}

.sperling-home .work-process__title {
    max-width: 920px;

    margin: 0 0 17px;

    font-size: clamp(38px, 3.1vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;

    color: var(--work-white);
}

.sperling-home .work-process__description {
    max-width: 860px;

    margin: 0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;

    color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   ETAPY PROCESU
   ========================================================= */

.sperling-home .work-process__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    margin-top: 42px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sperling-home .work-step {
    position: relative;

    min-width: 0;
    min-height: 188px;

    padding: 38px 22px 20px 0;

    border-right: 1px solid rgba(255, 255, 255, 0.18);

    transition:
        background-color 250ms ease,
        transform 250ms ease;
}

.sperling-home .work-step:not(:first-child) {
    padding-left: 22px;
}

.sperling-home .work-step:last-child {
    border-right: 0;
}

.sperling-home .work-step__number {
    display: block;

    margin-bottom: 20px;

    font-size: clamp(30px, 2.1vw, 40px);
    font-weight: 400;
    line-height: 1;

    color: var(--work-orange);
}

.sperling-home .work-step__title {
    margin: 0 0 11px;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;

    color: var(--work-white);
}

.sperling-home .work-step__description {
    max-width: 195px;

    margin: 0;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;

    color: rgba(255, 255, 255, 0.68);
}

@media (hover: hover) and (pointer: fine) {

    .sperling-home .work-step:hover {
        transform: translateY(-5px);
        background-color: rgba(255, 255, 255, 0.025);
    }

}


/* =========================================================
   POMARAŃCZOWY PANEL
   ========================================================= */

.sperling-home .work-contact {
    position: absolute;
    z-index: 3;

    top: 0;
    right: 0;
    bottom: 0;

    width: 31%;

    display: flex;
    align-items: center;

    background-color: var(--work-orange);

    /*
     * Jedna ciągła krawędź:
     * - skos od góry,
     * - wcięcie w środkowej części,
     * - skos prowadzący do dołu.
     */
    clip-path: polygon(
        16% 0,
        100% 0,
        100% 100%,
        16% 100%,
        0 66%
    );
}

.sperling-home .work-contact__content {
    width: 100%;

    padding:
        70px
        clamp(45px, 5vw, 95px)
        70px
        clamp(95px, 8vw, 155px);
}


/* =========================================================
   TREŚĆ PANELU KONTAKTOWEGO
   ========================================================= */

.sperling-home .work-contact__title {
    margin: 0;

    font-size: clamp(42px, 3vw, 58px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.7px;

    color: var(--work-white);
}

.sperling-home .work-contact__line {
    display: block;

    width: 64px;
    height: 3px;

    margin: 24px 0 32px;

    background-color: var(--work-white);
}

.sperling-home .work-contact__description {
    margin: 0;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;

    color: var(--work-white);
}


/* =========================================================
   PRZYCISK
   ========================================================= */

.sperling-home .work-contact__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;

    width: 100%;
    max-width: 310px;
    min-height: 56px;

    margin-top: 40px;
    padding: 14px 22px;

    border: 1px solid rgba(20, 36, 58, 0.12);
    border-radius: 4px;

    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    color: var(--work-navy-dark);
    background-color: #ffffff;

    box-shadow: 0 5px 15px rgba(20, 36, 58, 0.08);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        color 220ms ease;
}

.sperling-home .work-contact__button-arrow {
    font-size: 23px;
    font-weight: 400;
    line-height: 1;

    color: var(--work-orange);

    transition: transform 220ms ease;
}

.sperling-home .work-contact__button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(20, 36, 58, 0.18);
}

.sperling-home .work-contact__button:hover .work-contact__button-arrow {
    transform: translateX(5px);
}


/* =========================================================
   TELEFON I E-MAIL
   ========================================================= */

.sperling-home .work-contact__details {
    display: flex;
    flex-direction: column;
    gap: 23px;

    margin-top: 46px;
}

.sperling-home .work-contact__detail {
    display: flex;
    align-items: center;
    gap: 17px;

    width: fit-content;

    color: var(--work-white);
}

.sperling-home .work-contact__detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    color: var(--work-orange);
    background-color: var(--work-white);
}

.sperling-home .work-contact__detail-text,
.sperling-home .work-contact__detail-content strong {
    display: block;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.2px;

    color: var(--work-white);
}

.sperling-home .work-contact__detail-group {
    display: flex;
    flex-direction: column;
    width: fit-content;

	transition: transform 200ms ease;
}
.sperling-home .work-contact__detail-note {
    display: block;
    margin-top: -8px;
    margin-left: 65px; /* 48px ikona + 17px gap */
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}
.sperling-home .work-contact__detail-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .sperling-home .work-contact__detail-note a:hover {
        color: var(--work-white);
        text-decoration-thickness: 2px;
    }
}
.sperling-home .work-contact__detail-note a:focus-visible {
    outline: 2px solid var(--work-white);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {

    .sperling-home .work-contact__detail-group:hover {
        transform: translateX(5px);
    }

}


/* =========================================================
   MNIEJSZE DESKTOPY
   ========================================================= */

@media (max-width: 1450px) {

    .sperling-home .work-process {
        width: 73%;

        padding:
            85px
            130px
            85px
            80px;
    }

    .sperling-home .work-contact {
        width: 34%;
    }

    .sperling-home .work-contact__content {
        padding:
            65px
            45px
            65px
            105px;
    }

    .sperling-home .work-contact__description {
        font-size: 16px;
    }

    .sperling-home .work-contact__detail-text,
.sperling-home .work-contact__detail-content strong {
        font-size: 19px;
    }

}


/* =========================================================
   LAPTOPY
   ========================================================= */

@media (max-width: 1200px) {

    .sperling-home .work-contact-section,
.sperling-home .work-contact-section__inner,
.sperling-home .work-process {
        min-height: 720px;
    }

    .sperling-home .work-process {
        width: 70%;

        padding:
            75px
            105px
            75px
            55px;
    }

    .sperling-home .work-process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sperling-home .work-step {
        min-height: 170px;
        padding-left: 0;
    }

    .sperling-home .work-step:nth-child(2) {
        border-right: 0;
        padding-left: 22px;
    }

    .sperling-home .work-step:nth-child(3),
.sperling-home .work-step:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .sperling-home .work-step:nth-child(3) {
        padding-left: 0;
    }

    .sperling-home .work-step:nth-child(4) {
        padding-left: 22px;
    }

    .sperling-home .work-contact {
        width: 37%;

        clip-path: polygon(
            18% 0,
            100% 0,
            100% 100%,
            18% 100%,
            0 66%
        );
    }

    .sperling-home .work-contact__content {
        padding:
            60px
            35px
            60px
            90px;
    }

    .sperling-home .work-contact__title {
        font-size: 43px;
    }

    .sperling-home .work-contact__description {
        font-size: 15px;
    }

    .sperling-home .work-contact__detail-text,
.sperling-home .work-contact__detail-content strong {
        font-size: 17px;
    }

}


/* =========================================================
   TABLETY - UKŁAD PIONOWY
   ========================================================= */

@media (max-width: 900px) {

    .sperling-home .work-contact-section {
        min-height: auto;
        overflow: hidden;
    }

    .sperling-home .work-contact-section__inner {
        min-height: auto;
    }

    .sperling-home .work-process {
        width: 100%;
        min-height: auto;

        padding: 75px 32px 90px;
    }

    .sperling-home .work-process__content {
        max-width: none;
    }

    .sperling-home .work-contact {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;

        width: 100%;
        min-height: 570px;

        clip-path: polygon(
            0 12%,
            100% 0,
            100% 100%,
            0 100%
        );
    }

    .sperling-home .work-contact__content {
        max-width: 620px;

        margin: 0 auto;

        padding:
            120px
            32px
            75px;
    }

    .sperling-home .work-contact__button {
        max-width: 340px;
    }

}


/* =========================================================
   TELEFONY
   ========================================================= */

@media (max-width: 600px) {

    .sperling-home .work-process {
        padding: 65px 22px 75px;
    }

    .sperling-home .work-process__title {
        font-size: 34px;
    }

    .sperling-home .work-process__description {
        font-size: 14px;
    }

    .sperling-home .work-process__steps {
        grid-template-columns: 1fr;
    }

    .sperling-home .work-step,
.sperling-home .work-step:not(:first-child),
.sperling-home .work-step:nth-child(2),
.sperling-home .work-step:nth-child(3),
.sperling-home .work-step:nth-child(4) {
        min-height: auto;

        padding:
            27px
            0
            27px;

        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .sperling-home .work-step:last-child {
        border-bottom: 0;
    }

    .sperling-home .work-step__number {
        margin-bottom: 14px;
    }

    .sperling-home .work-step__description {
        max-width: 320px;
    }

    .sperling-home .work-contact {
        min-height: 540px;

        clip-path: polygon(
            0 8%,
            100% 0,
            100% 100%,
            0 100%
        );
    }

    .sperling-home .work-contact__content {
        padding:
            95px
            22px
            65px;
    }

    .sperling-home .work-contact__title {
        font-size: 40px;
    }

    .sperling-home .work-contact__description {
        font-size: 16px;
    }

    .sperling-home .work-contact__button {
        max-width: none;
    }

    .sperling-home .work-contact__detail-text,
.sperling-home .work-contact__detail-content strong {
        font-size: 18px;
    }

    .sperling-home .work-contact__detail-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

}
/* =========================================================
   SEKCJA - TRZY PERSPEKTYWY
   ========================================================= */

.sperling-home .perspectives-section {
    --perspectives-navy: #1c3042;
    --perspectives-blue: #34495a;
    --perspectives-orange: #ff5722;
    --perspectives-text: #243649;
    --perspectives-muted: #7a8490;
    --perspectives-border: #e0e4e8;

    position: relative;
    z-index: 2;

    width: 100%;

    padding:
        clamp(80px, 8vw, 130px)
        0
        clamp(85px, 8vw, 135px);

    background-color: #ffffff;
}

.sperling-home .perspectives-section__container {
    width: min(calc(100% - 60px), 1170px);
    margin: 0 auto;
}


/* =========================================================
   NAGŁÓWEK
   ========================================================= */

.sperling-home .perspectives-section__header {
    margin-bottom: 45px;
}

.sperling-home .perspectives-section__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 8px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: var(--perspectives-orange);
}

.sperling-home .perspectives-section__eyebrow::before {
    content: "";

    display: block;
    flex: 0 0 28px;

    width: 28px;
    height: 1px;

    background-color: var(--perspectives-orange);
}

.sperling-home .perspectives-section__title {
    margin: 0;

    font-size: clamp(38px, 3.4vw, 57px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;

    color: var(--perspectives-text);
}


/* =========================================================
   GŁÓWNA TABELA
   ========================================================= */

.sperling-home .perspectives-grid {
    border-top: 1px solid var(--perspectives-border);
    border-right: 1px solid var(--perspectives-border);
    border-bottom: 1px solid var(--perspectives-border);
}

.sperling-home .perspective-row {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(210px, 25%)
        minmax(0, 44%)
        minmax(0, 31%);

    min-height: 210px;

    border-bottom: 1px solid var(--perspectives-border);
}

.sperling-home .perspective-row:last-child {
    border-bottom: 0;
}


/* =========================================================
   KOLOROWY PANEL PO LEWEJ
   ========================================================= */

.sperling-home .perspective-row__label {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        38px
        58px
        38px
        45px;

    color: #ffffff;

    /*
     * Jedna ukośna krawędź na całej wysokości panelu.
     */
    clip-path: polygon(
        0 0,
        100% 0,
        82% 100%,
        0 100%
    );
}

.sperling-home .perspective-row--tax .perspective-row__label {
    background-color: var(--perspectives-navy);
}

.sperling-home .perspective-row--law .perspective-row__label {
    background-color: var(--perspectives-orange);
}

.sperling-home .perspective-row--finance .perspective-row__label {
    background-color: var(--perspectives-blue);
}

.sperling-home .perspective-row__number {
    display: block;

    margin-bottom: 19px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.68);
}

.sperling-home .perspective-row__label h3 {
    margin: 0;

    font-size: clamp(27px, 2.2vw, 38px);
    font-weight: 400;
    line-height: 1.1;

    color: #ffffff;
}


/* =========================================================
   ŚRODKOWA KOLUMNA
   ========================================================= */

.sperling-home .perspective-row__description {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding:
        35px
        clamp(30px, 4vw, 55px);

    border-right: 1px solid #edf0f2;
}

.sperling-home .perspective-row__description h3 {
    margin: 0 0 18px;

    font-size: clamp(20px, 1.7vw, 27px);
    font-weight: 500;
    line-height: 1.25;

    color: var(--perspectives-text);
}

.sperling-home .perspective-row__description p {
    max-width: 480px;

    margin: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;

    color: var(--perspectives-muted);
}


/* =========================================================
   PRAWA KOLUMNA
   ========================================================= */

.sperling-home .perspective-row__services {
    display: flex;
    align-items: center;

    min-width: 0;

    padding:
        35px
        clamp(25px, 3.5vw, 45px);
}

.sperling-home .perspective-row__services ul {
    display: flex;
    flex-direction: column;
    gap: 14px;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.sperling-home .perspective-row__services li {
    position: relative;

    padding-left: 19px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;

    color: #465361;
}

.sperling-home .perspective-row__services li::before {
    content: "";

    position: absolute;

    top: 0.55em;
    left: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background-color: var(--perspectives-orange);
}


/* =========================================================
   DELIKATNY HOVER
   ========================================================= */

.sperling-home .perspective-row {
    transition:
        box-shadow 250ms ease,
        transform 250ms ease,
        background-color 250ms ease;
}

.sperling-home .perspective-row__label {
    transition: filter 250ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .sperling-home .perspective-row:hover {
        z-index: 3;

        background-color: #fcfcfc;

        box-shadow:
            0 14px 35px rgba(28, 48, 66, 0.08);

        transform: translateX(5px);
    }

    .sperling-home .perspective-row:hover .perspective-row__label {
        filter: brightness(1.05);
    }

}


/* =========================================================
   MNIEJSZE DESKTOPY
   ========================================================= */

@media (max-width: 1200px) {

    .sperling-home .perspectives-section__container {
        width: min(calc(100% - 50px), 1170px);
    }

    .sperling-home .perspective-row {
        grid-template-columns:
            minmax(190px, 24%)
            minmax(0, 43%)
            minmax(0, 33%);
    }

    .sperling-home .perspective-row__label {
        padding:
            35px
            45px
            35px
            35px;
    }

    .sperling-home .perspective-row__description {
        padding: 32px 35px;
    }

    .sperling-home .perspective-row__services {
        padding: 32px 28px;
    }

}


/* =========================================================
   TABLETY
   ========================================================= */

@media (max-width: 900px) {

    .sperling-home .perspectives-section {
        padding: 75px 0 85px;
    }

    .sperling-home .perspectives-section__container {
        width: min(calc(100% - 36px), 1170px);
    }

    .sperling-home .perspective-row {
        grid-template-columns:
            minmax(170px, 31%)
            minmax(0, 69%);
    }

    .sperling-home .perspective-row__services {
        grid-column: 2;

        padding:
            0
            30px
            32px;

        border-top: 0;
    }

    .sperling-home .perspective-row__description {
        border-right: 0;
    }

    .sperling-home .perspective-row__services ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
    }

    .sperling-home .perspective-row__label {
        grid-row: 1 / 3;
    }

}


/* =========================================================
   TELEFONY
   ========================================================= */

@media (max-width: 600px) {

    .sperling-home .perspectives-section {
        padding: 65px 0 75px;
    }

    .sperling-home .perspectives-section__container {
        width: min(calc(100% - 28px), 1170px);
    }

    .sperling-home .perspectives-section__header {
        margin-bottom: 35px;
    }

    .sperling-home .perspectives-section__title {
        font-size: 35px;
    }

    .sperling-home .perspective-row {
        display: block;
        min-height: 0;
    }

    .sperling-home .perspective-row__label {
        min-height: 145px;

        padding:
            30px
            70px
            30px
            28px;

        clip-path: polygon(
            0 0,
            100% 0,
            91% 100%,
            0 100%
        );
    }

    .sperling-home .perspective-row__description {
        padding: 30px 24px 20px;

        border-right: 0;
    }

    .sperling-home .perspective-row__description h3 {
        font-size: 22px;
    }

    .sperling-home .perspective-row__description p {
        font-size: 13px;
    }

    .sperling-home .perspective-row__services {
        padding: 5px 24px 32px;
    }

    .sperling-home .perspective-row__services ul {
        display: flex;
        gap: 12px;
    }

    .sperling-home .perspective-row__services li {
        font-size: 12px;
    }

    @media (hover: hover) and (pointer: fine) {

        .sperling-home .perspective-row:hover {
            transform: none;
        }
    
}

}

/* WordPress integration safeguards */
.sperling-home {
    width: 100%;
    min-width: 0;
    overflow: clip;
}

.sperling-home .sperling-home__seo-content {
    padding: clamp(56px, 7vw, 100px) clamp(24px, 8vw, 120px);
    background: #ffffff;
}

.sperling-home .sperling-home__seo-content-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.sperling-home .sperling-home__seo-content :where(h2, h3, h4) {
    color: #1e293b;
}

.sperling-home .sperling-home__seo-content :where(p, li) {
    color: #4b5563;
    line-height: 1.7;
}

.sperling-home .why-section__intro > :first-child,
.sperling-home .recommendation-panel__quote > :first-child {
    margin-top: 0;
}

.sperling-home .why-section__intro > :last-child,
.sperling-home .recommendation-panel__quote > :last-child {
    margin-bottom: 0;
}

.sperling-home .trusted-carousel__arrow:disabled,
.sperling-home .team-carousel__button:disabled {
    opacity: 0.35;
    cursor: default;
}


/* =========================================================
   HERO - DUŻE EKRANY / KOMPAKTOWY UKŁAD KART
   ========================================================= */

@media (min-width: 1051px) {

    .sperling-home .hero-section {
        /*
         * Hero nadal rośnie na szerokich monitorach, ale wolniej niż wcześniej.
         * Dzięki temu karty są większe, a pionowe przerwy między nimi mniejsze.
         */
        --hero-height: clamp(760px, 50vw, 1040px);
    }

    .sperling-home .hero-text {
        justify-content: flex-start;
        padding-top: clamp(115px, 7vw, 150px);
        padding-bottom: clamp(70px, 5vw, 100px);
    }

    /* Większe i czytelniejsze plakietki na zdjęciach. */
    .sperling-home .hero-team .member-name {
        font-size: clamp(13px, 0.85vw, 17px);
        line-height: 1.25;
    }

    .sperling-home .hero-team .member-role {
        font-size: clamp(10px, 0.62vw, 12px);
        line-height: 1.35;
    }

    /* Główna karta - wyraźnie większa od pozostałych. */
    .sperling-home .hero-team .member-1 {
        top: calc(clamp(112px, 6.2vw, 135px) + clamp(52px, 3.5vw, 72px));
        left: 3%;
        width: min(37.5%, 450px);
    }

    .sperling-home .hero-team .member-1 .member-info {
        width: 82%;
        min-height: 23%;
        padding: clamp(16px, 1.15vw, 21px) clamp(18px, 1.35vw, 24px);
    }

    .sperling-home .hero-team .member-1 .member-name {
        font-size: clamp(14px, 0.95vw, 19px);
    }

    .sperling-home .hero-team .member-1 .member-role {
        font-size: clamp(10.5px, 0.68vw, 13px);
    }

    /* Górny środkowy członek zespołu pozostaje pod strefą menu. */
    .sperling-home .hero-team .member-2 {
        top: clamp(112px, 6.2vw, 135px);
        left: 41.5%;
        width: min(29.5%, 360px);
    }

    .sperling-home .hero-team .member-3 {
        top: calc(clamp(112px, 6.2vw, 135px) + clamp(52px, 3.5vw, 72px));
        right: 1.5%;
        width: min(27.5%, 340px);
    }

    /* Dolny rząd podciągnięty wyżej - bez dużych pustych przestrzeni. */
    .sperling-home .hero-team .member-4 {
        top: auto;
        bottom: clamp(28px, 2vw, 42px);
        left: 39%;
        width: min(29.5%, 370px);
    }

    .sperling-home .hero-team .member-5 {
        top: auto;
        bottom: clamp(28px, 2vw, 42px);
        right: 1.5%;
        width: min(27.5%, 340px);
    }

}

/* =========================================================
   HERO V3 - STABILNY UKŁAD BEZ NACHODZENIA KART
   ========================================================= */

/*
 * Na poprzedniej wersji wszystkie karty były pozycjonowane absolutnie.
 * Przy części szerokości ich wysokość rosła szybciej niż odległości między
 * punktami top/bottom, przez co mogły na siebie nachodzić. Poniżej karty
 * korzystają z siatki - odstępy są rzeczywiste, a nie wyliczane „na oko”.
 */

.sperling-home .hero-team .team-member,
.sperling-home .hero-team .team-member:hover,
.sperling-home .hero-team .team-member:focus-within,
.sperling-home .hero-team .team-member-photo,
.sperling-home .hero-team .team-member:hover .team-member-photo,
.sperling-home .hero-team .team-member:focus-within .team-member-photo {
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.sperling-home .hero-team .team-member:hover,
.sperling-home .hero-team .team-member:focus-within {
    transform: skewX(-4deg) !important;
}

.sperling-home .hero-team .team-member-photo,
.sperling-home .hero-team .team-member:hover .team-member-photo,
.sperling-home .hero-team .team-member:focus-within .team-member-photo {
    transform: translateX(-50%) skewX(4deg) scale(1.05) !important;
}

/* Desktop i laptopy - układ 3 kolumny / 2 rzędy. */
@media (min-width: 1051px) {

    .sperling-home .hero-section {
        --hero-height: clamp(720px, 48vw, 1080px);
    }

    .sperling-home .hero-text {
        justify-content: center;
        padding-top: clamp(105px, 6.5vw, 140px);
        padding-bottom: clamp(64px, 4.5vw, 95px);
    }

    .sperling-home .hero-team {
        display: grid;
        grid-template-columns:
            minmax(0, 1.48fr)
            minmax(0, 1fr)
            minmax(0, 0.95fr);
        grid-template-rows: repeat(2, minmax(0, auto));
        align-content: center;
        align-items: center;
        justify-items: center;
        gap:
            clamp(10px, 1vw, 22px)
            clamp(10px, 0.9vw, 20px);

        min-height: var(--hero-height);
        padding:
            clamp(105px, 6.5vw, 140px)
            clamp(12px, 1.2vw, 26px)
            clamp(24px, 2vw, 42px);
    }

    .sperling-home .hero-team .team-member {
        position: relative;
        inset: auto;

        width: 100%;
        max-width: none;
        margin: 0;

        align-self: center;
        justify-self: center;
    }

    .sperling-home .hero-team .member-1 {
        grid-column: 1;
        grid-row: 1 / 3;

        width: 100%;
        max-width: 460px;
        align-self: center;
    }

    .sperling-home .hero-team .member-2 {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        max-width: 330px;
        align-self: end;
    }

    .sperling-home .hero-team .member-3 {
        grid-column: 3;
        grid-row: 1;

        width: 100%;
        max-width: 315px;
        align-self: end;
    }

    .sperling-home .hero-team .member-4 {
        grid-column: 2;
        grid-row: 2;

        width: 100%;
        max-width: 330px;
        align-self: start;
    }

    .sperling-home .hero-team .member-5 {
        grid-column: 3;
        grid-row: 2;

        width: 100%;
        max-width: 315px;
        align-self: start;
    }

    .sperling-home .hero-team .member-info {
        width: 76%;
        min-height: 22%;
        padding:
            clamp(11px, 0.8vw, 17px)
            clamp(13px, 1vw, 20px);
    }

    .sperling-home .hero-team .member-name {
        margin-bottom: clamp(5px, 0.38vw, 8px) !important;
        font-size: clamp(12px, 0.75vw, 16px);
        line-height: 1.25;
    }

    .sperling-home .hero-team .member-role {
        font-size: clamp(9px, 0.56vw, 12px);
        line-height: 1.35;
    }

    .sperling-home .hero-team .member-1 .member-info {
        width: 80%;
        min-height: 23%;
        padding:
            clamp(14px, 1vw, 20px)
            clamp(16px, 1.2vw, 24px);
    }

    .sperling-home .hero-team .member-1 .member-name {
        font-size: clamp(14px, 0.9vw, 19px);
    }

    .sperling-home .hero-team .member-1 .member-role {
        font-size: clamp(10px, 0.64vw, 13px);
    }
}

/*
 * Gdy prawa część hero ma mniej miejsca, zwężamy szczeliny i wysokość,
 * ale nadal utrzymujemy dokładnie tę samą siatkę bez nakładania kart.
 */
@media (min-width: 1051px) and (max-width: 1280px) {

    .sperling-home .hero-section {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%);
        --hero-height: clamp(680px, 58vw, 760px);
    }

    .sperling-home .hero-team {
        gap: 9px;
        padding: 96px 10px 24px;
    }

    .sperling-home .hero-team .member-info {
        width: 80%;
        padding: 9px 11px;
    }

    .sperling-home .hero-team .member-name {
        margin-bottom: 4px !important;
        font-size: clamp(10px, 0.95vw, 13px);
    }

    .sperling-home .hero-team .member-role {
        font-size: clamp(7.5px, 0.72vw, 10px);
    }

    .sperling-home .hero-team .member-1 .member-name {
        font-size: clamp(11px, 1.05vw, 14px);
    }

    .sperling-home .hero-team .member-1 .member-role {
        font-size: clamp(8px, 0.8vw, 10.5px);
    }
}

/* Tablet - prawa część jest już pod tekstem, więc układ może być większy i zwarty. */
@media (min-width: 651px) and (max-width: 1050px) {

    .sperling-home .hero-section {
        --hero-height: clamp(570px, 72vw, 700px);
    }

    .sperling-home .hero-team {
        display: grid;
        grid-template-columns:
            minmax(0, 1.48fr)
            minmax(0, 1fr)
            minmax(0, 0.95fr);
        grid-template-rows: repeat(2, minmax(0, auto));
        align-content: center;
        align-items: center;
        justify-items: center;
        gap: clamp(8px, 1.5vw, 15px);

        min-height: var(--hero-height);
        padding: clamp(28px, 5vw, 48px) clamp(12px, 2.5vw, 24px);
    }

    .sperling-home .hero-team .team-member {
        position: relative;
        inset: auto;
        width: 100%;
        margin: 0;
    }

    .sperling-home .hero-team .member-1 {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 100%;
        max-width: 360px;
        align-self: center;
    }

    .sperling-home .hero-team .member-2 {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: 250px;
        align-self: end;
    }

    .sperling-home .hero-team .member-3 {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        max-width: 238px;
        align-self: end;
    }

    .sperling-home .hero-team .member-4 {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        max-width: 250px;
        align-self: start;
    }

    .sperling-home .hero-team .member-5 {
        grid-column: 3;
        grid-row: 2;
        width: 100%;
        max-width: 238px;
        align-self: start;
    }
}

/* Telefony - dwie kolumny, brak absolutnego pozycjonowania i pustych przestrzeni. */
@media (max-width: 650px) {

    .sperling-home .hero-section {
        --hero-height: auto;
    }

    .sperling-home .hero-team {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-rows: repeat(3, auto);
        align-items: center;
        gap: 10px;

        min-height: 0;
        padding: 30px 12px;
    }

    .sperling-home .hero-team .team-member {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .sperling-home .hero-team .member-1 {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 100%;
        align-self: center;
    }

    .sperling-home .hero-team .member-2 {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
    }

    .sperling-home .hero-team .member-3 {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    .sperling-home .hero-team .member-4 {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
    }

    .sperling-home .hero-team .member-5 {
        grid-column: 2;
        grid-row: 3;
        width: 100%;
    }

    .sperling-home .hero-team .member-info {
        width: 84%;
        min-height: 24%;
    }
}

/* Korekta marginesu na skośne krawędzie kart - wizualnie zwarto, ale bez stykania. */
@media (min-width: 1051px) {
    .sperling-home .hero-team {
        column-gap: clamp(24px, 1.55vw, 34px);
        row-gap: clamp(10px, 0.9vw, 20px);
    }
}

@media (min-width: 1051px) and (max-width: 1280px) {
    .sperling-home .hero-team {
        column-gap: 22px;
        row-gap: 10px;
    }
}

@media (min-width: 651px) and (max-width: 1050px) {
    .sperling-home .hero-team {
        column-gap: clamp(22px, 3vw, 28px);
        row-gap: clamp(9px, 1.4vw, 14px);
    }
}

@media (max-width: 650px) {
    .sperling-home .hero-team {
        column-gap: 20px;
        row-gap: 10px;
    }
}

@media (max-width: 650px) {
    .sperling-home .hero-team {
        column-gap: clamp(20px, 5vw, 34px);
    }
}
