/* RUSENCOM v53 — mobile Management acceptance fixes for the homepage. */

@media (max-width:1180px){
  /* Mobile overlay: every menu item occupies the same left-aligned rail.
     The Journal CTA stays visually distinct, but no longer floats to the right. */
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content{
    width:100%!important;
    max-width:none!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container{
    width:100%!important;
    max-width:none!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item{
    width:100%!important;
    max-width:none!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    margin:0!important;
    padding:0!important;
    border-bottom:1px solid rgba(176,198,211,.18)!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item:not(.rsc-nav-cta)>.wp-block-navigation-item__content{
    width:100%!important;
    padding:26px 0!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .rsc-nav-cta{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    flex:0 0 auto!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .rsc-nav-cta::before{
    display:none!important;
    content:none!important;
  }
  html body .rsc-header-editable .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container .rsc-nav-cta>.wp-block-navigation-item__content{
    width:auto!important;
    min-width:148px!important;
    min-height:54px!important;
    margin:24px 0!important;
    padding:0 22px!important;
    align-self:flex-start!important;
    justify-self:flex-start!important;
    font-size:17px!important;
  }
}

@media (max-width:760px){
  /* Section headings must remain large, but a single Russian word must not
     be stranded by one last character on the next line. */
  html body.home .rsc-release-134:not(#top) h2.vc_custom_heading,
  html body.home .rsc-release-134 .rsc-v11-section-title{
    width:100%!important;
    max-width:100%!important;
    font-size:clamp(28px,7.3vw,31px)!important;
    line-height:1.04!important;
    letter-spacing:-.035em!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    -webkit-hyphens:none!important;
    text-wrap:balance!important;
  }

  /* Management asked for section descriptions to read "по ширине".
     Justify only high-level section copy; card body text remains left aligned. */
  html body.home #company.rsc-release-134 .rsc-v15-about-copy,
  html body.home #company.rsc-release-134 .rsc-v15-about-copy p,
  html body.home #directions.rsc-release-134 .rsc-v11-section-intro,
  html body.home #directions.rsc-release-134 .rsc-v11-section-intro p,
  html body.home #projects.rsc-release-134 .rsc-v11-section-intro,
  html body.home #projects.rsc-release-134 .rsc-v11-section-intro p,
  html body.home #supply.rsc-release-134 .rsc-v11-body-copy,
  html body.home #supply.rsc-release-134 .rsc-v11-body-copy p,
  html body.home #team.rsc-release-134 .rsc-story-copy,
  html body.home #team.rsc-release-134 .rsc-story-copy p,
  html body.home #work.rsc-release-134 .rsc-v11-lead,
  html body.home #work.rsc-release-134 .rsc-v11-lead p,
  html body.home #contacts.rsc-release-134 .rsc-business-copy,
  html body.home #contacts.rsc-release-134 .rsc-business-copy p{
    width:100%!important;
    max-width:none!important;
    text-align:justify!important;
    text-justify:inter-word!important;
    hyphens:auto!important;
    -webkit-hyphens:auto!important;
  }
}
