/* PMI Systems 1.1 — refreshed surfaces, dark theme, language control. */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  background: #f3f5f0;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; }
.topline { background: #12382c; color: #d7e6da; border-bottom: 0; }
.topline a { color: #fff; }
.site-header {
  background: rgba(243, 245, 240, 0.92);
  border-bottom-color: #e1e7dc;
  box-shadow: 0 1px 0 rgba(18, 56, 44, 0.04);
}
.header-inner { min-height: 84px; }
.brand > span { color: #5d6b62; font-weight: 600; }
.desktop-nav { font-size: 14px; font-weight: 600; gap: 22px; }
.desktop-nav a { padding-block: 30px; }
.desktop-nav a:after { bottom: 18px; height: 2px; border-radius: 2px; }
.header-phone {
  border: 1px solid #c9d5c6;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
}
.icon-button { width: 44px; height: 44px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-current, .lang-switch-footer button {
  border: 1px solid #c9d5c6;
  background: #fff;
  color: #173528;
  border-radius: 999px;
  min-width: 46px;
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #d7e0d4;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 40, 28, 0.12);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: #173528;
}
.lang-menu button[aria-pressed="true"], .lang-menu button:hover { background: #edf3ea; }
.button, .request-form button[type=submit], .request-form input[type=submit] { border-radius: 10px; font-weight: 650; }
.hero h1 { font-weight: 650; letter-spacing: -0.045em; }
.hero-visual { border-radius: 16px; background: #dfe6d8; }
.hero-photo { filter: saturate(0.9) contrast(1.04); object-position: center 62%; }
.visual-label { border-radius: 999px; font-size: 11px; }
.visual-coordinate { font-size: 11px; letter-spacing: 0.08em; }
.category-tile, .catalog-card, .catalog-nav, .b-provider__brief, .b-plist__el {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(18, 40, 28, 0.04);
}
.category-tile img, .catalog-card .b-cat__img img, .b-plist__el img, .analyzer-results img, .partner-logos img {
  mix-blend-mode: normal;
  background: #f6f7f4;
  border-radius: 10px;
}
.partner-logos { gap: 14px; }
.partner-logos > a { min-width: 160px; }
.partner-logos img {
  filter: none;
  opacity: 1;
  width: 168px;
  height: 72px;
  padding: 8px 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e3eadf;
}
.category-tile:hover, .catalog-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 40, 28, 0.08); }
.source-content .table-scroll { max-width: 100%; }
.questionnaire-links small, .footer-bottom, .tile-more { font-size: 12px; }
.site-footer { background: #12382c; border-top: 0; color: #d7e6da; }
.site-footer a { color: #e7f3ea; }
.site-footer a:hover { color: #fff; }
.footer-top p, .footer-contact p { color: #b7cbbd; }
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { width: 148px; height: auto; display: block; filter: brightness(0) invert(1); }
html[data-theme="dark"] .site-header .brand img,
html[data-theme="dark"] .custom-logo { filter: brightness(0) invert(1); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.14); color: #c5d7ca; }
.lang-switch-footer { gap: 6px; }
.lang-switch-footer button {
  background: transparent;
  color: #e7f3ea;
  border-color: rgba(255, 255, 255, 0.28);
  height: 32px;
}
.lang-switch-footer button[aria-pressed="true"] { background: #fff; color: #12382c; }
.translate-fallback {
  margin: 0;
  padding: 10px 20px;
  background: #f6ead0;
  color: #3e3422;
  text-align: center;
  font-size: 14px;
}
.search-dialog, .image-dialog { border-radius: 16px; }
.skip-link { border-radius: 8px; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
#pmi-google-translate { position: absolute; width: 1px; height: 1px; overflow: hidden; }
html[dir="rtl"] .header-inner,
html[dir="rtl"] .topline > .wrap,
html[dir="rtl"] .footer-top,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .desktop-nav,
html[dir="rtl"] .hero,
html[dir="rtl"] .source-content { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }

@media (max-width: 1250px) {
  .brand > span { display: block; }
}
@media (max-width: 1000px) and (min-width: 760px) {
  .header-phone { display: inline-flex; font-size: 12px; }
}
@media (max-width: 760px) {
  .brand > span { display: none; }
  .header-inner { min-height: 72px; }
  .hero-buttons { flex-wrap: wrap; }
  .hero-buttons .button, .hero-buttons .text-link { font-size: 14px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.04em; }
  .catalog-nav { max-height: min(70vh, 520px); }
  .footer-bottom > span:nth-child(2) { display: inline; }
  .lang-switch-footer { width: 100%; }
  .partner-logos > a { min-width: calc(50% - 14px); }
}

html[data-theme="dark"] {
  --ink: #eef4f0;
  --muted: #b7c6bb;
  --paper: #0e1411;
  --line: #2c3b34;
  --soft: #1c2822;
}
html[data-theme="dark"] body { background: #0e1411; color: var(--ink); }
html[data-theme="dark"] .catalog-card h2,
html[data-theme="dark"] .catalog-card h2 a,
html[data-theme="dark"] .listing-grid h2,
html[data-theme="dark"] .listing-grid h2 a,
html[data-theme="dark"] .category-tile h3,
html[data-theme="dark"] .solution-list h3,
html[data-theme="dark"] .b-provider__brief h2,
html[data-theme="dark"] .b-provider__brief h3 {
  color: #f4f7f4 !important;
}
html[data-theme="dark"] .topline { background: #0a100e; color: #c5d7ca; }
html[data-theme="dark"] .site-header { background: rgba(14, 20, 17, 0.92); border-bottom-color: #24312b; }
html[data-theme="dark"] .brand > span,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .lede,
html[data-theme="dark"] .hero-copy > p,
html[data-theme="dark"] .expertise-strip p,
html[data-theme="dark"] .about-facts p,
html[data-theme="dark"] .standards p,
html[data-theme="dark"] .request-home p { color: #a9bbae; }
html[data-theme="dark"] a:hover { color: #b7e09a; }
html[data-theme="dark"] .desktop-nav .current-menu-item > a,
html[data-theme="dark"] .source-content a:not(:has(img)),
html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .text-link { color: #b7e09a; }
html[data-theme="dark"] .header-phone,
html[data-theme="dark"] .lang-current,
html[data-theme="dark"] .category-tile,
html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .catalog-nav,
html[data-theme="dark"] .b-provider__brief,
html[data-theme="dark"] .b-plist__el,
html[data-theme="dark"] .b-prodside__img,
html[data-theme="dark"] .search-dialog,
html[data-theme="dark"] .image-dialog,
html[data-theme="dark"] .lang-menu,
html[data-theme="dark"] .form-result,
html[data-theme="dark"] .filter-input,
html[data-theme="dark"] .page-search > input,
html[data-theme="dark"] .request-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
html[data-theme="dark"] .request-form textarea,
html[data-theme="dark"] .request-form select,
html[data-theme="dark"] .print-button,
html[data-theme="dark"] .analyzer-results > a { background: #17211c; color: #e6efe8; border-color: #2c3b34; }
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .lang-menu button { color: #e6efe8; }
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .lang-menu button[aria-pressed="true"],
html[data-theme="dark"] .lang-menu button:hover,
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .solutions-section,
html[data-theme="dark"] .b-bblock,
html[data-theme="dark"] .b-apps_bgr,
html[data-theme="dark"] .analyzer-filter,
html[data-theme="dark"] .catalog-tree details[open] > summary,
html[data-theme="dark"] .nav-help { background: #1c2822; }
html[data-theme="dark"] .mobile-nav a,
html[data-theme="dark"] .expertise-strip,
html[data-theme="dark"] .expertise-strip .wrap > div + div,
html[data-theme="dark"] .standards,
html[data-theme="dark"] .standards > a,
html[data-theme="dark"] .about-facts > div,
html[data-theme="dark"] .source-content,
html[data-theme="dark"] .source-content .b-side,
html[data-theme="dark"] .document-row,
html[data-theme="dark"] .search-result,
html[data-theme="dark"] .live-results > a,
html[data-theme="dark"] .sitemap-list a,
html[data-theme="dark"] .b-provider,
html[data-theme="dark"] .solution-list > a,
html[data-theme="dark"] .media-section details,
html[data-theme="dark"] .request-home,
html[data-theme="dark"] .product-toolbar,
html[data-theme="dark"] .table-scroll,
html[data-theme="dark"] .file-type { border-color: #2c3b34; color: #e6efe8; }
html[data-theme="dark"] .source-content th { background: #24342c; color: #d7e6da; }
html[data-theme="dark"] .source-content td,
html[data-theme="dark"] .source-content th { border-bottom-color: #2c3b34; }
html[data-theme="dark"] .source-content caption { background: #1c2822; }
html[data-theme="dark"] .table-scroll,
html[data-theme="dark"] .catalog-nav-title { background: #17211c; }
html[data-theme="dark"] .site-footer { background: #0a100e; }
html[data-theme="dark"] .button.white { background: #e6efe8; color: #12382c; }
html[data-theme="dark"] .button.outline { color: #b7e09a; border-color: #3c6a4e; }
html[data-theme="dark"] .hero-visual { background: #1c2822; }
html[data-theme="dark"] .visual-label { background: rgba(14, 20, 17, 0.88); color: #e6efe8; }
html[data-theme="dark"] .partner-logos img,
html[data-theme="dark"] .category-tile img,
html[data-theme="dark"] .catalog-card .b-cat__img img { background: #f4f6f2; }
html[data-theme="dark"] .search-field > input,
html[data-theme="dark"] .filter-controls select { background: transparent; color: #e6efe8; }
html[data-theme="dark"] .translate-fallback { background: #3a3220; color: #f3e6c4; }
html[data-theme="dark"] .expertise-strip .wrap > div > span,
html[data-theme="dark"] .about-facts span,
html[data-theme="dark"] .tile-number,
html[data-theme="dark"] .solution-list > a > span { color: #9aaf9f; }
@media (max-width: 760px) {
  .hero-bottom br { display: inline; font-size: 0; line-height: 0; }
  .hero-bottom br::after { content: " "; font-size: 15px; }
}
html[data-theme="dark"] .skip-link { background: #17211c; color: #e6efe8; }
html[data-theme="dark"] .catalog-tree a.selected { background: #1f7a4c; color: #fff; }
@media (max-width: 760px) {
  html[data-theme="dark"] .catalog-nav-title { background: #17211c; }
  html[data-theme="dark"] .expertise-strip .wrap > div { border-bottom-color: #2c3b34; }
}
@media print {
  .theme-toggle, .lang-switch, .translate-fallback { display: none !important; }
  .site-footer { background: #fff !important; color: #000 !important; }
  .site-header .brand img, .custom-logo, .footer-logo img { filter: none !important; }
}
