/* Hero concept 01, helicopter background revision. Local-only homepage scope. */
.avm-hero {
    --avm-blue: #012fea;
    --avm-ink: #080a1d;
    color: #fff;
    background: var(--avm-ink);
    position: relative;
    isolation: isolate;
    overflow: clip;
    margin-top: 80px;
}
.avm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 10, 29, .2), rgba(8, 10, 29, 0) 70%), url('/wp-content/themes/aviamisto/img/home-bg.webp') right center / cover no-repeat;
    opacity: .9;
    pointer-events: none;
}
.avm-hero *, .avm-hero *::before, .avm-hero *::after { box-sizing: border-box; }
/* Progressive enhancement: the original WebP remains the touch / no-JS fallback. */
.avm-hero__aircraft { display: none; position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; opacity: .9; }
.avm-hero__drawing { display: block; width: 100%; height: 100%; pointer-events: none; }
.avm-hero__rotor { transform-box: view-box; transform-origin: 1309px 413px; }
@keyframes avm-rotor-turn { to { transform: rotate(360deg); } }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .avm-hero--rotor-ready .avm-hero__aircraft { display: block; }
    .avm-hero--rotor-ready::before { background-image: linear-gradient(90deg, rgba(8, 10, 29, .2), rgba(8, 10, 29, 0) 70%); }
    .avm-hero--rotor-ready .avm-hero__inner { pointer-events: none; }
    .avm-hero--rotor-ready .avm-hero__topline,
    .avm-hero--rotor-ready .avm-hero__copy,
    .avm-hero--rotor-ready .avm-hero__bottom { pointer-events: auto; }
    .avm-hero--rotor-ready .avm-hero__rotor-hit { pointer-events: all; }
    .avm-hero--rotor-ready .avm-hero__rotor { animation: avm-rotor-turn 8s linear infinite paused; }
    .avm-hero--rotor-ready .avm-hero__drawing { opacity: .9; transition: opacity .45s ease; }
    .avm-hero--rotor-ready.avm-hero--rotor-active .avm-hero__rotor { animation-play-state: running; will-change: transform; }
    .avm-hero--rotor-ready.avm-hero--rotor-active .avm-hero__drawing { opacity: 1; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .avm-hero__drawing { transform: translateX(50px); }
    .avm-hero.avm-hero--rotor-ready::before { background-image: linear-gradient(90deg, rgba(8, 10, 29, .35), rgba(8, 10, 29, .12) 65%, rgba(8, 10, 29, 0) 82%); }
}
/* Keep the technical aircraft drawing tied to the approved 1440px content frame.
   With xMaxYMid slice, stretching the SVG across ultrawide viewports enlarges and
   crops the helicopter instead of simply adding breathing room around the hero. */
