﻿.hero-section {
    overflow: hidden;
    position: relative; 
    padding-top: 130px;
    padding-bottom: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center; /* Wyśrodkowanie zawartości w poziomie */
    background-image: -webkit-gradient(linear, left top, right top, from(#57B38A), to(#113939));
    background-image: -o-linear-gradient(left, #57B38A 0%, #113939 100%);
    background-image: linear-gradient(90deg, #57B38A 0%, #113939 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-mobile-image {
    width: 100%;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}
.image-with-text {
    position: relative;
    width: 100%;
    max-width: 631px;
    aspect-ratio: 1024/800;
    height: auto;
    border-radius: 60px 24px 60px 24px;
    margin-left: auto;
    margin-right: 85px;
    overflow: hidden;
    background: none;
}
.image-with-text picture,
.image-with-text img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}
.text-container {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start; /* Teksty od lewej */
    gap: 10px;
}
.text-box {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 2.5rem;
    white-space: nowrap;
}
.hero-left {
    width: 100%;
    margin-right: auto;
    padding: 0;
    background: none;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
.hero-right {
    position: relative;
    padding: 0px 20px;
}
strong {
    font-weight: 800;
    color: var(--primary-color);
}
.hero-right .row {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}
.dotlottie-animation {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}
#o-nas .col-md-4,
#o-nas .col-md-8 {
    padding-left: 10px;
    padding-right: 10px;
}
.col-md-4.d-flex.justify-content-center,
.col-md-8.d-flex.justify-content-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
#o-nas h2,
#o-nas p {
    margin-left: auto;
    margin-right: auto;
}
#o-nas .container-md {
    max-width: 1000px;
}
#o-nas.about-split {
    position: relative;
    overflow: visible;
    padding: 60px 0;
    background-color: #113939;
    --portrait-offset-bottom: 0px;
    --about-offset-top: 10%;
    margin-top: var(--about-offset-top);
}

#o-nas.about-split .about-left {
    min-height: 340px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center; /* blok tekstu idealnie na środku kolumny */
    padding: 0 clamp(18px, 4vw, 48px);
}

#o-nas.about-split .about-copy {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto; /* blok wyśrodkowany w kolumnie, tekst nadal lewo */
    text-align: left;
}

#o-nas.about-split .about-copy h2 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-weight: 800;
}

#o-nas.about-split .about-copy p {
    margin: 0;
    color: #e7f5ef;
    line-height: 1.65;
    font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.1rem);
}

#o-nas.about-split strong { color: #fff; font-weight: 800; }

#o-nas.about-split .about-right {
    position: relative;
    min-height: 380px;
    background-color: #28a745;
    overflow: visible;
}

#o-nas.about-split .about-portrait-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    -webkit-transform: translate(-50%, var(--portrait-offset-bottom));
        -ms-transform: translate(-50%, var(--portrait-offset-bottom));
            transform: translate(-50%, var(--portrait-offset-bottom));
    z-index: 2;
}

#o-nas.about-split .about-portrait {
    display: block;
    height: auto;
    width: min(48vw, 520px);
    max-width: 100%;
    -webkit-filter: drop-shadow(0 14px 36px rgba(0,0,0,0.35));
            filter: drop-shadow(0 14px 36px rgba(0,0,0,0.35));
}
@media (min-width: 992px) {
    #o-nas.about-split {
        background: -webkit-gradient(linear, left top, right top, from(#1e7c37), color-stop(50%, #1e7c37), color-stop(50%, #28a745), to(#28a745));
        background: -o-linear-gradient(left, #1e7c37 0%, #1e7c37 50%, #28a745 50%, #28a745 100%);
        background: linear-gradient(90deg, #1e7c37 0%, #1e7c37 50%, #28a745 50%, #28a745 100%);
        padding: 0 0;
    }
    #o-nas.about-split .about-copy { max-width: 600px; }
    #o-nas.about-split .about-portrait {
        width: min(32vw, 600px);
    }
    #o-nas.about-split .about-portrait-wrap { bottom: 0; left: 50%; -webkit-transform: translate(-50%, var(--portrait-offset-bottom)); -ms-transform: translate(-50%, var(--portrait-offset-bottom)); transform: translate(-50%, var(--portrait-offset-bottom)); }
}
@media (max-width: 991.98px) {
    #o-nas.about-split {
        background: #113939;
        padding-top: 0;
        margin-top: var(--about-offset-top-mobile, 50%);
    }
    #o-nas.about-split .about-right {
        position: relative;
        background-color: #28a745;
        min-height: var(--about-right-mobile-height, 72vw);
        padding: 0;
        margin-bottom: var(--portrait-offset-bottom);
    }
    #o-nas.about-split .about-portrait-wrap {
        position: absolute;
        left: 50%;
        bottom: 0;
        -webkit-transform: translate(-50%, 0);
            -ms-transform: translate(-50%, 0);
                transform: translate(-50%, 0);
        margin: 0;
        width: 100%;
        max-width: none;
    }
    #o-nas.about-split .about-portrait {
        width: 100%;
        height: auto;
        display: block;
    }
    #o-nas.about-split .about-left {
        padding-top: 24px;
        padding-bottom: 32px;
    }
}
#benefits,
section.benefits-section {
    background-color: var(--benefits-bg);
    color: var(--benefits-text);
}

    #benefits .benefit-item,
    .benefits-section .benefit-item,
    #benefits .benefit-item span,
    .benefits-section .benefit-item span {
        color: inherit;
    }

    #benefits a,
    .benefits-section a {
        color: inherit;
    }

