/* ix.ua v278 — unified responsive header for index.php + idea.php.
   >=1001px: full menu, original text size, labels never wrap.
   As width decreases, only gaps/paddings get tighter.
   <=1000px: switch to burger before menu/actions can collide. */

/* Wide desktop: keep all navigation labels on ONE line. */
@media (min-width:1001px){
  body.landing .landing-head{
    width:min(1180px,calc(100% - 40px))!important;
    max-width:1180px!important;
    gap:22px!important;
  }

  body.landing .landing-head>.landing-logo,
  body.landing.idea-page .landing-head>.ix-approved-logo{
    flex:0 0 112px!important;
  }

  body.landing .landing-head>.landing-menu-toggle{
    display:none!important;
  }

  body.landing .landing-head>nav{
    display:flex!important;
    flex:0 1 auto!important;
    min-width:0!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:18px!important;
  }

  body.landing .landing-head>nav>a{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.2!important;
    text-align:center!important;
  }

  body.landing .landing-head>.landing-actions{
    flex:0 0 auto!important;
    margin-left:auto!important;
    gap:7px!important;
  }
}

/* Medium desktop: text stays the SAME size; only free space is reduced. */
@media (min-width:1001px) and (max-width:1180px){
  body.landing .landing-head{
    gap:15px!important;
  }

  body.landing .landing-head>nav{
    gap:12px!important;
  }

  body.landing .landing-head>.landing-actions{
    gap:4px!important;
  }

  body.landing .landing-head>.landing-actions>.u-btn{
    padding-left:9px!important;
    padding-right:9px!important;
  }
}

/* Very last desktop range before burger. Never shrink menu text. */
@media (min-width:1001px) and (max-width:1080px){
  body.landing .landing-head{
    gap:10px!important;
  }

  body.landing .landing-head>nav{
    gap:9px!important;
  }

  body.landing .landing-head>.landing-actions{
    gap:3px!important;
  }

  body.landing .landing-head>.landing-actions>.u-btn{
    padding-left:7px!important;
    padding-right:7px!important;
  }
}

/* Burger starts at 1000px on BOTH the homepage and idea page. */
@media (max-width:1000px){
  body.landing .landing-head{
    position:relative!important;
    gap:12px!important;
  }

  body.landing .landing-head>.landing-menu-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin-left:auto!important;
  }

  body.landing .landing-head>.landing-actions{
    margin-left:0!important;
  }

  /* Closed by default — prevents the dropdown flashing/opening by itself. */
  body.landing .landing-head>nav{
    display:none!important;
    position:absolute!important;
    z-index:1000!important;
    top:calc(100% - 4px)!important;
    right:0!important;
    width:min(330px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
    box-sizing:border-box!important;
    padding:8px!important;
    background:#fff!important;
    border:1px solid #e3e8e8!important;
    border-radius:10px!important;
    box-shadow:0 16px 40px #24313724!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:2px!important;
  }

  body.landing.landing-menu-open .landing-head>nav{
    display:flex!important;
  }

  body.landing .landing-head>nav>a{
    display:block!important;
    padding:11px 12px!important;
    border-radius:7px!important;
    font-size:13px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    text-align:left!important;
  }

  body.landing .landing-head>nav>a:hover,
  body.landing .landing-head>nav>a.active{
    background:#fff3ed!important;
    color:#ef531b!important;
  }
}

/* <=650px remains governed by landing-mobile-header-v104.css.
   Only keep dropdown positioning compatible with the 1000px burger rule. */
@media (max-width:650px){
  body.landing .landing-head>nav{
    top:calc(100% - 1px)!important;
    right:0!important;
    width:min(310px,calc(100vw - 18px))!important;
    max-width:calc(100vw - 18px)!important;
  }
}