@media (min-width: 1441px) {
    .avm-hero:not(.avm-hero--mi8) .avm-hero__aircraft {
        inset-inline: auto;
        left: 50%;
        width: 1440px;
        overflow: visible;
        transform: translateX(-50%);
    }
    .avm-hero:not(.avm-hero--mi8) .avm-hero__drawing { overflow: visible; }
}
.avm-hero__inner { max-width: 1440px; margin: 0 auto; padding: 32px clamp(24px, 5.5vw, 88px) 26px; }
.avm-hero__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.avm-hero .avm-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 12px/1.5 Helvetica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c2c5d0; }
.avm-hero__eyebrow > span { width: 7px; height: 7px; flex: 0 0 7px; background: #f5a123; }
.avm-hero__languages { display: flex; gap: 8px; align-items: center; font: 12px/1 Helvetica, Arial, sans-serif; }
.avm-hero__languages a { color: #aeb3c6; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.avm-hero__languages a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #f5a123; }
.avm-hero__languages > span { color: #565c74; }
.avm-hero__grid { display: flex; align-items: center; min-height: 400px; }
.avm-hero__copy { min-width: 0; width: 100%; max-width: 640px; padding: 8px 0; }
.avm-hero h1 { font-family: 'Akzidenz-Grotesk Pro Bold Ext', Helvetica, Arial, sans-serif; font-size: clamp(38px, 4.1vw, 60px); line-height: 1.13; letter-spacing: -.035em; font-weight: 400; color: #fff; margin: 0; padding: 0; }
.avm-hero h1 > span { display: block; color: inherit; }
.avm-hero .avm-hero__description { margin: 20px 0 18px; font: 18px/1.65 Helvetica, Arial, sans-serif; color: #c2c5d0; max-width: 54ch; text-wrap: pretty; }
.avm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.avm-hero .avm-hero__button { border-radius: 0; display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 56px; padding: 14px 23px; font: 700 15px/1.4 Helvetica, Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s; margin: 0; }
.avm-hero__button--primary { background: var(--avm-blue); color: #fff; border: 1px solid var(--avm-blue); }
.avm-hero__button--primary:hover { background: #244ffc; border-color: #244ffc; }
.avm-hero__button--primary > svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.avm-hero__button--secondary { color: #fff; background: transparent; border: 1px solid #62677b; }
.avm-hero__button--secondary:hover { background: #1b213b; border-color: #c2c5d0; }
.avm-hero .avm-hero__note { color: #abb0c2; font: 13px/1.6 Helvetica, Arial, sans-serif; margin: 12px 0 0; max-width: 54ch; }
.avm-hero__bottom { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #2b3047; padding-top: 16px; }
.avm-hero .avm-hero__scroll { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; border: 0; padding: 4px 0; background: transparent; color: #c2c5d0; font: 13px/1.4 Helvetica, Arial, sans-serif; cursor: pointer; text-align: left; }
.avm-hero__scroll .arrow-scroll { display: block; width: 20px; height: 40px; flex: 0 0 20px; animation: avm-arrow-pulse 2s ease-in-out infinite; }
.avm-hero .avm-hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0 0 20px; color: #e0e5f0; font: 600 14px/1.5 Helvetica, Arial, sans-serif; }
.avm-hero__trust-fact { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.avm-hero__trust-fact::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: #f5a123; }
.avm-hero__process-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; color: #e0e5f0; font: 14px/1.4 Helvetica, Arial, sans-serif; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #62677b; }
.avm-hero__process-link:hover { color: #fff; text-decoration-color: currentColor; }
.avm-hero__process-link > svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.avm-hero a:focus-visible, .avm-hero button:focus-visible { outline: 2px solid #f5a123; outline-offset: 5px; }
.avm-local-hero-v1 #avm-systems { scroll-margin-top: 80px; }
@keyframes avm-arrow-pulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Keep the existing header and its functions, while preventing its logo/search from squeezing. */
/* Two existing search icons are emitted before the document header by legacy code. */
body.avm-local-hero-v1 > svg[viewBox="0 -0.5 25 25"] { display: none; }
.avm-local-hero-v1 .header > .logo { flex-shrink: 0; background-size: contain; background-position: left center; }
.avm-local-hero-v1 .header > * { transition-property: background-color, color, filter, box-shadow !important; }
.avm-local-hero-v1 .header > .btn-header-search-desktop { flex: 1 1 260px; min-width: 0; }
.avm-local-hero-v1 .btn-header-search-desktop .dgwt-wcas-search-form { min-width: 0; }
.avm-local-hero-v1 .header > .btn, .avm-local-hero-v1 .header > .ic-cart, .avm-local-hero-v1 .header > .btn-burger, .avm-local-hero-v1 .header > .btn-account-block { flex-shrink: 0; }
@media (max-width: 1300px) { .avm-local-hero-v1 .header > .adders { display: none; } }
@media (min-width: 901px) and (max-width: 1100px) {
    .avm-local-hero-v1 .header > .logo { width: 212px; height: 64px; }
    .avm-local-hero-v1 .header > .btn { display: none !important; }
    .avm-local-hero-v1 .header > .ic-cart, .avm-local-hero-v1 .header > .btn-burger, .avm-local-hero-v1 .header > .btn-account-block { width: 56px; height: 64px; }
    .avm-local-hero-v1 .header > .ic-cart { background-color: #000; filter: none; }
    .avm-local-hero-v1 .btn-header-search-desktop .dgwt-wcas-sf-wrapp { height: 64px; }
    .avm-local-hero-v1 .btn-header-search-desktop input.dgwt-wcas-search-input { height: 48px !important; margin-top: 8px !important; }
    .avm-local-hero-v1 .btn-header-search-desktop .dgwt-wcas-search-submit { height: 48px !important; min-height: 48px !important; max-height: 48px !important; top: 8px !important; }
    .avm-hero { margin-top: 64px; }
}
@media (max-width: 1100px) {
    .avm-hero__inner { padding-inline: 32px; }
    .avm-hero__grid { min-height: 320px; }
    .avm-hero__copy { max-width: 570px; }
    .avm-hero::before {
        background-image: linear-gradient(90deg, rgba(8, 10, 29, .35), rgba(8, 10, 29, .12) 65%, rgba(8, 10, 29, 0) 82%), url('/wp-content/themes/aviamisto/img/home-bg.webp');
        background-position: center, right -50px center;
    }
    .avm-hero h1 { font-size: clamp(32px, 4.1vw, 45px); }
    .avm-hero .avm-hero__description { font-size: 16px; }
    .avm-hero .avm-hero__button { padding-inline: 18px; }
    .avm-hero__topline { margin-bottom: 18px; }
}
@media (max-width: 900px) {
    .avm-hero { margin-top: 55px; }
    .avm-local-hero-v1 .header { height: 55px; }
    .avm-local-hero-v1 .header > .logo { flex: 0 1 180px; min-width: 0; width: 180px; height: 55px; margin-right: auto; }
    .avm-local-hero-v1 .header > .btn-header-search-desktop { display: none; }
    .avm-local-hero-v1 .header > .btn-header-search-mobile { display: block; flex: 0 0 44px; width: 44px; margin: 0; }
    .avm-local-hero-v1 .btn-header-search__btn { width: 44px; height: 55px; margin: 0; }
    .avm-local-hero-v1 .header > .account-menu { flex: 0 0 44px; width: 44px; }
    .avm-local-hero-v1 .account-menu .btn-account-block { width: 44px; height: 55px; margin: 0; }
    .avm-local-hero-v1 .header > .btn-account-block, .avm-local-hero-v1 .header > .ic-cart, .avm-local-hero-v1 .header > .btn-burger { width: 44px; height: 55px; margin: 0; }
    .avm-local-hero-v1 #avm-systems { scroll-margin-top: 55px; }
}
@media (max-width: 760px) {
    .avm-hero__inner { padding: 18px 28px 22px; }
    .avm-hero__grid { min-height: 0; }
    .avm-hero__copy { max-width: 540px; }
    .avm-hero::before {
        background-image: linear-gradient(90deg, rgba(8, 10, 29, .68), rgba(8, 10, 29, .36) 75%), url('/wp-content/themes/aviamisto/img/home-bg.webp');
        background-position: center, right -100px center;
        background-size: cover, auto 100%;
    }
    .avm-hero h1 { font-size: clamp(34px, 6.3vw, 46px); }
    .avm-hero__bottom { margin-top: 18px; padding-top: 12px; }
    .avm-hero .avm-hero__scroll { flex: 0 0 44px; justify-content: center; }
    .avm-hero__scroll > span { display: none; }
    .avm-hero .avm-hero__trust { gap: 8px 16px; margin-bottom: 18px; }
}
@media (max-width: 600px) {
    .avm-hero__inner { padding-inline: 20px; }
    .avm-hero__topline { margin-bottom: 8px; gap: 6px; }
    .avm-hero .avm-hero__eyebrow { font-size: 10px; letter-spacing: .08em; gap: 8px; max-width: 215px; }
    .avm-hero__languages { gap: 2px; }
    .avm-hero__languages a { min-width: 44px; }
    .avm-hero h1 { font-size: clamp(29px, 7.6vw, 43px); line-height: 1.17; }
    .avm-hero .avm-hero__description { margin: 18px 0 14px; font-size: 16px; line-height: 1.6; }
    .avm-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .avm-hero .avm-hero__button { min-height: 52px; width: 100%; }
    .avm-hero .avm-hero__note { margin-top: 12px; font-size: 12px; }
}
@media (max-width: 370px) {
    .avm-hero__inner { padding-inline: 16px; }
    .avm-local-hero-v1 .header > .logo { flex-basis: 144px; max-width: 144px; }
    .avm-local-hero-v1 .header > .btn-account-block, .avm-local-hero-v1 .header > .ic-cart, .avm-local-hero-v1 .header > .btn-burger, .avm-local-hero-v1 .btn-header-search__btn { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .avm-hero__scroll .arrow-scroll { animation: none; }
    .avm-hero .avm-hero__button { transition: none; }
}

/* Mi-8 perspective trial. ?avm-aircraft=previous keeps the preceding airframe and framing. */
/* Restored original vector: reveal the existing tail beyond the old 718px crop. */
.avm-hero.avm-hero--full-airframe::before {
    background: url('helicopter-original-full.svg') right top / auto calc(100% - 84px) no-repeat;
}
.avm-hero--full-airframe .avm-hero__aircraft { bottom: 84px; }
.avm-hero--full-airframe .avm-hero__drawing { transform: none; }
.avm-hero.avm-hero--full-airframe.avm-hero--rotor-ready::before { background: none; }
@media (max-width: 1100px) {
    .avm-hero.avm-hero--full-airframe::before { opacity: .4; }
    .avm-hero--full-airframe .avm-hero__aircraft { opacity: .4; }
}
@media (max-width: 760px) {
    .avm-hero.avm-hero--full-airframe::before { background-size: auto 82%; background-position: right center; opacity: .25; }
}
.avm-hero--mi8 { overflow: clip; }
.avm-hero.avm-hero--mi8::before { background: none; }
.avm-hero--mi8 .avm-hero__aircraft {
    display: block;
    inset: 50% max(20px, calc((100vw - 1440px) / 2)) auto auto;
    width: min(62vw, 920px);
    aspect-ratio: 3 / 2;
    overflow: visible;
    transform: translateY(-50%);
    mix-blend-mode: screen;
    opacity: .68;
}
.avm-hero--mi8 .avm-hero__drawing { position: relative; transform: none; opacity: 1; }
.avm-hero--mi8 .avm-hero__airframe { display: block; width: 100%; height: auto; }
.avm-hero--mi8 .avm-hero__rotor-plane { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.avm-hero--mi8.avm-hero--airframe-pending .avm-hero__rotor-plane { visibility: hidden; }
.avm-hero--mi8 .avm-hero__rotor { transform-origin: 0 0; }
.avm-hero--mi8 .avm-hero__tail-rotor { transform-box: view-box; transform-origin: 0 0; }
.avm-hero--mi8 .avm-hero__rotor-hit { position: absolute; inset: 4% 5% 8% 12%; }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .avm-hero--mi8.avm-hero--rotor-ready .avm-hero__tail-rotor { animation: avm-rotor-turn 3.2s linear infinite paused; }
    .avm-hero--mi8.avm-hero--rotor-ready.avm-hero--rotor-active .avm-hero__tail-rotor { animation-play-state: running; will-change: transform; }
}
@media (min-width: 1101px) {
    .avm-hero--mi8 .avm-hero__aircraft { top: calc(50% - 35px); right: max(-80px, calc((100vw - 1440px) / 2 - 132px)); }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .avm-hero--mi8 .avm-hero__aircraft { width: 80vw; right: 0; opacity: .45; }
}
@media (max-width: 760px) {
    .avm-hero--mi8 .avm-hero__aircraft { width: 100%; max-width: 620px; inset: 74px 0 auto auto; transform: none; opacity: .3; }
}
