/* Russian localization overrides.
 * Load after /default/static/css/index.css.
 */

/* Base text behavior: keep long Russian words and technical names contained. */
html[lang|="ru"] body {
  overflow-wrap: break-word;
}

html[lang|="ru"] .mp,
html[lang|="ru"] .p2m1-con,
html[lang|="ru"] .s2m1-con,
html[lang|="ru"] .n2m1-con,
html[lang|="ru"] .faq-s-det {
  hyphens: auto;
}

/* Header navigation: preserve one row while reclaiming only the space needed
 * by the longer Russian labels. The site's mobile menu still begins at 999px.
 */
html[lang|="ru"] .navigation > li > a {
  white-space: nowrap;
}

html[lang|="ru"] .navigation .nav-dropdown {
  width: max-content;
  min-width: 242px;
  max-width: min(430px, calc(100vw - 32px));
  white-space: normal;
}

html[lang|="ru"] .nav-dropdown li a {
  align-items: flex-start;
  line-height: 24px;
  overflow-wrap: break-word;
  padding-block: 10px;
}

html[lang|="ru"] .nav-dropdown li p {
  min-width: 0;
}

@media screen and (min-width: 1201px) and (max-width: 1500px) {
  html[lang|="ru"] .navigation {
    gap: 10px 22px;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1200px) {
  html[lang|="ru"] .navigation {
    gap: 10px 16px;
    font-size: 15px;
  }
}

/* Headings: allow balanced reflow without clipping long technical titles. */
html[lang|="ru"] .m1-title,
html[lang|="ru"] .p1m1-title,
html[lang|="ru"] .p2m1-title,
html[lang|="ru"] .p2m2-title,
html[lang|="ru"] .s2m1-title,
html[lang|="ru"] .s2m1-s-title,
html[lang|="ru"] .n2m1-title,
html[lang|="ru"] .pop-form .pf-title {
  max-width: 100%;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Flex children containing translated copy must be allowed to shrink. */
html[lang|="ru"] .faq .faq-top p,
html[lang|="ru"] .m7-s-det li > div,
html[lang|="ru"] .move-on li > div,
html[lang|="ru"] .fo-ul li > * {
  min-width: 0;
}

/* Text buttons remain single-line; labels may use available intrinsic width. */
html[lang|="ru"] .m1-btn a,
html[lang|="ru"] .p1m1-ipt a,
html[lang|="ru"] .n1m1-t-list a,
html[lang|="ru"] .fo-form .form-btn button,
html[lang|="ru"] .pf-form .pf-form-btn button,
html[lang|="ru"] .su2m1-btn a {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[lang|="ru"] .m5-form .form-btn input,
html[lang|="ru"] .c1m2-form input[type="submit"] {
  box-sizing: border-box;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Breadcrumbs and filter tabs may wrap as complete items on narrow screens. */
html[lang|="ru"] .paging-top,
html[lang|="ru"] .m2-s-tab,
html[lang|="ru"] .m3-tab,
html[lang|="ru"] .n1m1-t-list {
  flex-wrap: wrap;
}

/* Article/specification tables stay usable without forcing page overflow. */


@media screen and (max-width: 767px) {
  html[lang|="ru"] .faq li {
    padding-inline: 14px;
  }

  html[lang|="ru"] .faq .faq-top p {
    line-height: 26px;
  }

  html[lang|="ru"] .paging-top {
    overflow-wrap: anywhere;
  }
}
@media screen and (min-width: 1000px) and (max-width: 1200px) {
  html[lang|="ru"] .main1 .m1-title {
    font-size: 30px;
    line-height: 40px;
  }
}