.bgs-offer-image-banner,
.bgs-offer-image-banner * {
    box-sizing: border-box;
}

.bgs-offer-image-banner {
    overflow-x: clip;
    background: var(--bgs-offer-section-bg, #fff);
    padding-block: var(--bgs-offer-section-padding, 40px);
}

.bgs-offer-image-banner__inner {
    width: min(calc(100% - 48px), var(--bgs-offer-max, 1200px));
    margin-inline: auto;
    padding-left: 40px;
}

.bgs-offer-image-banner__panel {
    position: relative;
    display: flex;
    min-height: var(--bgs-offer-height, 420px);
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    padding: 40px 80px 40px 280px;
    border-radius: var(--bgs-offer-radius, 16px);
    background: linear-gradient(
        var(--bgs-offer-gradient-angle, 90deg),
        var(--bgs-offer-gradient-start, #a59cdc) 0%,
        var(--bgs-offer-gradient-middle, #6d63a9) 60%,
        var(--bgs-offer-gradient-end, #5a4f94) 100%
    );
}

.bgs-offer-image-banner__content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--bgs-offer-content-width, 500px));
    text-align: center;
}

.bgs-offer-image-banner__title {
    margin: 0 0 20px;
    color: var(--bgs-offer-title, #fff);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.bgs-offer-image-banner__description {
    color: var(--bgs-offer-description, #fff);
    font-size: .95rem;
    line-height: 1.65;
    opacity: .9;
}

.bgs-offer-image-banner__description p {
    margin: 0 0 30px;
}

.bgs-offer-image-banner__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border-radius: var(--bgs-offer-button-radius, 50px);
    background: var(--bgs-offer-button-bg, #ffd600);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--bgs-offer-button-bg, #ffd600) 30%, transparent);
    color: var(--bgs-offer-button-text, #1a1a1a);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.bgs-offer-image-banner__button:hover {
    color: var(--bgs-offer-button-text, #1a1a1a);
    box-shadow: 0 7px 22px color-mix(in srgb, var(--bgs-offer-button-bg, #ffd600) 40%, transparent);
    transform: translateY(-2px);
}

.bgs-offer-image-banner__media {
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: var(--bgs-offer-image-left, 20px);
    display: flex;
    height: 100%;
    align-items: flex-end;
    pointer-events: none;
}

.bgs-offer-image-banner__media img {
    position: relative;
    top: var(--bgs-offer-image-offset-y, 55px);
    display: block;
    width: auto;
    max-width: min(46vw, 560px);
    height: var(--bgs-offer-image-height, 380px);
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgb(0 0 0 / .15));
}

@media (max-width: 1024px) {
    .bgs-offer-image-banner__panel {
        padding: 40px 40px 40px 220px;
    }

    .bgs-offer-image-banner__media img {
        max-width: 44vw;
        height: min(var(--bgs-offer-image-height, 380px), 340px);
    }
}

@media (max-width: 760px) {
    .bgs-offer-image-banner__inner {
        width: min(calc(100% - 32px), var(--bgs-offer-max, 1200px));
        padding-left: 0;
    }

    .bgs-offer-image-banner__panel {
        display: flex;
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        padding: 36px 20px 0;
    }

    .bgs-offer-image-banner__content {
        order: 1;
    }

    .bgs-offer-image-banner__title {
        font-size: clamp(1.75rem, 8.5vw, 2.2rem);
    }

    .bgs-offer-image-banner__description {
        font-size: .9rem;
    }

    .bgs-offer-image-banner__media {
        position: relative;
        bottom: auto;
        left: auto;
        order: 2;
        width: 100%;
        height: auto;
        justify-content: center;
        margin-top: 18px;
        pointer-events: auto;
    }

    .bgs-offer-image-banner__media img {
        position: static;
        width: auto;
        max-width: 100%;
        height: min(var(--bgs-offer-image-height, 380px), 250px);
    }
}

@media (max-width: 390px) {
    .bgs-offer-image-banner__panel {
        padding-inline: 16px;
    }

    .bgs-offer-image-banner__button {
        width: 100%;
    }

    .bgs-offer-image-banner__media img {
        height: min(var(--bgs-offer-image-height, 380px), 220px);
    }
}