.benefits {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

@media (min-width: 768px) {
    .benefits {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        gap: 40px;
    }
}

.benefit-item {
    position: relative;
    padding-left: 40px;
    color: var(--text-color);
    font-size: 20px;
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -8px;
    width: 45px;
    height: 45px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.55879 3.6972C10.7552 2.02216 13.2447 2.02216 14.4412 3.6972L14.6317 3.96387C14.8422 4.25867 15.1958 4.41652 15.5558 4.37652L16.4048 4.28218C18.3156 4.06988 19.9301 5.68439 19.7178 7.59513L19.6235 8.44415C19.5835 8.8042 19.7413 9.15774 20.0361 9.36831L20.3028 9.55879C21.9778 10.7552 21.9778 13.2447 20.3028 14.4412L20.0361 14.6317C19.7413 14.8422 19.5835 15.1958 19.6235 15.5558L19.7178 16.4048C19.9301 18.3156 18.3156 19.9301 16.4048 19.7178L15.5558 19.6235C15.1958 19.5835 14.8422 19.7413 14.6317 20.0361L14.4412 20.3028C13.2447 21.9778 10.7553 21.9778 9.55879 20.3028L9.36831 20.0361C9.15774 19.7413 8.8042 19.5835 8.44414 19.6235L7.59513 19.7178C5.68439 19.9301 4.06988 18.3156 4.28218 16.4048L4.37652 15.5558C4.41652 15.1958 4.25867 14.8422 3.96387 14.6317L3.6972 14.4412C2.02216 13.2447 2.02216 10.7553 3.6972 9.55879L3.96387 9.36831C4.25867 9.15774 4.41652 8.8042 4.37652 8.44414L4.28218 7.59513C4.06988 5.68439 5.68439 4.06988 7.59513 4.28218L8.44415 4.37652C8.8042 4.41652 9.15774 4.25867 9.36831 3.96387L9.55879 3.6972ZM15.7071 9.29289C16.0976 9.68342 16.0976 10.3166 15.7071 10.7071L11.8882 14.526C11.3977 15.0166 10.6023 15.0166 10.1118 14.526L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929C8.68342 10.9024 9.31658 10.9024 9.70711 11.2929L11 12.5858L14.2929 9.29289C14.6834 8.90237 15.3166 8.90237 15.7071 9.29289Z" fill="%2328a745"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.why-finoo-section {
    background: var(--opinions-bg, #19262a);
    color: var(--text-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.why-finoo-list {
    max-width: 1100px;
    margin: 0 auto;
}

.why-finoo-box {
    background: transparent;
    border-radius: 18px;
    padding: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
    min-height: 120px;
    width: 100%;
    gap: 18px;
}

.why-finoo-animation {
    width: 90px;
    height: 90px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-top: 0.2em;
}

.why-finoo-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-color);
}

.why-finoo-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .why-finoo-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .why-finoo-title {
        font-size: 1.1rem;
    }
    .why-finoo-animation {
        width: 70px;
        height: 70px;
    }
    .why-finoo-list {
        max-width: 98vw;
    }
}

@media (max-width: 767.98px) {
    .why-finoo-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .why-finoo-title {
        font-size: 1rem;
    }
    .why-finoo-animation {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }
    .why-finoo-box {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column !important;
                flex-direction: column !important;
        -webkit-box-align: center !important;
            -ms-flex-align: center !important;
                align-items: center !important;
        text-align: center;
        gap: 8px;
    }
    .why-finoo-list {
        padding: 0 0.5rem;
    }
    .why-finoo-desc {
        font-size: 0.95rem;
    }
    .why-finoo-row > .col-12,
    .why-finoo-row > .col-12.col-lg-6 {
        margin-bottom: 1rem;
    }
    .why-finoo-box .why-finoo-animation {
        margin-right: 0 !important;
    }
}
#how-it-works h3,
#how-it-works p {
    border: none;
    text-decoration: none;
    color: var(--text-color);
}

