/* Click Travel v3 · Главное меню 2.0 (6520:5654). --m3 runs 0 → 1 while the tile row scrolls under the
   header (set from JS on scroll). Icon flight is written per icon by JS; the rest is derived here. */
.av-h3.is-v3{--m3:0}

/* Tiles (Property 1 = Hotels / Flight / Transfer / Tours) */
.m3-tiles{display:flex;gap:var(--space-base-m)}
.m3-tile{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:var(--space-base-s);padding:var(--space-base-l) var(--space-base-s);border-radius:var(--radius-island);background:var(--theme-bg-island);font:inherit;font-size:12.5px;line-height:16px;color:var(--theme-bg-neutral);white-space:nowrap;cursor:pointer;
 /* Cards fold away under the flying icons: they sink, narrow and fade. */
 transform-origin:50% 0;transform:translateY(calc(var(--m3) * 18px)) scale(calc(1 - var(--m3) * .3), calc(1 - var(--m3) * .5));opacity:calc(1 - var(--m3) * 1.5)}
.m3-tile:active{transform:scale(.96)}
.m3-tile__icon{display:block;width:24px;height:24px}
.m3-tile__label{opacity:calc(1 - var(--m3) * 3)}
/* Once the icons lift off they live in the header; the tile keeps an empty spot. */
.av-h3.is-lifted .m3-tile__icon{visibility:hidden}
/* Active label: the menu's blue gradient text (Medium/9), built from the Electric Blue scale. */
.m3-tile.is-active .m3-tile__label{font-weight:500;color:transparent;background:linear-gradient(11.57deg,var(--primitive-colors-primary-electric-blue-c500) 16.6%,var(--primitive-colors-primary-electric-blue-c400) 54.3%,var(--primitive-colors-primary-electric-blue-c300) 100%);-webkit-background-clip:text;background-clip:text}

/* Single search field (Search 💚) for services without their own form yet */
.m3-field{display:flex;align-items:center;gap:var(--space-base-s);height:54px;padding-left:10px;border-radius:var(--radius-island);background:var(--theme-bg-island);font:inherit;font-size:17px;line-height:22px;color:var(--theme-text-tertiary);text-align:left;cursor:pointer}
.m3-soon{margin:0;font-size:14px;line-height:18px;color:var(--theme-text-secondary)}

/* Header: the logo row rises and blurs out as the menu arrives */
.m3-head{box-shadow:0 1px 0 color-mix(in srgb,var(--theme-stroke-ocean) calc(var(--m3) * 100%),transparent)}
.m3-head>.av-icon-btn,.m3-head>.av-h3-logo{opacity:calc(1 - var(--m3) * 2.2);transform:translateY(calc(var(--m3) * -18px)) scale(calc(1 - var(--m3) * .2));filter:blur(calc(var(--m3) * 6px))}
.av-h3.is-collapsed .m3-head>.av-icon-btn,.av-h3.is-collapsed .m3-head>.av-h3-logo{pointer-events:none;visibility:hidden}

/* Compact menu (Variant 5–8) */
.m3-compact{position:absolute;left:var(--space-base-l);right:var(--space-base-l);top:34px;height:48px;display:flex;align-items:center;gap:var(--space-base-s);pointer-events:none}
.av-h3.is-collapsed .m3-compact{pointer-events:auto}
.m3-compact__icons{display:flex;align-items:center}
.m3-compact__icon{position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:none;border-radius:var(--radius-garden);cursor:pointer}
.m3-compact__icon:active{background:var(--theme-bg-island)}
/* The flyer starts on top of its tile icon (transform set by JS) and lands in the slot. */
.m3-flyer{display:block;width:24px;height:24px;opacity:0;will-change:transform;transform-origin:50% 50%}
.av-h3.is-flying .m3-flyer{filter:drop-shadow(0 6px 10px color-mix(in srgb,var(--theme-bg-accent) 25%,transparent))}
/* The field unrolls from the left once the icons have landed; its text follows. */
.m3-compact__field{flex:1;min-width:0;height:40px;display:flex;align-items:center;gap:var(--space-base-s);padding-left:10px;border-radius:var(--radius-garden);background:var(--theme-bg-island);font:inherit;font-size:17px;line-height:22px;color:var(--theme-text-tertiary);white-space:nowrap;overflow:hidden;text-align:left;cursor:pointer;
 transform-origin:0 50%;transform:scaleX(clamp(0,(var(--m3) - .55) / .4,1));opacity:clamp(0,(var(--m3) - .5) * 4,1)}
.m3-compact__field>*{opacity:clamp(0,(var(--m3) - .82) * 6,1)}
.m3-compact__field span{overflow:hidden;text-overflow:ellipsis}

@media (prefers-reduced-motion: reduce){
 .m3-tile,.m3-compact__field{transform:none}
 .m3-head>.av-icon-btn,.m3-head>.av-h3-logo{transform:none;filter:none}
}
