/* Shared guardrails, not a new visual direction. Existing responsive type
   sizes, colours, section spacing and the hand composition remain in place. */
:root {
  --font-body: Bricolage, Arial, sans-serif;
  --font-heading: Fraunces, Georgia, serif;
  --font-accent: Instrument, Georgia, serif;
  --control-size: 44px;
  --text-leading: 1.5;
}
html[lang=ru] {
  --font-body: Onest, Arial, sans-serif;
  --font-heading: LabLora, Georgia, serif;
  --font-accent: LabLora, Georgia, serif;
}
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scrollbar-gutter:stable; }
body { font-family:var(--font-body); overflow-wrap:break-word; }
button,input,textarea,select { font-family:inherit; }
.header nav a, .underlink, .product-cta, .language-switch a, .dialog-close {
  min-height:var(--control-size);
}
.header nav a { display:inline-flex; align-items:center; }
.menu { min-width:var(--control-size); }
.hero-actions > *, .request-copy, .product, .partner-card, .form-row > * { min-width:0; }
.button, .header-cta, .product-cta { white-space:normal; }
dialog { overscroll-behavior:contain; }
dialog h2 { padding-right:20px; }
dialog > .eyebrow { padding-right:30px; }
dialog :is(input,textarea,select) { font-size:16px; }
dialog label, dialog legend { font-size:13px; line-height:var(--text-leading); }
dialog .form-note { font-size:12px; }
/* A long company name must wrap inside its column, including published CMS entries. */
.partner-card-name, .partner-name strong { overflow-wrap:anywhere; }
/* Published company names keep the same typography as the initial wordmark. */
html:not([lang=ru]) .partner-card-name {
  font-family:var(--font-body); font-weight:750;
  font-variation-settings:normal; letter-spacing:normal;
}
@media(max-width:700px) {
  html[lang=ru] .hero-description { font-size:15px; }
  .header { padding-left:max(var(--pad), env(safe-area-inset-left)); padding-right:max(var(--pad), env(safe-area-inset-right)); }
  .mobile-contact { right:max(16px, env(safe-area-inset-right)); }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
}