#how-it-works .text-center {
    margin-bottom: 20px;
}

#how-it-works .how-it-works-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: block;
}

.step-number {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0 auto 15px;
}

.step-number::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 0;
}

.step-number span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    #how-it-works .how-it-works-animation {
        width: 170px;
        height: 170px;
    }
    #how-it-works .owl-carousel {
        margin-bottom: 0;
    }
    #how-it-works dotlottie-player {
        margin-bottom: 5px;
    }
}

@media (min-width: 1200px) {
    #how-it-works .how-it-works-animation {
        width: 200px;
        height: 200px;
    }
}

.owl-carousel {
    position: relative;
}

.owl-nav {
    display: block !important;
    position: absolute;
    top: 50%;
    width: 100%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    pointer-events: none;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    font-size: 1.5rem !important;
    color: var(--text-color) !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
        -ms-transform: translateY(-50%) !important;
            transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
}

.owl-nav .owl-prev {
    left: 10px;
}

.owl-nav .owl-next {
    right: 10px;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover,
.owl-nav .owl-prev:active,
.owl-nav .owl-next:active {
    -webkit-transform: translateY(-50%) scale(1.2);
        -ms-transform: translateY(-50%) scale(1.2);
            transform: translateY(-50%) scale(1.2);
    color: var(--primary-color) !important;
}

.owl-nav .owl-prev.disabled,
.owl-nav .owl-next.disabled {
    -webkit-transform: translateY(-50%) scale(1.2);
        -ms-transform: translateY(-50%) scale(1.2);
            transform: translateY(-50%) scale(1.2);
    color: var(--red-color) !important;
    pointer-events: none;
    opacity: 0.5;
}
.floating-btn {
    position: fixed;
    bottom: 0;
    left: 50%;
    -webkit-transform: translate(-50%, 100%);
        -ms-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    z-index: 9999;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.floating-btn.visible {
    -webkit-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
}

.floating-btn .btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color: var(--btn-background-color);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    -webkit-box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
            box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-align: center;
    min-width: 220px;
    -webkit-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
}

.floating-btn .btn:hover {
    background-color: var(--btn-hover-background-color);
}

.floating-btn img {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
}
.my-video-section {
    position: relative;
    width: 100%;
    height: 100vh;         /* pełna wysokość okna */
    overflow: hidden;      /* ukrywa ewentualny nadmiar wideo */
    margin: 0;
    padding: 0;
    background: #000;
}
.my-video-section .video-overlay-content {
    position: relative;
    z-index: 2;
}
.my-video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    z-index: 1;
}
@media (max-width: 767.98px) {
    .hero-section {
        background: none;
        min-height: 400px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .image-with-text {
        width: 90%;
        aspect-ratio: 300/234;
        margin: 40px auto;
    }
    .text-container {
        width: 90%;
        bottom: 15px;
        right: 33px;
    }
    .text-box {
        font-size: 1.5rem;
    }
    .hero-right {
        padding: 0px 20px !important;
    }
    .my-video-section video {
        -webkit-transform: scale(1);
            -ms-transform: scale(1);
                transform: scale(1);
        -webkit-transform-origin: left center;
            -ms-transform-origin: left center;
                transform-origin: left center;
        -o-object-position: 4% center;
           object-position: 4% center;
    }
}
@media (max-width: 430px) {
    .image-with-text {
        height: 260px;
    }
    .text-container {
        width: 100%;
        right: -16px;
        bottom: 16px;
    }
    .text-box {
        font-size: 1rem;
    }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .image-with-text {
        max-width: 631px;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 768/600;
    }
    .text-box {
        font-size: 2rem;
    }
}
@media (min-width: 1024px) and (max-width: 1366.98px) {
    .image-with-text {
        max-width: 631px;
        aspect-ratio: 1024/800;
        margin-left: auto;
        margin-right: -15px;
    }
    .text-box {
        font-size: 1.5rem;
    }
    .text-container {
        right: -16px;
        bottom: 16px;
    }
} 
@media (min-width: 1080px) {
    .image-with-text {
        margin-right: -2px;
    }
    .text-box {
        font-size: 1.5rem;
    }
}
@media (min-width: 1367px) {
    .dotlottie-animation {
        max-width: 250px;
    }
}
@media (min-width: 1440px) {
    .image-with-text {
        margin-right: auto;
    }
    .text-container {
        right: -20px;
    }
}

.page-content {
    overflow: hidden;
    position: relative;
    padding-top: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
#why-finoo.why-finoo-tiles {
    color: var(--text-color);
}

#why-finoo h2 {
    color: var(--text-color);
}

