.banner-autodopravamiko-1 {
    position: relative;
    width: 100%;
    min-height: clamp(620px, 92vh, 760px);
    display: flex;
    align-items: center;
    background-color: var(--navy-surface);
    overflow: hidden;
}

/* Short/landscape phones: a near-viewport-height banner would eat the whole screen. */
@media (max-height: 500px) and (orientation: landscape) {
    .banner-autodopravamiko-1 {
        min-height: 440px;
    }
}

@media (min-width: 640px) {
    .banner-autodopravamiko-1 {
        min-height: clamp(680px, 85vh, 820px);
    }
}

@media (min-width: 1024px) {
    .banner-autodopravamiko-1 {
        min-height: 680px;
    }
}

.atm-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.atm-banner__overlay {
    /* background is set inline per-render (template.phtml) — its gradient direction, peak
       alpha, and tint color come from the editor-chosen gradientDirection/overlayOpacity/
       overlayColor fields. */
    position: absolute;
    inset: 0;
    z-index: 1;
}

.atm-banner__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 64px;
    padding-bottom: 64px;
}

.atm-banner__content {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atm-tagline--light {
    color: var(--brand-yellow);
}

.atm-banner--align-center .atm-banner__content {
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.atm-banner--align-right .atm-banner__content {
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
}

.atm-banner__heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--bg-light);
    margin: 0;
}

/* Each word sits in its own overflow-hidden "mask" so JS can slide the word up from beneath
   it (component.js) instead of just fading the whole heading in one piece. */
.atm-banner__word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.atm-banner__word {
    display: inline-block;
}

.atm-banner__subtext {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy-steel-tint);
    margin: 0;
    max-width: 52ch;
}

.atm-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 639px) {
    .atm-banner__actions .atm-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Init reveal-on-view animation ===
   These only set the *starting* pose. component.js drives the actual motion via the Web
   Animations API (element.animate()) rather than CSS transitions — that's what lets the
   heading words stagger individually and the background parallax react to scroll without
   fighting a CSS `transition`. No `transition` property is declared here on purpose.
   Disabled entirely for prefers-reduced-motion — elements simply render in their final,
   visible state when the query doesn't match, and component.js no-ops. */
@media (prefers-reduced-motion: no-preference) {
    .atm-banner__bg {
        transform: scale(1.08);
        will-change: transform;
    }

    .atm-banner__reveal {
        opacity: 0;
        transform: translateY(28px);
        will-change: opacity, transform;
    }

    .atm-banner__word {
        transform: translateY(115%) rotate(4deg);
        will-change: transform;
    }
}
