/* 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 */
/* Once collapsed, the header grows a little so the compact row has breathing room below it. */
.m3-head{height:calc(82px + var(--m3) * 10px);padding-bottom:calc(var(--m3) * 10px);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%}
/* The field opens from the left once the icons have landed: it is uncovered (clip-path), never squeezed,
   so the icon and text keep their shape; they fade in as the last part of the field appears. */
.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;
 --m3-open:clamp(0,(var(--m3) - .55) / .35,1);
 clip-path:inset(0 calc((1 - var(--m3-open)) * 100%) 0 0 round var(--m3-radius,var(--radius-garden)));opacity:clamp(0,(var(--m3) - .5) * 5,1)}
.m3-compact__field>*{opacity:clamp(0,(var(--m3) - .8) * 6,1)}
.m3-compact__field span{overflow:hidden;text-overflow:ellipsis}
/* Service carousel (every 8 s while collapsed, 10 s on Отели), kept quiet: the next icon fades and settles in from a
   slightly smaller size; the field's icon + text rise a few pixels as they fade in. */
.m3-hop{display:block;width:24px;height:24px}
.m3-hop.is-hop{animation:m3-hop .32s ease-out both}
.m3-ticker{display:flex;align-items:center;gap:var(--space-base-s);min-width:0}
.m3-ticker.is-in{animation:m3-ticker .32s ease-out both}
@keyframes m3-hop{0%{opacity:.4;transform:scale(.86)}100%{opacity:1;transform:none}}
@keyframes m3-ticker{0%{opacity:0;transform:translateY(6px)}100%{opacity:1;transform:none}}

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