/* Locale-only layout safeguards. The approved Ukrainian design is untouched. */
@media (min-width:1200px) and (max-width:1599.98px){
  html[lang="de"] body .header .nav>ul>li{
    margin-left:12px!important;
    margin-right:12px!important;
  }
}

/* Show the Ukrainian option in EN/DE dropdowns.
   The baseline stylesheet hides the first entry; preserve UA styling. */
html[lang="en"] .lang-switcher ul li:first-child a,
html[lang="de"] .lang-switcher ul li:first-child a {
  visibility: visible !important;
}

/* Keep the expanded locale menu BELOW the EN/DE current-language label.
   The inherited WordPress dropdown uses top:-15px, causing UK to overlap EN/DE. */
html[lang="en"] .lang-switcher ul,
html[lang="de"] .lang-switcher ul {
  top: 100% !important;
  left: -11px;
  z-index: 20 !important;
}
html[lang="en"] .lang-switcher:hover ul,
html[lang="de"] .lang-switcher:hover ul {
  transform: translateY(0) !important;
}

/* International contact refinements only – keep approved Ukrainian CSS intact. */
html[lang="en"] .footer-v2__market-representative,
html[lang="de"] .footer-v2__market-representative {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  opacity: .78;
}
html[lang="en"] .footer-v2__contacts a[href^="tel:"],
html[lang="de"] .footer-v2__contacts a[href^="tel:"],
html[lang="en"] .header-contacts a[href^="tel:"],
html[lang="de"] .header-contacts a[href^="tel:"],
html[lang="en"] .mobile-menu a[href^="tel:"],
html[lang="de"] .mobile-menu a[href^="tel:"] {
  white-space: nowrap;
}
html[lang="en"] .footer-v2__email,
html[lang="de"] .footer-v2__email {
  overflow-wrap: anywhere;
}

/* International desktop phone dropdown: room for country codes and chevron. */
@media (min-width: 992px) {
  html[lang="en"] .header-contacts .phones,
  html[lang="de"] .header-contacts .phones,
  html[lang="en"] .header-contacts .phones__current,
  html[lang="de"] .header-contacts .phones__current,
  html[lang="en"] .header-contacts .phones__hidden,
  html[lang="de"] .header-contacts .phones__hidden {
    width: 238px !important;
    box-sizing: border-box;
  }
  html[lang="en"] .header-contacts .phones__hidden,
  html[lang="de"] .header-contacts .phones__hidden { padding-right: 18px !important; }
}
/* Fix international mobile search alignment without touching UA. */
@media (max-width: 991.98px) {
  html[lang="en"] .mobile-menu > .mobile-menu__search,
  html[lang="de"] .mobile-menu > .mobile-menu__search {
    display:flex !important; align-items:center !important; justify-content:flex-start !important;
    gap:12px !important; width:100% !important; min-width:0 !important;
    height:46px !important; margin:0 0 18px !important; padding:0 14px !important;
    box-sizing:border-box !important; text-align:left !important; position:relative !important;
  }
  html[lang="en"] .mobile-menu > .mobile-menu__search svg,
  html[lang="de"] .mobile-menu > .mobile-menu__search svg {
    display:block !important; position:static !important;
    width:20px !important; height:20px !important; flex:0 0 20px !important;
    fill:none !important; stroke:currentColor !important; stroke-width:1.9 !important;
  }
  html[lang="en"] .mobile-menu > .mobile-menu__search span,
  html[lang="de"] .mobile-menu > .mobile-menu__search span {
    display:block !important; min-width:0 !important; position:static !important;
    line-height:1.35 !important; white-space:normal !important;
  }
  html[lang="en"] .mobile-menu__block > a.phone,
  html[lang="de"] .mobile-menu__block > a.phone {
    margin-top: 3px !important; margin-bottom: 3px !important;
  }
}
html[lang="en"] .footer-v2__market-representative,
html[lang="de"] .footer-v2__market-representative {
  display:flex; flex-direction:column; margin:8px 0 10px; opacity:1;
}
html[lang="en"] .footer-v2__market-representative strong,
html[lang="de"] .footer-v2__market-representative strong {
  font-size:17px; font-weight:600; line-height:1.3;
}
html[lang="en"] .footer-v2__market-representative span,
html[lang="de"] .footer-v2__market-representative span {
  font-size:13px; opacity:.8; line-height:1.4;
}

/* EN/DE footer rhythm: align representative and messenger spacing. */
html[lang="en"] .footer-v2__market-representative span,
html[lang="de"] .footer-v2__market-representative span {
  margin-top: 5px;
}
html[lang="en"] .footer-v2__contacts .footer-v2__messengers,
html[lang="de"] .footer-v2__contacts .footer-v2__messengers {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}
html[lang="en"] .footer-v2__contacts .footer-v2__email,
html[lang="de"] .footer-v2__contacts .footer-v2__email {
  margin-top: 0 !important;
}

/* EN/DE home hero: keep supporting copy inside the approved visual measure.
   H1 and Ukrainian layout remain unchanged. */
@media (min-width: 992px) {
  html[lang="en"] body.home .promo .hero-copy,
  html[lang="de"] body.home .promo .hero-copy {
    max-width: 560px !important;
  }
}
