.ergo-hero-document { margin: 0; }
.ergo-hero { container-type: inline-size; position: relative; width: calc(100% - 32px); max-width: 1500px; margin: 32px auto 0; overflow: hidden; background: #f8eef0; font-family: Inter, Arial, sans-serif; }
.ergo-hero-document .ergo-hero { width: 100%; max-width: none; margin: 0; }
.ergo-hero__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; overflow-anchor: none; }
.ergo-hero__viewport::-webkit-scrollbar { display: none; }
.ergo-hero__viewport:focus-visible { outline: 3px solid #83132a; outline-offset: -3px; }
.ergo-hero__slide { --ergo-hero-background-image: none; position: relative; isolation: isolate; flex: 0 0 100%; min-width: 0; min-height: var(--ergo-hero-height); overflow: hidden; scroll-snap-align: start; background: var(--ergo-hero-background-color); color: var(--ergo-hero-text-color); }
.ergo-hero__background { position: absolute; z-index: -2; inset: 0; background-color: var(--ergo-hero-background-color); background-image: var(--ergo-hero-background-image); background-position: var(--ergo-hero-bg-x) var(--ergo-hero-bg-y); background-repeat: no-repeat; background-size: cover; }
.ergo-hero__layers { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.ergo-hero__layer { position: absolute; left: var(--ergo-layer-x); top: var(--ergo-layer-y); width: var(--ergo-layer-width); max-width: none; height: auto; transform: translate(-50%, -50%); display: var(--ergo-layer-display, block); }
.ergo-hero__text { position: relative; z-index: 1; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(52%, 700px); min-height: var(--ergo-hero-height); padding: clamp(24px, 5cqw, 78px); }
.ergo-hero__title { overflow-wrap: anywhere; margin: 0; font-size: var(--ergo-hero-title-size, clamp(30px, 3.2cqw, 52px)); font-weight: 700; line-height: 1.08; color: inherit; }
.ergo-hero__description { overflow-wrap: anywhere; margin: 20px 0 0; font-size: var(--ergo-hero-text-size, clamp(16px, 1.35cqw, 21px)); line-height: 1.45; color: inherit; }
.ergo-hero__link { display: inline-flex; margin-top: 26px; padding: 13px 20px; border-radius: 4px; background: var(--ergo-hero-text-color); color: #fff; font-weight: 700; text-decoration: none; }
.ergo-hero__link:focus-visible, .ergo-hero__link:hover { outline: 2px solid currentColor; outline-offset: 3px; }
.ergo-hero__controls { position: absolute; z-index: 3; right: 32px; bottom: 24px; width: max-content; max-width: calc(100% - 36px); display: flex; flex-wrap: wrap; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; pointer-events: none; }
.ergo-hero__arrow, .ergo-hero__dot { pointer-events: auto; border: 0; cursor: pointer; }
.ergo-hero__arrow { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: #fff; color: #333; line-height: 1; }
.ergo-hero__arrow svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ergo-hero__dots { display: flex; flex: 0 0 auto; min-width: 0; align-items: center; gap: 16px; margin: 0 8px; }
.ergo-hero__dot { flex: 0 0 8px; width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; background: rgba(131,19,42,.4); }
.ergo-hero__dot[aria-selected="true"] { background: #83132a; transform: scale(1.25); }
.ergo-hero__arrow:focus-visible, .ergo-hero__dot:focus-visible { outline: 2px solid #83132a; outline-offset: 3px; }
@media (max-width: 767px) { .ergo-hero { width: 100%; margin-top: 20px; } .ergo-hero-document .ergo-hero { margin-top: 0; } }
@container (max-width: 767px) { .ergo-hero__slide { min-height: var(--ergo-hero-mobile-height); } .ergo-hero__background { background-position: var(--ergo-hero-bg-mobile-x) var(--ergo-hero-bg-mobile-y); } .ergo-hero__layer { left: var(--ergo-layer-mobile-x); top: var(--ergo-layer-mobile-y); width: var(--ergo-layer-mobile-width); display: var(--ergo-layer-mobile-display, block); } .ergo-hero__text { justify-content: flex-start; width: 100%; max-width: 100%; min-height: min(44%, var(--ergo-hero-mobile-height)); padding: 28px 22px 250px; } .ergo-hero__title { font-size: var(--ergo-hero-title-mobile-size, clamp(28px, 9cqw, 42px)); } .ergo-hero__description { margin-top: 14px; font-size: var(--ergo-hero-text-mobile-size, 16px); } .ergo-hero__link { margin-top: 18px; } .ergo-hero__controls { right: 18px; bottom: 16px; gap: 8px; } .ergo-hero__dots { gap: 8px; margin: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .ergo-hero__viewport { scroll-behavior: auto; } }
.ergo-hero__text { text-align: var(--ergo-text-desktop-align, left); align-items: var(--ergo-text-desktop-items, flex-start); }
.ergo-hero__title, .ergo-hero__description { width: 100%; box-sizing: border-box; }
@container (min-width: 768px) {
  [data-ergo-text-desktop="manual"] .ergo-hero__text {
    margin-left: var(--ergo-text-desktop-x, 5%);
    width: min(var(--ergo-text-desktop-width, 42%), calc(100% - var(--ergo-text-desktop-x, 5%) - 16px));
    min-height: 0;
    justify-content: flex-start;
    padding: calc(var(--ergo-hero-height) * var(--ergo-text-desktop-y, .3)) 0 80px;
  }
}
@container (max-width: 767px) {
  .ergo-hero__text { text-align: var(--ergo-text-mobile-align, left); align-items: var(--ergo-text-mobile-items, flex-start); }
  [data-ergo-text-mobile="manual"] .ergo-hero__text {
    margin-left: var(--ergo-text-mobile-x, 6%);
    width: min(var(--ergo-text-mobile-width, 88%), calc(100% - var(--ergo-text-mobile-x, 6%) - 16px));
    min-height: 0;
    justify-content: flex-start;
    padding: calc(var(--ergo-hero-mobile-height) * var(--ergo-text-mobile-y, .045)) 0 250px;
  }
}
