.language-switch {
  --language-line: #8c78aa;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  min-width: 2.45rem;
  min-height: 2.35rem;
  padding: .25rem .48rem;
  border: 1px solid var(--language-line);
  border-radius: .45rem;
  color: inherit;
  font: 720 .72rem/1.15 Inter, system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
}
.language-switch:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.language-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home-header-actions { display:flex; align-items:center; justify-self:end; gap:.65rem; }
.home-header-actions .button-top { white-space:nowrap; }
.doc-header .language-switch { --language-line:#c2c8db; }
html[lang=ru] :is(.doc-hero h1,.infrastructure-page .hero h1) { letter-spacing:-.045em; }
html[lang=ru] .infrastructure-page .hero h1 { max-width:16ch; font-size:clamp(2.5rem,4.45vw,4.25rem); }
html[lang=ru] .main-nav { gap:clamp(.68rem,2.5vw,2.3rem); }
html[lang=ru] .doc-hero h1 { font-size:clamp(2rem,5.1vw,4.1rem); overflow-wrap:anywhere; }
html[lang=ru] .doc-header-links { gap:clamp(.45rem,1.4vw,1.3rem); }
html[lang=ru] .code-lines { font-variant-ligatures:none; }
@media(max-width:900px) { .public-header .header-layout { gap:.6rem; } }
@media(max-width:780px) {
  .doc-header .doc-header-links > a.language-switch { display:inline-flex; }
  .doc-header .language-switch { min-width:2rem; min-height:2rem; }
  html[lang=ru] .doc-header .doc-label { display:none; }
}
@media(max-width:640px) {
  .home-header-actions { gap:.45rem; justify-self:end; grid-column:2 / -1; }
  html[lang=ru] .infrastructure-page .hero h1 { max-width:17ch; font-size:clamp(2.35rem,7.5vw,3.7rem); }
}
@media(max-width:380px) {
  .language-switch { min-width:2.1rem; min-height:2.1rem; }
  .doc-header-links .doc-workspace { padding-inline:.38rem; }
}

html[lang=ru] .workbench-nav { gap:.2rem; }
html[lang=ru] .workbench-nav a { padding-inline:.48rem; }
html[lang=ru] .auth-intro h1 { letter-spacing:-.035em; }
@media(max-width:1100px) { html[lang=ru] .workbench-profile .env-pill { display:none; } }
@media(max-width:420px) { .public-header .header-actions { gap:.4rem; } .public-header .header-actions .public-button { padding-inline:.46rem; } }
@media (641px <= width <= 840px) {
  .infrastructure-page .topbar { grid-template-columns:1fr auto; gap:.6rem; }
  .infrastructure-page .home-header-actions { grid-column:2; }
  .infrastructure-page .nav-toggle { display:grid; place-items:center; width:2.5rem; height:2.5rem; border:1px solid var(--border); border-radius:.45rem; color:var(--text); background:#201a2a; }
  .infrastructure-page .main-nav { display:none; position:absolute; inset:calc(100% + .4rem) 0 auto; padding:.35rem; background:#201a2b; border:1px solid #8e70b6; border-radius:.55rem; box-shadow:0 8px 24px #08051196; }
  .infrastructure-page .main-nav.is-open { display:grid; gap:0; }
  .infrastructure-page .main-nav a { padding:.62rem .75rem; border-radius:.25rem; }
  .infrastructure-page .main-nav a:hover { background:#37274b; }
}
html[lang=ru] .doc-footer nav { flex-wrap:wrap; gap:.5rem .85rem; }
html[lang=ru] .doc-table :is(td,th) { overflow-wrap:anywhere; }
html[lang=ru] .home-header-actions .button-top { min-width:0; }
html[lang=ru] .hero h1 { overflow-wrap:anywhere; }
@media(max-width:475px) {
  html[lang=ru] .expense-table { table-layout:fixed; }
  html[lang=ru] .expense-table :is(td,th) { white-space:normal; overflow-wrap:anywhere; }
  html[lang=ru] .expense-table :is(td,th):last-child { width:23%; }
  html[lang=ru] .expense-table tbody th span { display:block; }
  html[lang=ru] .expense-table tbody th .icon { margin-right:.24rem; vertical-align:-.12em; }
}
html[lang=ru] .infrastructure-page :is(.capacity-card,.settlement-card,.resource-card,.policy-summary,.receipt,.developer-heading) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .expense-table :is(th,td) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .receipt-state { white-space:normal; }
@media(min-width:641px) {
  html[lang=ru] .infrastructure-page .developer-heading { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:1.1rem; }
  html[lang=ru] .infrastructure-page .developer-heading p { padding-inline-start:1.1rem; }
}
@media (761px <= width <= 880px) {
  html[lang=ru] .workbench-top { gap:.55rem; }
  html[lang=ru] .workbench-brand { padding-inline-end:.55rem; }
  html[lang=ru] .workbench-nav a { padding-inline:.36rem; font-size:.8rem; }
}
@media(max-width:390px) {
  html[lang=ru] .paid-header { flex-wrap:wrap; }
  html[lang=ru] .paid-balance { text-align:start; }
}
