/* Shared layout of the public EXT site, rendered in HTML before page scripts run. */
html { scrollbar-gutter: stable; }
html[lang="ru"] [data-site-copy] > [lang="en"],
html:not([lang="ru"]) [data-site-copy] > [lang="ru"] { display: none; }

.ext-site-nav {
  min-height: 69px; height: auto; box-sizing: border-box; position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 12, .82); border-bottom: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: 600 13px/1.45 system-ui, sans-serif;
}
.ext-site-nav--fixed { position: fixed; inset: 0 0 auto; }
.ext-site-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.ext-site-logo { color: #F1F2F6; font: 800 18px/1.45 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; }
.ext-site-logo b { color: #FF4D00; }
.ext-site-brand-sub { color: #81838E; font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ext-site-links, .ext-site-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ext-site-links > a { display: block; color: #9A9CAA; text-align: center; padding: 8px; border-radius: 999px; text-decoration: none; }
.ext-site-links > a:hover, .ext-site-links > a[aria-current="page"] { color: #F1F2F6; }
.ext-site-links > a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
.ext-site-links > [data-site-profile] { box-sizing: border-box; width: 100px; overflow: hidden; text-overflow: ellipsis; }
.ext-site-language { display: flex; gap: 2px; padding: 3px; background: #131318; border: 1px solid rgba(255, 255, 255, .07); border-radius: 999px; }
.ext-site-language > button { color: #9A9CAA; background: transparent; border: 0; border-radius: 999px; padding: 5px 8px; font: 700 12px/1.45 system-ui, sans-serif; cursor: pointer; }
html[lang="ru"] .ext-site-language > [data-site-lang="ru"],
html:not([lang="ru"]) .ext-site-language > [data-site-lang="en"] { background: #FF4D00; color: #0A0A0C; }
.ext-site-install { color: #0A0A0C; background: #FF4D00; border-radius: 999px; padding: 9px 14px; text-decoration: none; font-weight: 750; }
.ext-site-install:hover { background: #FF6A00; }
.ext-site-nav :is(a, button):focus-visible { outline: 2px solid #FF6A00; outline-offset: 2px; }

.ext-site-footer {
  margin-top: auto; padding: 48px clamp(16px, 4vw, 48px); position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .07); text-align: center;
}
.ext-site-footer .ext-site-logo { display: inline-block; margin-bottom: 14px; font-size: 16px; }
.ext-site-footer p { margin: 0 auto 6px; max-width: 70ch; color: #9A9CAA; font-size: 13px; }
.ext-site-footer p.small { font-size: 12px; color: #81838E; }
.ext-site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 20px 0 0; font-size: 13px; }
.ext-site-footer .links a { color: #9A9CAA; text-decoration: none; }
.ext-site-footer .links a:hover { color: #FF6A00; }

@media (max-width: 850px) {
  .ext-site-brand-sub { display: none; }
  .ext-site-nav { gap: 8px; }
}
@media (max-width: 630px) {
  .ext-site-nav { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; padding-block: 7px; }
  .ext-site-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 2px; }
  .ext-site-links > a { padding: 5px 7px; font-size: 12px; }
  .ext-site-links > [data-site-profile] { width: 86px; }
  .ext-site-footer .links { gap: 10px 16px; }
}
