/* Scoped content-page alignment for the legacy Russian sections. */
body.tr-wide-content .s1 > p,
body.tr-wide-content .s1 > ul,
body.tr-wide-content .s1 > ol {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}

body.tr-wide-content .s1 img.tr-content-image {
  border-radius: 8px !important;
}

body.tr-wide-content .s1 img.tr-content-image-wide {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  box-sizing: border-box;
}

body.tr-wide-content .s1 > div:nth-child(2) {
  overflow: hidden;
  border-radius: 8px;
}

body.tr-wide-content .s1 > div:nth-child(2) > img {
  display: block;
  width: 100%;
  height: auto;
}

body.tr-wide-content .s1 a[href^="mailto:"] img[src*="mailto.gif"] {
  display: none !important;
}

/* The two legacy oil sections contain editor-generated empty paragraphs and
   mixed inline markup. These rules apply only to the detected article body. */
body.tr-oil-content-spacing .tr-oil-content-body {
  display: flow-root;
}

body.tr-oil-content-spacing .tr-oil-content-body p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.6;
}

body.tr-oil-content-spacing .tr-oil-content-body table p,
body.tr-oil-content-spacing .tr-oil-content-body .tr-related-products p {
  margin: 0;
  line-height: inherit;
}

body.tr-oil-content-spacing .tr-oil-content-body h1,
body.tr-oil-content-spacing .tr-oil-content-body h2,
body.tr-oil-content-spacing .tr-oil-content-body h3,
body.tr-oil-content-spacing .tr-oil-content-body h4 {
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.3;
}

body.tr-oil-content-spacing .tr-oil-content-body > h1:first-child,
body.tr-oil-content-spacing .tr-oil-content-body > h2:first-child,
body.tr-oil-content-spacing .tr-oil-content-body > h3:first-child,
body.tr-oil-content-spacing .tr-oil-content-body > h4:first-child {
  margin-top: 0;
}

body.tr-oil-content-spacing .tr-oil-content-body > img,
body.tr-oil-content-spacing .tr-oil-content-body > p > img:only-child {
  margin-top: 12px;
  margin-bottom: 18px;
}

body.tr-wide-content .tr-related-products {
  clear: both;
  min-width: 0;
  margin-top: 38px;
  font-family: Arial, Helvetica, sans-serif;
}

body.tr-wide-content .tr-related-products h2 {
  margin: 0 0 14px;
  color: #34383f;
  font-size: 19px;
  line-height: 1.25;
}

body.tr-wide-content .tr-related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.tr-wide-content .tr-related-product-card {
  display: grid;
  min-width: 0;
  align-content: start;
  align-items: start;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(35, 40, 46, .05);
  color: inherit;
  text-decoration: none;
}

body.tr-wide-content .tr-related-product-card:hover,
body.tr-wide-content .tr-related-product-card:focus-visible {
  border-color: #c5c9cd;
  box-shadow: 0 8px 22px rgba(35, 40, 46, .12);
  outline: 0;
}

body.tr-wide-content .tr-related-product-media {
  display: block;
  height: 170px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #f3f4f5;
}

body.tr-wide-content .tr-related-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
}

body.tr-wide-content .tr-related-product-copy {
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: start;
  gap: 6px;
  padding: 12px 14px 14px;
}

body.tr-wide-content .tr-related-product-copy strong {
  color: #30353b;
  font-size: 15px;
  line-height: 1.3;
}

body.tr-wide-content .tr-related-product-copy span {
  color: #666b71;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body.tr-wide-content .s1,
  body.tr-wide-content .s1 > p,
  body.tr-wide-content .s1 > ul,
  body.tr-wide-content .s1 > ol,
  body.tr-wide-content .s1 img.tr-content-image-wide {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.tr-wide-content .tr-related-products {
    margin-top: 30px;
  }

  body.tr-wide-content .tr-related-products h2 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  body.tr-wide-content .tr-related-products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.tr-wide-content .tr-related-product-card {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  }

  body.tr-wide-content .tr-related-product-media {
    height: 132px;
    border-radius: 10px 0 0 10px;
  }

  body.tr-wide-content .tr-related-product-media img {
    border-radius: 10px 0 0 10px;
  }

  body.tr-wide-content .tr-related-product-copy {
    min-height: 132px;
    padding: 13px;
  }

  body.tr-wide-content .tr-related-product-copy strong {
    font-size: 14px;
  }

  body.tr-wide-content .tr-related-product-copy span {
    font-size: 11px;
  }

  body.tr-oil-content-spacing .tr-oil-content-body p {
    margin-bottom: 14px;
    line-height: 1.55;
  }

  body.tr-oil-content-spacing .tr-oil-content-body h1,
  body.tr-oil-content-spacing .tr-oil-content-body h2,
  body.tr-oil-content-spacing .tr-oil-content-body h3,
  body.tr-oil-content-spacing .tr-oil-content-body h4 {
    margin-top: 26px;
    margin-bottom: 12px;
  }
}
