/* global refinements (keep the source theme look) */
.web_head .head_nav > li { margin: 0 8px; }
.web_head .head_nav > li > a { font-size: 15px; }
.web_head .nav_wrap { padding-left: 5%; }
@media (max-width: 1500px) {
  .web_head .head_nav > li { margin: 0 6px; }
  .web_head .head_nav > li > a { font-size: 14px; }
}
.web_head .logo:after { width: 760px; left: -300px; }
.index_application .application_item .item_info { width: 100%; }
.index_application .application_item .item_title { font-size: 14px; line-height: 1.25; }

/* ---- language selector: flag + language name,统一标准、永不截断 ---- */
.web_head .head_layer .layout { flex-wrap: nowrap; }
.web_head .nav_wrap { min-width: 0; }
.web_head .head_right { flex: 0 0 auto; }
.web_head .change-language-title { white-space: nowrap; }

.change-language-title .language-flag > a,
.change-language-cont .prisna-wp-translate-seo li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.change-language-title .country-flag,
.change-language-cont .prisna-wp-translate-seo .country-flag {
  position: static;
  margin: 0;
  flex: 0 0 auto;
}
.change-language-title .language-flag span,
.change-language-cont .prisna-wp-translate-seo .language-flag span {
  padding-left: 0;
  overflow: visible;
  line-height: 1.2;
}
.change-language-cont .prisna-wp-translate-seo { white-space: normal; }

/* ---------- accessibility: skip link & visible focus ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: #307621; color: #fff; padding: 10px 18px; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; outline: 3px solid #e08b44; outline-offset: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #307621 !important;
  outline-offset: 2px;
}
/* keyboard opens the hover-only menus */
.web_head .change-language:focus-within .change-language-cont {
  transform: scale3d(1, 1, 1); opacity: 1; visibility: visible;
}
.web_head .head_nav > li:focus-within > ul {
  transform: scale3d(1, 1, 1); opacity: 1; visibility: visible;
}
/* slightly darker green so white button text reaches 4.5:1 */
.sys_btn, .btn_more, .company_subscribe .button, .product-btn-wrap a, .search-form button { background-color: #357d26; }
.sys_btn:hover, .btn_more:hover, .company_subscribe .button:hover, .product-btn-wrap a:hover { background-color: #2f6f22; }
/* muted grey text: raise contrast from 2.85:1 to 4.6:1 */
.web_footer .foot_bar, .web_footer .foot_bar a { color: #c9c9c9; }

/* ---------- colour contrast refinements ---------- */
/* orange headings on light sections: 2.64:1 -> 3.76:1 (large text needs 3:1) */
.index_hd .hd_title .title_txt { color: #c56d22; }
/* keep the original orange on the dark "about" band, where it already passes (3.52:1) */
.index_company_intr .hd_title .title_txt { color: #e08b44; }
/* light grey body copy used on the contact blocks */
.fl-rich-text span[style*="a6a6a6"], .fl-rich-text p[style*="a6a6a6"] { color: #767676 !important; }

/* ============ presentation polish (no content changes) ============ */

/* 1. sidebar product titles: never break words mid-way (DE / RU long words) */
.side_product_item figcaption h3 a,
.side_product_item figcaption h3 {
  word-break: normal !important;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* 2. product cards: consistent image area so the grid lines up */
.product_item .item_img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product_item .item_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 3. hero images fill the banner without distortion */
.slider_banner .swiper-slide img { object-fit: cover; }

/* 4. product parameter table: readable, modern table instead of 1px HTML borders */
.fl-rich-text table[border] {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e6e6e6;
  margin: 22px 0;
}
.fl-rich-text table[border] td {
  border: 1px solid #e6e6e6;
  padding: 11px 16px;
  font-size: 15px;
  line-height: 1.6;
  vertical-align: top;
}
.fl-rich-text table[border] tr:nth-child(odd) { background: #fafafa; }
.fl-rich-text table[border] td:first-child {
  width: 38%;
  background: #f4f4f4;
  font-weight: 600;
  color: #2f2f2f;
}

/* 5. article / news body: comfortable measure and rhythm */
.entry p, .blog-article p { line-height: 1.85; margin-bottom: 1.1em; }

/* 6. breadcrumb + page title breathing room */
.path_bar { padding: 14px 0; }
.page_title { margin: 0 0 24px; }

/* 7. tables and long words inside rich text should not overflow on mobile */
.fl-rich-text { overflow-wrap: break-word; }

/* 8. mobile: keep the floating contact rail out of the reading column */
@media (max-width: 991px) {
  .scrollsidebar {
    top: auto;
    bottom: 90px;
    right: 8px;
    z-index: 40;
  }
  .scrollsidebar .side_content .side_list .cont li a,
  .scrollsidebar .side_content .side_list .cont li a:before { font-size: 0; }
  .scrollsidebar .side_content .side_list .cont li { margin: 6px 0; }
  .scrollsidebar .side_content .side_list .cont li a {
    width: 40px; height: 40px; border-radius: 50%;
    background: #357d26; display: block; position: relative;
  }
  .scrollsidebar .side_content .side_list .cont li a:before {
    color: #fff; font-size: 16px; line-height: 40px; text-align: center;
    width: 40px; height: 40px; display: block; position: absolute; left: 0; top: 0;
  }
}
/* 9. mobile: tighter section rhythm */
@media (max-width: 767px) {
  .index_hd .hd_title .title_bg { transform: scale(1.2); }
  .layout { padding-left: 16px; padding-right: 16px; }
  .product_item .item_title { font-size: 14px; }
}

/* 10. floating right nav: compact on phones, out of the reading area */
@media (max-width: 991px) {
  .right_nav {
    bottom: 16px;
    transform: none;
    border-radius: 24px 0 0 24px;
    background: transparent;
  }
  .right_nav li {
    right: 0;
    margin: 3px 0;
    padding: 5px;
    border-radius: 22px 0 0 22px;
  }
  .right_nav .iconBox > img { width: 32px; height: 32px; padding: 4px; }
  .right_nav li h4 { display: none; }
}
