.site-language {
  display: inline-flex;
  align-items: center;
  flex: none;
  position: relative;
  gap: 5px;
  padding: 5px 7px;
  min-height: 32px;
  color: var(--ink);
  border: 1px solid currentColor;
  border-radius: 8px;
  font: 600 12px/1.1 var(--font);
}
.site-language::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}
.site-language select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.site-language:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.header--glass:not(.is-scrolled) .site-language,
.theme-dark .site-language { color: var(--bone); }
@media (min-width: 1025px) and (max-width: 1240px) {
  .site-header .nav { gap: 14px; }
  .site-header .nav-links { gap: 16px; }
}
@media (max-width: 1024px) {
  .site-header .nav { column-gap: 14px; }
  .site-language { margin-left: auto; }
  .site-header .nav-toggle { margin-left: 0; }
}

/* Allow longer translations to wrap within their original components. */
.display { text-wrap: balance; overflow-wrap: break-word; }
/* Manrope's lighter strokes need a stronger weight beside Poppins at the same size. */
html:is(:lang(uk), :lang(ru)) body {
  font-weight: 500;
}
html:is(:lang(uk), :lang(ru)) :is(h1, h2.display, .join-page h2) {
  font-weight: 800;
}
html:is(:lang(uk), :lang(ru)) :is(.nav-links, .join-nav-link) {
  font-weight: 600;
}
html:is(:lang(uk), :lang(ru)) :is(.btn, .join-button, .nav-links a.active) {
  font-weight: 700;
}
:is(html:lang(uk), html:lang(ru)) .display {
  letter-spacing: -0.025em;
  line-height: 1.1;
}
/* Keep the employment details as legible as the rest of the body copy. */
.service-card p, .car-value p, .bp-fit p, .bp-step p,
.hm-flip-step p, .hm-model p, .hm-eng-card p {
  font-size: 1rem;
  line-height: 1.6;
}
.bp-form-head .bp-form-live {
  text-transform: none;
  letter-spacing: 0.015em;
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .cap-block > *, .elec-method-grid > *, .hw-claims-grid > *,
  .stats-bar > *, .split > * { min-width: 0; }
  .cap-block, .elec-method-grid, .hw-claims-grid { overflow-wrap: anywhere; }
  .stats-bar .num { overflow-wrap: anywhere; }
  .cta-dock .cta-dock-proof { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .cta-dock .btn { flex: 0 0 auto; }
  .hm-engine[style*="repeat(3"] { grid-template-columns: minmax(0, 1fr) !important; }
  .bp-hero .hero-phone { width: clamp(116px, 38vw, 200px); }
  :is(h1,h2,h3,h4,summary) { overflow-wrap: anywhere; }
}
@media (max-width: 370px) {
  :is(html:lang(uk),html:lang(ru)) .stats-bar .num { font-size: 25px; }
  :is(html:lang(uk),html:lang(ru)) .display { hyphens: auto; }
}
