/*
 * Russian localization overrides
 * Load this file after /default/static/css/index.css.
 */

html[lang="ru"] body {
  font-family: "Plus Jakarta Sans", Arial, "Segoe UI", sans-serif;
}

/* Header utility action: keep the translated label intact on one line. */
html[lang="ru"] .hd-btn {
  min-width: 0;
}

html[lang="ru"] .hd-btn a {
  box-sizing: border-box;
  max-width: min(100%, calc(100vw - 32px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desktop navigation: reclaim spacing only where Russian labels need it. */
@media screen and (min-width: 1000px) and (max-width: 1500px) {
  html[lang="ru"] .navigation {
    gap: 10px 20px;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1280px) {
  html[lang="ru"] .navigation {
    gap: 10px 14px;
    font-size: 15px;
  }
}

/* Keep long Russian submenu labels contained and readable. */
html[lang="ru"] .navigation .nav-dropdown {
  box-sizing: border-box;
  width: max-content;
  min-width: 180px;
  max-width: min(380px, calc(100vw - 32px));
  white-space: normal;
}

html[lang="ru"] .nav-dropdown li a {
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 9px 16px;
  text-align: left;
  line-height: 22px;
  overflow-wrap: break-word;
}

html[lang="ru"] .nav-drop li {
  min-width: 0;
}

html[lang="ru"] .nav-title {
  line-height: 24px;
  overflow-wrap: break-word;
}

/* Homepage expertise tabs: the three Russian labels fit on one desktop row. */
@media screen and (min-width: 768px) {
  html[lang="ru"] .main5 .m5-s-tab {
    flex-wrap: nowrap;
  }

  html[lang="ru"] .main5 .m5-s-tab li {
    flex: 0 1 auto;
    max-width: none;
    padding-inline: 9px;
    font-size: 15px;
    line-height: 24px;
    white-space: nowrap;
  }
}

/* Stack the same controls cleanly when a phone cannot hold all three labels. */
@media screen and (max-width: 767px) {
  html[lang="ru"] .main5 .m5-s-tab li {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 22px;
    text-align: left;
  }

  html[lang="ru"] .main5 .m5-s-tab li::after {
    display: none;
  }
}

/* Quote-card heading: retain hierarchy without an oversized two-line block. */
html[lang="ru"] .m7-top .m5-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-block: 14px;
  padding-right: 14px;
  font-size: clamp(24px, 1.65vw, 30px);
  line-height: 1.25;
  text-wrap: balance;
}

/* Long Russian headings used by internal-page and content-card templates. */
html[lang="ru"] .ins-title {
  font-size: 28px;
  line-height: 37px;
}

html[lang="ru"] .m6-title {
  font-size: 21px;
  line-height: 30px;
}

html[lang="ru"] .m6-s-title,
html[lang="ru"] .n2m1-s-title,
html[lang="ru"] .p1m6-s-title,
html[lang="ru"] .f1m3-s-title,
html[lang="ru"] .q1m7-s-title,
html[lang="ru"] .d1m1-s-title {
  font-size: 16px;
  line-height: 25px;
}

html[lang="ru"] .n2m1-title {
  font-size: 23px;
  line-height: 32px;
}

html[lang="ru"] .m1m1-s-title {
  font-size: 20px;
  line-height: 29px;
}

html[lang="ru"] .m1m1-s-title a {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Allow translated headings to wrap naturally without clipping. */
html[lang="ru"] :is(
  .ban-title,
  .ban-advantage-title,
  .m1-title,
  .m1-s-title,
  .m2-s-title,
  .m3-s-title,
  .m3-t-title,
  .m4-s-title,
  .m5-title,
  .m5-s-title,
  .m5-b-title,
  .m6-title
) {
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Text-bearing buttons must not split their labels across lines. */
html[lang="ru"] :is(
  .ban-btn,
  .m1-btn,
  .m1-r-btn,
  .m2-btn,
  .m3-btn,
  .m4-btn,
  .m5-btn,
  .m6-btn,
  .m6-s-btn
) a,
html[lang="ru"] .m7-form .form-btn button {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Russian form placeholders and values need a little more inline room. */
html[lang="ru"] .m7-form > div {
  min-width: 0;
}

html[lang="ru"] .m7-form input,
html[lang="ru"] .m7-form textarea {
  box-sizing: border-box;
  min-width: 0;
}

/* Preserve data-table columns; the primary .table wrapper supplies scrolling. */
html[lang="ru"] .table table {
  min-width: 680px;
}

html[lang="ru"] .table td,
html[lang="ru"] .table th {
  overflow-wrap: break-word;
}

@media screen and (max-width: 767px) {
  html[lang="ru"] .m1-title,
  html[lang="ru"] .m5-title,
  html[lang="ru"] .m6-title {
    hyphens: auto;
  }

  html[lang="ru"] .nav-title {
    font-size: 16px;
    line-height: 22px;
  }

  html[lang="ru"] .ins-title {
    font-size: 21px;
    line-height: 28px;
  }

  html[lang="ru"] .m7-top .m5-title {
    font-size: 22px;
    line-height: 28px;
  }
}

@media screen and (max-width: 480px) {
  html[lang="ru"] .h-languages .h-language {
    font-size: 13px;
  }

  html[lang="ru"] .m7-form .form-btn button {
    padding-inline: 10px;
  }
}
.m5-year{
        font-size: 1.7vw;
}
/*
 * Prefabricated Pipes — German page responsive override
 * Load this stylesheet after the primary site stylesheet.
 * Scope the markup with .prefabricated-pipes-benefits on the section wrapper.
 */

html[lang="de"] .prefabricated-pipes-benefits__grid,
html[lang="de"] .prefabricated-pipes-benefits .elementor-container,
html[lang="de"] .prefabricated-pipes-benefits .elementor-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

html[lang="de"] .prefabricated-pipes-benefits__card,
html[lang="de"] .prefabricated-pipes-benefits .elementor-column {
  min-width: 0;
  width: auto;
}

/* At 1170px and below, show three cards per row. The fourth card wraps. */
@media (min-width: 768px) and (max-width: 1170px) {
  html[lang="de"] .prefabricated-pipes-benefits__grid,
  html[lang="de"] .prefabricated-pipes-benefits .elementor-container,
  html[lang="de"] .prefabricated-pipes-benefits .elementor-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 767px) {
  html[lang="de"] .prefabricated-pipes-benefits__grid,
  html[lang="de"] .prefabricated-pipes-benefits .elementor-container,
  html[lang="de"] .prefabricated-pipes-benefits .elementor-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Russian site: protect the same components from Cyrillic text expansion. */
html[lang="ru"] body,
html[lang="ru"] body * {
  /*min-width: 0;*/
}

html[lang="ru"] body h1,
html[lang="ru"] body h2,
html[lang="ru"] body h3,
html[lang="ru"] body h4,
html[lang="ru"] body h5,
html[lang="ru"] body h6,
html[lang="ru"] body p,
html[lang="ru"] body a,
html[lang="ru"] body span,
html[lang="ru"] body li,
html[lang="ru"] body button {
  overflow-wrap: anywhere;
  word-break: normal;
}

html[lang="ru"] .elementor-widget-container,
html[lang="ru"] .elementor-column,
html[lang="ru"] .elementor-widget,
html[lang="ru"] .elementor-button,
html[lang="ru"] .elementor-button-text,
html[lang="ru"] .elementor-widget-container > a,
html[lang="ru"] .elementor-widget-container .card,
html[lang="ru"] .elementor-widget-container .report-card,
html[lang="ru"] .elementor-widget-container .service-card {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

html[lang="ru"] .card-title,
html[lang="ru"] .report-card h2,
html[lang="ru"] .report-card h3,
html[lang="ru"] .service-card h2,
html[lang="ru"] .service-card h3 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

html[lang="ru"] .menu-item,
html[lang="ru"] .menu-item a,
html[lang="ru"] .elementor-nav-menu--dropdown .menu-item a,
html[lang="ru"] .mobile-menu li,
html[lang="ru"] .mobile-menu li a {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="ru"] .elementor-button,
html[lang="ru"] a.button,
html[lang="ru"] button {
  white-space: normal;
}

@media (max-width: 767px) {
  html[lang="ru"] .elementor-nav-menu--dropdown .menu-item,
  html[lang="ru"] .mobile-menu li,
  html[lang="ru"] .mobile-menu .menu-item {
    position: relative;
    width: 100%;
    overflow: visible;
  }

  html[lang="ru"] .elementor-nav-menu--dropdown .menu-item > a,
  html[lang="ru"] .mobile-menu li > a,
  html[lang="ru"] .mobile-menu .menu-item > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-right: 56px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[lang="ru"] .elementor-nav-menu--dropdown .sub-arrow,
  html[lang="ru"] .mobile-menu li > .sub-arrow,
  html[lang="ru"] .mobile-menu .menu-item > .sub-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    margin: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }
}

/* Production process page: reduce the excessive gap around the highlighted media block. */
html[lang="de"] body.page-id-production-process .production-process__card,
html[lang="de"] body.production-process .production-process__card,
html[lang="de"] .production-process .elementor-widget-image {
  margin-bottom: 12px;
}

html[lang="de"] body.page-id-production-process .production-process__card img,
html[lang="de"] body.production-process .production-process__card img,
html[lang="de"] .production-process .elementor-widget-image img {
  display: block;
  margin-bottom: 8px;
}

html[lang="de"] body.page-id-production-process .production-process__card h2,
html[lang="de"] body.page-id-production-process .production-process__card h3,
html[lang="de"] body.production-process .production-process__card h2,
html[lang="de"] body.production-process .production-process__card h3,
html[lang="de"] .production-process .elementor-widget-heading {
  margin-top: 0;
}

/* Site-wide German text safety: keep translated labels inside their component bounds. */
html[lang="de"] body,
html[lang="de"] body * {
  min-width: 0;
}

html[lang="de"] body h1,
html[lang="de"] body h2,
html[lang="de"] body h3,
html[lang="de"] body h4,
html[lang="de"] body h5,
html[lang="de"] body h6,
html[lang="de"] body p,
html[lang="de"] body a,
html[lang="de"] body span,
html[lang="de"] body li,
html[lang="de"] body button {
  overflow-wrap: anywhere;
  word-break: normal;
}

html[lang="de"] .elementor-widget-container,
html[lang="de"] .elementor-column,
html[lang="de"] .elementor-widget,
html[lang="de"] .elementor-button,
html[lang="de"] .elementor-button-text {
  max-width: 100%;
}

/* Cards and report tiles: translated titles may wrap without pushing icons or buttons out. */
html[lang="de"] .elementor-widget-container > a,
html[lang="de"] .elementor-widget-container .card,
html[lang="de"] .elementor-widget-container .report-card,
html[lang="de"] .elementor-widget-container .service-card {
  min-width: 0;
  overflow: hidden;
}

html[lang="de"] .elementor-widget-container .card-title,
html[lang="de"] .elementor-widget-container .report-card h2,
html[lang="de"] .elementor-widget-container .report-card h3,
html[lang="de"] .elementor-widget-container .service-card h2,
html[lang="de"] .elementor-widget-container .service-card h3 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Navigation and drawer items: allow long German labels to wrap before the arrow. */
html[lang="de"] .menu-item,
html[lang="de"] .menu-item a,
html[lang="de"] .elementor-nav-menu--dropdown .menu-item a,
html[lang="de"] .mobile-menu li,
html[lang="de"] .mobile-menu li a {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang="de"] .elementor-nav-menu--dropdown .menu-item a,
html[lang="de"] .mobile-menu li a {
  padding-right: 44px;
}

html[lang="de"] .elementor-button,
html[lang="de"] a.button,
html[lang="de"] button {
  white-space: normal;
}

@media (max-width: 767px) {
  html[lang="de"] .elementor-widget-heading h1,
  html[lang="de"] .elementor-widget-heading h2,
  html[lang="de"] .elementor-widget-heading h3 {
    line-height: 1.2;
  }

  html[lang="de"] .elementor-nav-menu--dropdown .menu-item a,
  html[lang="de"] .mobile-menu li a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Mobile drawer: reserve a fixed arrow lane on the right of every expandable item. */
  html[lang="de"] .elementor-nav-menu--dropdown .menu-item,
  html[lang="de"] .mobile-menu li,
  html[lang="de"] .mobile-menu .menu-item {
    position: relative;
    width: 100%;
    overflow: visible;
  }

  html[lang="de"] .elementor-nav-menu--dropdown .menu-item > a,
  html[lang="de"] .mobile-menu li > a,
  html[lang="de"] .mobile-menu .menu-item > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-right: 56px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[lang="de"] .elementor-nav-menu--dropdown .sub-arrow,
  html[lang="de"] .mobile-menu li > .sub-arrow,
  html[lang="de"] .mobile-menu .menu-item > .sub-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 12px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    margin: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }
}