#why-finoo .why-card {
    background: transparent;
    border-radius: 28px;
    padding: 8px 6px 0;
}

#why-finoo .why-avatar {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1/1;
    border-radius: 28px;
    overflow: hidden;
}

#why-finoo .why-avatar img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

#why-finoo .why-chip {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 60px 25px 60px 20px;
}

#why-finoo .why-desc {
    max-width: 360px;
    margin: 18px auto 0;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

@media (min-width: 992px) {
    #why-finoo .why-chip { font-size: 1.35rem; }
    #why-finoo .why-avatar { max-width: 420px; border-radius: 36px; }
}

@media (max-width: 767.98px) {
    #why-finoo .row.g-5 { row-gap: 2rem !important; }
    #why-finoo .why-chip { font-size: 1.1rem; padding: 8px 14px; }
}
#how-it-works.how-steps {
    position: relative;
    overflow: hidden;
}

.how-steps-wrapper {
    position: relative;
    min-height: 420px;
    padding-bottom: 0;
    --s1-x: 0px;  --s1-y: 12px;
    --s2-x: 16px; --s2-y: 8px;
    --s3-x: 0px;  --s3-y: 28px;
}

.how-bg, .how-bg-waves { display: none !important; }

.how-arrow {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 1;
    display: block;
    background-color: var(--text-color);
    pointer-events: none;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.how-arrow-1 { top: 12%; left: 42%; -webkit-mask-image: url('/wp-content/uploads/hero/first arrow.svg'); mask-image: url('/wp-content/uploads/hero/first arrow.svg'); }
.how-arrow-2 { top: 56%; left: 40%; -webkit-mask-image: url('/wp-content/uploads/hero/second arrow.svg'); mask-image: url('/wp-content/uploads/hero/second arrow.svg'); }

.how-grid {
    position: relative;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 36px 32px;
    z-index: 2;
}

.how-step {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: auto 16px 1fr;
    grid-template-columns: auto 1fr;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    -webkit-column-gap: 16px;
       -moz-column-gap: 16px;
            column-gap: 16px;
}

.badge-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: -o-radial-gradient(50% 0%, 120% 120%, #28a745 0%, #16896a 100%);
    background: radial-gradient(120% 120% at 50% 0%, #28a745 0%, #16896a 100%);
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    -webkit-box-shadow: 0 6px 20px rgba(0,0,0,0.25);
            box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.step-title {
    margin: 0 0 6px 0;
    font-weight: 800;
    color: var(--text-color);
}

.step-desc {
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

.step-copy { max-width: 540px; }

@media (min-width: 768px) {
    .how-grid { -ms-grid-columns: 1fr; grid-template-columns: 1fr; }
    .how-steps-wrapper { min-height: 420px; }
}

@media (min-width: 992px) {
    .how-grid { 
        -ms-grid-columns: 1fr 80px 1fr; 
        grid-template-columns: 1fr 1fr; 
        -ms-grid-rows: auto 52px auto; 
        grid-template-rows: auto auto; 
        -webkit-column-gap: 80px; 
           -moz-column-gap: 80px; 
                column-gap: 80px; 
        row-gap: 52px; 
        -webkit-box-align: start; 
            -ms-flex-align: start; 
                align-items: start;
    }
    .how-grid > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }
    .how-grid > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }
    .how-grid > *:nth-child(3) {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }
    .how-grid > *:nth-child(4) {
        -ms-grid-row: 3;
        -ms-grid-column: 3;
    }
    .how-step-1 { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 1; grid-row: 1; margin: 0; -webkit-transform: translate(var(--s1-x), var(--s1-y)); -ms-transform: translate(var(--s1-x), var(--s1-y)); transform: translate(var(--s1-x), var(--s1-y)); }
    .how-step-2 { -ms-grid-column: 1; grid-column: 1; -ms-grid-row: 2; grid-row: 2; margin: 0; -webkit-transform: translate(var(--s2-x), var(--s2-y)); -ms-transform: translate(var(--s2-x), var(--s2-y)); transform: translate(var(--s2-x), var(--s2-y)); }
    .how-step-3 { -ms-grid-column: 2; grid-column: 2; -ms-grid-row: 2; grid-row: 2; margin: 0; -webkit-transform: translate(var(--s3-x), var(--s3-y)); -ms-transform: translate(var(--s3-x), var(--s3-y)); transform: translate(var(--s3-x), var(--s3-y)); }
}

@media (min-width: 1200px) {
    .how-grid { -ms-grid-columns: 1fr 1fr; grid-template-columns: 1fr 1fr; }
    .badge-num { width: 60px; height: 60px; font-size: 1.5rem; }
    .how-steps-wrapper { --s1-y: 16px; --s2-x: 142px; --s2-y: 10px; --s3-x: -2px; --s3-y: 181px; }
}

@media (min-width: 1600px) { /* pusto - fale wyłączone */ }

@media (min-width: 1440px) {
    .how-steps-wrapper { --s1-y: 20px; --s2-x: 146px; --s2-y: 12px; --s3-x: 0px; --s3-y: 185px; }
}

@media (max-width: 991.98px) {
    .how-arrow { display: none !important; }
}
.values-tiles { position: relative; }

.values-tiles h2 {
  color: var(--text-color);
  font-weight: 800;
}

.value-card {
    background: transparent;
    color: var(--card-text);
    border: none;
    border-radius: 60px 24px 60px 24px;
    padding: 28px 28px 26px;
    box-shadow: none;
    transition: none;
    position: relative;
}
    
    .value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 4px;
    border-radius: inherit;
    background: linear-gradient(180deg, #17433f, #55ae87);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
        mask-composite: exclude;
    pointer-events: none;
    }

.value-card:hover { transform: none; box-shadow: none; }

.value-avatar img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  user-select: none;
}

.values-tiles .img-light { display: none; }
.light-mode .values-tiles .img-light { display: inline-block; }
.light-mode .values-tiles .img-dark { display: none; }

.value-title {
  color: var(--text-color);
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.value-desc {
  color: var(--secondary-info-color);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .value-card { padding: 32px 32px 30px; }
}

/* Mobile tiles for "Jak to działa?" to match value-card look */
@media (max-width: 767.98px) {
    #how-it-works.how-steps {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #how-it-works .how-grid {
        gap: 18px;
    }

    #how-it-works .how-step {
        position: relative;
        background: transparent;
        border-radius: 60px 24px 60px 24px;
        padding: 22px 20px;
        box-shadow: none;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        align-items: center;
    }

    /* Gradient border like .value-card */
    #how-it-works .how-step::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 3px;
        border-radius: inherit;
        background: linear-gradient(180deg, #17433f, #55ae87);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
                        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
                        mask-composite: exclude;
        pointer-events: none;
    }

    #how-it-works .how-step .badge-num {
        width: 48px;
        height: 48px;
        margin: 0;
        flex: 0 0 auto;
    }

    #how-it-works .how-step .step-copy {
        margin: 0;
    }

    #how-it-works .how-step .step-title {
        font-size: 1.05rem;
        font-weight: 800;
    }

    #how-it-works .how-step .step-desc {
        font-size: 0.95rem;
        opacity: 0.9;
    }
}
