.ks-hero-widget {
    --ks-left-bg: #f7faf8;
    --ks-solid-until: 38%;
    --ks-fade-until: 82%;
    --ks-bg-x: 0px;
    --ks-bg-y: 0px;
    --ks-mobile-image-space: 300px;
    position: relative;
    overflow: hidden;
    background: var(--ks-left-bg);
    min-height: 680px;
    font-family: inherit;
}

.ks-hero-bg-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    transform: translate(var(--ks-bg-x), var(--ks-bg-y));
}

.ks-hero-bg-image {
    position: absolute;
    top: 50%;
    right: 0;
    width: 72%;
    max-width: none !important;
    height: auto;
    transform: translateY(-50%);
    object-fit: contain;
    display: block;
}

.ks-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--ks-left-bg) 0%,
        var(--ks-left-bg) var(--ks-solid-until),
        rgba(247, 250, 248, 0.94) calc(var(--ks-solid-until) + 10%),
        rgba(247, 250, 248, 0.72) calc(var(--ks-solid-until) + 20%),
        rgba(247, 250, 248, 0.22) calc(var(--ks-fade-until) - 12%),
        rgba(247, 250, 248, 0) var(--ks-fade-until)
    );
}

.ks-hero-inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1180px;
    min-height: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.ks-hero-content {
    width: 56%;
    max-width: 650px;
    padding: 72px 0 64px;
}

.ks-hero-eyebrow {
    margin: 0 0 16px;
    color: #3ba936;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.ks-hero-headline {
    margin: 0 0 22px;
    color: #18212b;
    font-size: clamp(42px, 5.3vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.ks-hero-headline .ks-highlight {
    color: #3ba936;
}

.ks-hero-lead {
    max-width: 570px;
    margin: 0 0 30px;
    color: #26313d;
    font-size: 19px;
    line-height: 1.65;
    font-weight: 400;
}

.ks-hero-lead p {
    margin: 0 0 1em;
}

.ks-hero-lead p:last-child {
    margin-bottom: 0;
}

.ks-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 42px;
}

.ks-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 26px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ks-hero-button-primary {
    background: #3ba936;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(59, 169, 54, 0.28);
}

.ks-hero-button-primary:hover,
.ks-hero-button-primary:focus {
    background: #31922d;
    color: #ffffff;
    transform: translateY(-1px);
}

.ks-hero-button-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: #2f892c;
    border: 1px solid rgba(59, 169, 54, 0.55);
}

.ks-hero-button-secondary:hover,
.ks-hero-button-secondary:focus {
    background: #ffffff;
    color: #2f892c;
    transform: translateY(-1px);
}

.ks-hero-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 18px;
    max-width: 720px;
}

.ks-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #18212b;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.ks-trust-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 999px;
    border: 2px solid #3ba936;
    color: #3ba936;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    margin-top: 1px;
}

.ks-trust-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.ks-trust-text p {
    margin: 0;
}

.ks-trust-circle- .ks-trust-icon,
.ks-trust-circle-no .ks-trust-icon {
    border: 0;
    border-radius: 0;
}

.ks-hero-seal {
    --ks-seal-x: 0px;
    --ks-seal-y: 0px;
    position: absolute;
    top: 74px;
    right: min(7vw, 86px);
    z-index: 4;
    transform: translate(var(--ks-seal-x), var(--ks-seal-y));
    pointer-events: none;
}

.ks-hero-seal-image {
    width: 142px;
    max-width: none !important;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

@media (max-width: 1024px) {
    .ks-hero-content {
        width: 68%;
    }

    .ks-hero-trust {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 767px) {
    .ks-hero-widget {
        min-height: 0;
        padding-bottom: var(--ks-mobile-image-space, 0px);
        background: var(--ks-left-bg);
    }

    .ks-hero-bg-image-wrap {
        inset: 0;
        transform: translate(var(--ks-bg-x), var(--ks-bg-y));
        overflow: hidden;
    }

    .ks-hero-bg-image {
        top: auto;
        right: -42%;
        bottom: 0;
        width: 165%;
        max-width: none !important;
        height: auto;
        transform: none;
        opacity: 0.62;
    }

    .ks-hero-gradient {
        background: linear-gradient(
            180deg,
            var(--ks-left-bg) 0%,
            var(--ks-left-bg) 52%,
            rgba(247, 250, 248, 0.92) 66%,
            rgba(247, 250, 248, 0.72) 80%,
            rgba(247, 250, 248, 0.55) 100%
        );
    }

    .ks-hero-inner {
        width: calc(100% - 28px);
        max-width: 100%;
        min-height: 0;
        display: block;
    }

    .ks-hero-content {
        width: 100%;
        max-width: none;
        padding: 44px 0 34px;
    }

    .ks-hero-headline {
        font-size: clamp(34px, 10.5vw, 48px);
        line-height: 1.08;
        margin-bottom: 22px;
    }

    .ks-hero-lead {
        font-size: 17px;
        line-height: 1.65;
        max-width: none;
    }

    .ks-hero-buttons {
        margin-bottom: 28px;
        gap: 12px;
    }

    .ks-hero-button {
        width: 100%;
        min-height: 56px;
    }

    .ks-hero-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        max-width: none;
        position: relative;
        z-index: 3;
    }

    .ks-trust-item {
        gap: 8px;
        font-size: 13px;
        line-height: 1.3;
        font-weight: 800;
        min-width: 0;
    }

    .ks-trust-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .ks-trust-text,
    .ks-trust-text p {
        min-width: 0;
    }

    .ks-hero-seal {
        top: auto;
        right: 18px;
        bottom: 56px;
        z-index: 4;
    }

    .ks-hero-seal-image {
        width: 86px;
    }
}
