/* Masttech — German (DE, LTR) Typography & Layout Guards */
html[lang^="pl"],
html[lang^="pl"] body,
html[lang^="pl"] h1,
html[lang^="pl"] h2,
html[lang^="pl"] h3,
html[lang^="pl"] h4,
html[lang^="pl"] h5,
html[lang^="pl"] h6,
html[lang^="pl"] p,
html[lang^="pl"] a,
html[lang^="pl"] li,
html[lang^="pl"] span,
html[lang^="pl"] button,
html[lang^="pl"] label,
html[lang^="pl"] th,
html[lang^="pl"] td {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html[lang^="pl"],
html[lang^="pl"] body {
  overflow-x: clip !important;
  max-width: 100vw;
}

html[lang^="pl"] h1,
html[lang^="pl"] h2,
html[lang^="pl"] h3,
html[lang^="pl"] .elementor-heading-title {
  text-wrap: balance;
}

@media (max-width: 480px) {
  html[lang^="pl"] h1.elementor-heading-title {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important;
  }
}

/* Fit home hero H1 inside 50% dark split column without right-edge clipping */
@media (min-width: 768px) and (max-width: 1700px) {
  html[lang^="pl"] .elementor-element-a01e522 h1.elementor-heading-title {
    font-size: clamp(28px, 2.75vw, 44px) !important;
    line-height: 1.15 !important;
  }
}

/* Keep header navigation single-row on 1181–1920px screens with longer German labels */
@media (min-width: 1181px) {
  html[lang^="pl"] header.elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu {
    flex-wrap: nowrap !important;
  }
  html[lang^="pl"] header.elementor-location-header .elementor-nav-menu--main .elementor-item {
    white-space: nowrap !important;
  }
}

@media (min-width: 1181px) and (max-width: 1680px) {
  html[lang^="pl"] header.elementor-location-header .elementor-nav-menu--main .elementor-item {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13.5px !important;
  }
  html[lang^="pl"] header.elementor-location-header .elementor-nav-menu--main .elementor-item::after {
    left: 7px !important;
    right: 7px !important;
  }
  html[lang^="pl"] header.elementor-location-header .elementor-nav-menu--main li.mt-msa-item > a.elementor-item {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }
  html[lang^="pl"] header.elementor-location-header li.mt-lang {
    margin-left: 6px !important;
    padding-left: 8px !important;
    gap: 1px !important;
  }
  html[lang^="pl"] header.elementor-location-header .mt-lang__item {
    padding: 5px 4px !important;
    font-size: 12px !important;
  }
}

/* Keep mobile footer legal links on a single row at 360px / 390px */
@media (max-width: 600px) {
  html[lang^="pl"] .footer-legal {
    padding-inline: 12px !important;
    column-gap: 6px !important;
  }
  html[lang^="pl"] .footer-legal a,
  html[lang^="pl"] .footer-legal a bdi {
    font-size: clamp(9.5px, 2.75vw, 12px) !important; /* Clo: AR ile aynı alt sınır (9px altı metin yok) */
    gap: 3px !important;
    white-space: nowrap !important;
  }
  html[lang^="pl"] .footer-legal__lang {
    font-size: 9px !important;
    padding: 1px 2px !important;
  }
}

/* PL 2026-11-12 (Sinan "2 satır"): MSA bandı başlığı "DOBIERZ WŁAŚCIWY" / "SYSTEM MASZTOWY" — kısa metin diğer dillerle aynı
   boyut ve düzende sığar; önceki iki parçaya sarma ve PL clamp küçültme kuralları kaldırıldı. */
/* PL: ipucu satırı ve "Skontaktuj się…" etiketi kesilmesin — gerekirse iki satıra sarılır (kelime bölünmez). */
html[lang^="pl"] .mt-msa-band .hero-quick-search__helper,
html[lang^="pl"] .mt-msa-band .hero-contact-switch__label {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  line-height: 1.25 !important;
  text-wrap: balance;
}
/* PL: çevrim içi sohbet modu (html.mt-chat-on … [data-mt-live]) etiketi tek satıra zorluyor; PL'de o durumda da sarılsın. */
html[lang^="pl"] .mt-msa-band .hero-contact-switch[class] .hero-contact-switch__label {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
}
/* Sinan 2026-11-12 ("sadece PL de yazılar -1pt"): footer yasal alt bağlantıları her genişlikte mevcut boyuttan 1 pt (1.333 px)
   küçük. Yalnız bağlantılar ve "Ustawienia plików cookie" düğmesi; "INFORMACJE PRAWNE" başlığı aynı. ≤600 px'te alt sınır 9 px. */
html[lang^="pl"] .footer-legal a,
html[lang^="pl"] .footer-legal a bdi,
html[lang^="pl"] .footer-legal .footer-legal__consent-btn { font-size: calc(13px - 1.333px) !important; }
@media (max-width: 600px) {
  html[lang^="pl"] .footer-legal a,
  html[lang^="pl"] .footer-legal a bdi { font-size: max(9px, calc(clamp(9.5px, 2.75vw, 12px) - 1.333px)) !important; }
  html[lang^="pl"] .footer-legal .footer-legal__consent-btn { font-size: max(9px, calc(clamp(10.5px, 3vw, 13px) - 1.333px)) !important; }
}