/* Presentation adapter for existing Russian static pages. It leaves product/news body markup and URLs intact. */
body.tr-ru-legacy { color:rgb(74, 74, 74); }
body.tr-ru-legacy > .w { display:flow-root; clear:both; }
body.tr-ru-legacy .w + .w[style*="font-size"] { display:none !important; }
body.tr-ru-legacy .s1 a:not(.tr-quote) { color:rgb(74, 74, 74); }
body.tr-ru-legacy .s1 a:hover, body.tr-ru-legacy .l1 a:hover { color:#e31b23; }
body.tr-ru-legacy .s8_2, body.tr-ru-legacy .s9_2 { color:rgb(74, 74, 74); }
body.tr-ru-legacy .c { clear:both; }
body.tr-ru-legacy .tr-site-footer { clear:both; }

/*
 * Russian static pages reuse the public 04 layout.  These rules only make
 * Cyrillic copy wrap naturally once the page has a real mobile viewport;
 * they do not replace the shared 980px/680px responsive layout.
 */
html[lang="ru"] body.tr-ru-legacy {
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:auto;
}

html[lang="ru"] body.tr-ru-legacy :is(.s1, .l1, .s8_1, .s8_2, .s9_2, .tr-site-footer) {
  min-width:0;
}

html[lang="ru"] body.tr-ru-legacy :is(.s1 p, .s1 li, .l1 .l2, .l1 .l3, .s8_1, .s8_2, .s9_2, .tr-site-footer a) {
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:auto;
}

@media (max-width:980px) {
  html[lang="ru"] body.tr-ru-legacy .tr-nav {
    min-width:0;
  }

  html[lang="ru"] body.tr-ru-legacy .tr-nav a {
    flex:0 0 auto;
  }
}

@media (max-width:680px) {
  html[lang="ru"] body.tr-ru-legacy .tr-nav {
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  html[lang="ru"] body.tr-ru-legacy .tr-nav a {
    flex:0 0 auto;
    white-space:nowrap;
  }

  html[lang="ru"] body.tr-ru-legacy :is(.l1 .l2, .l1 .l3, .s6, .s8_1, .s8_2, .s9_2) {
    height:auto;
    min-height:0;
    white-space:normal;
  }

  html[lang="ru"] body.tr-ru-legacy .tr-quote {
    padding-right:12px;
    padding-left:12px;
    white-space:normal;
    text-align:center;
  }
}

/* Keep Russian product-card copy in the flexible text column on desktop legacy listing pages. */
@media (min-width:681px) {
  html[lang="ru"] body.tr-ru-legacy .tab_con > li:first-child > .s6 {
    display:grid !important;
    grid-template-columns:174px minmax(0, 1fr) !important;
    column-gap:18px;
    min-width:0;
  }

  html[lang="ru"] body.tr-ru-legacy .tab_con > li:first-child > .s6 > .s8 {
    display:block !important;
    float:none !important;
    width:auto !important;
    min-width:0 !important;
    margin-left:0 !important;
  }

  html[lang="ru"] body.tr-ru-legacy .tab_con > li:first-child > .s6 :is(.s8_1, .s8_2) {
    display:block;
    width:auto !important;
    min-width:0;
  }
}
