.block-hero {
    margin: 0;
    padding: var(--spacing-top) 0 var(--spacing-bottom) 0;
    position: relative;
    background: var(--bgcolor);
    overflow: clip;

    .container {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }


    h1 {
        font-family: var(--font-buenos);
        font-size: clamp(32px,5.4vw,54px);
        font-weight: 700;
        line-height: 1.33;
        color: #000;
        margin-bottom: clamp(32px,3.2vw,32px);
    }

    p:not(:empty) {
        color: #171C21;
        font-size: clamp(16px,1.8vw,18px);
        line-height: 1.6;
        font-family: var(--font-avenir);
        font-weight: 400;
        margin: 1em 0;
    }

    .text {
        order: 2;
    }

    figure {
        order: 1;

        img, canvas {
            display: block;
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

        &.side {
            display: none;
        }
    }

    iframe {
        border: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 97 / 75;
    }

    figure.side {
        iframe {
            aspect-ratio: 1/4;
        }
    }


    .btn {
        --color: #FFFCFB;

        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #CA4A2B;
        color: var(--color);
        padding: 8px 16px;
        font-family: var(--font-avenir);
        border-radius: 12px;
        font-size: clamp(16px,1.8vw,18px);

        &::after {
            content: '';
            mask-image: var(--icon-playcircle);
            mask-size: cover;
            background-color: var(--color);
            width: 24px;
            aspect-ratio: 1;
            display: block;
        }
    }

    .hbspt-form {
        max-width: 550px;
        margin-top: 32px;

        .actions {
            display: inline-block;
        }

        .hs-input {
            margin-top: 0;
            border: 1px solid #A5A9AE;
            font-family: var(--font-avenir);
            padding: 10px 20px;
            border-radius: 6px;
            font-size: clamp(16px,1.8vw,18px);
            color: #586069;
        }

        .hs-button {
            display: inline-block;
            width: auto;
            height: auto;
            padding: 8px 16px;
            line-height: 1.625;
            border-radius: 6px;
        }

        .hs-error-msgs {
            display: none;
            
            li {
                margin: 8px 0;
            }

            label {
                color: #FBFCFD;
            }
        }

        li {
            label {
                margin: 0 !important;
            }
        }

        .submitted-message p {
            font-size: clamp(16px,1.8vw,18px) !important;
        }

    }



    @media screen and (min-width: 748px) {
        .container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 48px;
            align-items: center;
            justify-items: self-end;
        }

        .text {
            order: 1;
        }

        figure {
            order: 2;
            width: calc(100% + 200px);
            transform: translateX(200px);
    
            &.side {
                display: block;
                width: 180px;
                position: absolute;
                right: calc(100% + 10px);
                transform: none;
            }
        }
    }

    @media screen and (min-width: 1100px) {

        .container {
            gap: 64px;
        }

        h2 {
            line-height: 1.1;
        }

        .hbspt-form {
            form {
                flex-direction: row;
            }
            
            .hs-input {
                border-radius: 6px 0 0 6px;
                border-right: 0;
                height: 46px;
            }

            .hs-button {
                margin-top: 0;
                padding: 10px 20px;
                border-radius: 0 6px 6px 0;
                height: 46px;
            }

            .field {
                flex-grow: 1;
            }
        }

    }

}