.hero_widget {
    position: relative;
    min-height: clamp(520px, 72vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    color: #4f3f43;
}

.hero_widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero_widget_overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero_widget_inner {
    position: relative;
    z-index: 1;
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 72px;
}

.hero_widget_panel {
    width: min(760px, 100%);
    padding: clamp(28px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 48px rgba(48, 38, 42, 0.11);
}

.hero_widget_logo {
    display: block;
    max-width: 280px;
    height: auto;
    margin-bottom: 24px;
}

.hero_widget_content h1,
.hero_widget_content h2 {
    margin: 0 0 22px;
    color: #76595d;
    font-size: clamp(2.15rem, 4.2vw, 4.5rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: 0;
}

.hero_widget_content p {
    margin: 0 0 26px;
    font-size: clamp(1.05rem, 1.45vw, 1.45rem);
    line-height: 1.55;
}

.hero_widget_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero_widget_badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    background: rgba(236, 197, 190, 0.85);
    color: #4f3f43;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero_widget_buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 10px;
}

.hero_widget_buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    background: #C7C6AD;
    color: #2f2b2b;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero_widget_buttons a:hover,
.hero_widget_buttons a:focus {
    background: #b5b49d;
    color: #fff;
    transform: translateY(-1px);
}

.hero_widget_buttons a.secondary {
    background: rgba(199, 198, 173, 0.88);
}

.hero_widget.align_center .hero_widget_inner {
    display: flex;
    justify-content: center;
}

.hero_widget.align_right .hero_widget_inner {
    display: flex;
    justify-content: flex-end;
}

.hero_widget.align_bottom_center {
    align-items: flex-end;
}

.hero_widget.align_bottom_center .hero_widget_inner {
    display: flex;
    justify-content: center;
    padding-bottom: 0;
}

.hero_widget.panel_dark {
    color: #fff;
}

.hero_widget.panel_dark .hero_widget_panel {
    background: rgba(61, 48, 52, 0.76);
}

.hero_widget.panel_dark .hero_widget_content h1,
.hero_widget.panel_dark .hero_widget_content h2 {
    color: #fff;
}

.hero_widget.panel_dark .hero_widget_buttons a {
    background: #efc6bd;
}

.hero_widget.full_bleed .hero_widget_panel {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding-left: 0;
    padding-right: 0;
}

.hero_widget.full_bleed .hero_widget_content {
    max-width: 780px;
    padding: clamp(26px, 3.5vw, 42px);
    background: rgba(255, 255, 255, 0.76);
}

.hero_widget.tall {
    min-height: clamp(650px, 86vh, 900px);
}

.hero_widget.compact {
    min-height: clamp(420px, 58vh, 560px);
}

.hero_widget_edit {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    width: 152px;
    height: 42px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(48, 38, 42, 0.14);
    color: #4f3f43;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
    text-transform: uppercase;
}

.hero_widget_edit span {
    pointer-events: none;
}

.hero_widget_edit .posrelative,
.hero_widget_edit .image_placeholder,
.hero_widget_edit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero_widget_edit .miniinfo {
    display: none;
}

.hero_widget_edit .image_placeholder,
.hero_widget_edit img {
    cursor: pointer;
    opacity: 0;
    object-fit: cover;
}

@media (max-width: 760px) {
    .hero_widget {
        min-height: 620px;
        align-items: flex-end;
    }

    .hero_widget_inner {
        width: calc(100% - 28px);
        padding: 90px 0 28px;
    }

    .hero_widget_panel {
        padding: 24px;
    }

    .hero_widget_content h1,
    .hero_widget_content h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero_widget_buttons {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero_widget_buttons a {
        width: 100%;
    }

    .hero_widget_edit {
        top: 12px;
        right: 12px;
    }
}
