/* ==========================================================================
   BANER — DWIE RYBY
   ========================================================================== */

.journey-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;

    width: 100%;
    max-width: 1320px;
    min-height: 430px;

    margin: 80px auto;
    padding: 55px 70px;

    background: #fff;
    border-radius: 28px;

    box-sizing: border-box;
    overflow: hidden;
}


/* ==========================================================================
   LEWA STRONA — RYBY
   ========================================================================== */

.journey-banner__fishes {
    position: relative;

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

/* Wspólne ustawienia */
.journey-banner__fish {
    position: absolute;

    display: block;
    height: auto;

    object-fit: contain;
}

/* Duża ryba */
.journey-banner__fish--large {
    top: 15px;
    left: 0;

    width: 60%;
    max-width: 430px;
}

/* Mała ryba */
.journey-banner__fish--small {
    right: 70px;
    bottom: 5px;

    width: 45%;
    max-width: 265px;
}

/* Nagłówek */
.journey-banner__title {
    margin: 0;

    font-family: 'Syne', sans-serif;
    font-size: 47px;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;

    color: #292929;
}

/* Niebieski fragment */
.journey-banner__accent {
    font-family: 'Syne', sans-serif !important;
    color: #0b69f6;
}

@media (max-width: 1199px) {

    .journey-banner {
        min-height: 380px;
        padding: 45px 36px;
    }

    .journey-banner__fishes {
        min-height: 280px;
    }

    .journey-banner__fish--large {
        width: 75%;
    }

    .journey-banner__fish--small {
        width: 46%;
    }

    .journey-banner__content {
        padding-left: 30px;
    }

    .journey-banner__title {
        font-size: clamp(38px, 4.8vw, 52px);
    }
}


@media (max-width: 767px) {

    .journey-banner {
        grid-template-columns: 1fr;

        min-height: 0;

        margin: 50px auto;
        padding: 30px 18px 40px;

        border-radius: 22px;
    }

    .journey-banner__fishes {
        width: 100%;
        max-width: 420px;
        min-height: 260px;

        margin: 0 auto 24px;
    }

    .journey-banner__fish--large {
        top: 0;
        left: 0;

        width: 72%;
    }

    .journey-banner__fish--small {
        right: 0;
        bottom: 0;

        width: 44%;
    }

    .journey-banner__content {
        padding-left: 0;
    }

    .journey-banner__title {
        font-size: clamp(34px, 10vw, 48px);
        text-align: center;
    }
}


/* ==========================================================================
   ZAUFALI NAM — PEŁNA SZEROKOŚĆ + KARUZELA LOGOTYPÓW
   ========================================================================== */

.trusted-companies {
    position: relative;
    left: 50%;

    width: 100vw;
    max-width: none;

    margin: 80px 0 80px -50vw;
    padding: 0;

    color: #fff;
    background: linear-gradient(
        180deg,
        #006cff 0%,
        #0056cb 100%
    );

    overflow: hidden;
    isolation: isolate;
}

.trusted-companies,
.trusted-companies *,
.trusted-companies *::before,
.trusted-companies *::after {
    box-sizing: border-box;
}


/* ==========================================================================
   WEWNĘTRZNY KONTENER
   ========================================================================== */

.trusted-companies__inner {
    position: relative;

    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
    padding: 72px 48px 64px;
}


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

.trusted-companies__heading {
    width: 100%;
    max-width: 680px;

    margin: 0 auto 52px;

    text-align: center;
}

.trusted-companies__title {
    margin: 0 0 18px;
    padding: 0;

    font-family: 'Syne', sans-serif;
    font-size: clamp(44px, 4.5vw, 68px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.04em;

    color: #fff !important;
}

.trusted-companies__description {
    margin: 0;
    padding: 0;

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    color: rgba(255, 255, 255, .94) !important;
}


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

.trusted-logos {
    position: relative;

    width: 100%;
    min-width: 0;
}

.trusted-logos__viewport {
    position: relative;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );

    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}


/* ==========================================================================
   TOR KARUZELI
   ========================================================================== */

.trusted-logos__track {
    display: flex;
    align-items: center;

    width: max-content;

    animation:
        trusted-logos-scroll
        var(--trusted-logos-duration, 42s)
        linear
        infinite;

    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.trusted-logos__group {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    gap: clamp(44px, 5vw, 82px);
    padding-right: clamp(44px, 5vw, 82px);
}


/* ==========================================================================
   POJEDYNCZE LOGO
   ========================================================================== */

.trusted-logos__item {
    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 220px;

    width: 220px;
    min-width: 220px;
    height: 90px;
    min-height: 90px;

    margin: 0;
    padding: 10px;

    color: #fff;
    text-decoration: none;

    background: transparent;
    border: 0;

    opacity: 1 !important;
    visibility: visible !important;
}

.trusted-logos__item img {
    display: block !important;

    width: auto !important;
    max-width: 205px !important;

    height: auto !important;
    max-height: 66px !important;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    filter: none !important;

    opacity: .96 !important;
    visibility: visible !important;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.trusted-logos__item:hover img,
.trusted-logos__item:focus-visible img {
    opacity: 1 !important;
    transform: scale(1.04);
}

.trusted-logos__item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 4px;
    border-radius: 6px;
}


/* ==========================================================================
   PAUZA PO NAJECHANIU
   ========================================================================== */

.trusted-logos:hover .trusted-logos__track,
.trusted-logos:focus-within .trusted-logos__track {
    animation-play-state: paused;
}


/* ==========================================================================
   ANIMACJA

   HTML musi zawierać dwie identyczne grupy:
   .trusted-logos__group + .trusted-logos__group
   ========================================================================== */

@keyframes trusted-logos-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1199px) {

    .trusted-companies {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .trusted-companies__inner {
        padding: 58px 30px 50px;
    }

    .trusted-companies__heading {
        max-width: 620px;
        margin-bottom: 42px;
    }

    .trusted-logos__group {
        gap: 54px;
        padding-right: 54px;
    }

    .trusted-logos__item {
        flex-basis: 190px;

        width: 190px;
        min-width: 190px;

        height: 78px;
        min-height: 78px;
    }

    .trusted-logos__item img {
        max-width: 178px !important;
        max-height: 58px !important;
    }
}


/* ==========================================================================
   TELEFON
   ========================================================================== */

@media (max-width: 767px) {

    .trusted-companies {
        margin-top: 45px;
        margin-bottom: 45px;
    }

    .trusted-companies__inner {
        padding: 44px 18px 40px;
    }

    .trusted-companies__heading {
        max-width: 440px;
        margin-bottom: 34px;
    }

    .trusted-companies__title {
        margin-bottom: 14px;

        font-size: clamp(38px, 11vw, 52px);
    }

    .trusted-companies__description {
        font-size: 14px;
        line-height: 1.5;
    }

    .trusted-logos__viewport {
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0%,
            #000 3%,
            #000 97%,
            transparent 100%
        );

        mask-image: linear-gradient(
            90deg,
            transparent 0%,
            #000 3%,
            #000 97%,
            transparent 100%
        );
    }

    .trusted-logos__track {
        animation-duration:
            var(--trusted-logos-mobile-duration, 32s);
    }

    .trusted-logos__group {
        gap: 34px;
        padding-right: 34px;
    }

    .trusted-logos__item {
        flex-basis: 150px;

        width: 150px;
        min-width: 150px;

        height: 66px;
        min-height: 66px;

        padding: 6px;
    }

    .trusted-logos__item img {
        max-width: 142px !important;
        max-height: 48px !important;
    }
}


/* ==========================================================================
   OGRANICZENIE ANIMACJI
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .trusted-logos__viewport {
        overflow-x: auto;

        -webkit-mask-image: none;
        mask-image: none;

        scrollbar-width: thin;
    }

    .trusted-logos__track {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
}