:root {
  --app-header-height: 86px;
  --app-header-gutter: clamp(24px, 4vw, 68px);
}

html.hsdt-app-menu-open { overflow: hidden; }

.hsdt-app-header {
  --app-blue: #2457ff;
  --app-lime: #c9ff42;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  padding: 10px var(--app-header-gutter);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(17, 21, 31, .06);
  color: #11151f;
  font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hsdt-page > .hsdt-app-header,
.showcase-page .hsdt-app-header { position: fixed; inset: 0 0 auto; }
.hsdt-app-header.is-scrolled { box-shadow: 0 8px 28px rgba(24, 39, 79, .07); }
.hsdt-app-header *, .hsdt-app-header *::before, .hsdt-app-header *::after { box-sizing: border-box; }

.hsdt-app-header .hsdt-app-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 236px;
  text-decoration: none;
}
.hsdt-app-header .hsdt-app-brand img { display: block; width: 100%; height: 44px; object-fit: contain; object-position: left center; }
.hsdt-app-signal { display: flex; align-items: center; gap: 10px; max-width: 210px; margin-right: auto; color: #566171; font-size: .75rem; line-height: 1.4; }
.hsdt-app-signal i { width: 6px; height: 6px; flex: 0 0 auto; background: #2457ff; border-radius: 50%; }

.hsdt-app-nav { display: flex; align-items: center; gap: clamp(12px, 1.1vw, 20px); margin-left: auto; }
.hsdt-app-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; color: #28303d; font-size: .875rem; font-weight: 650; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.hsdt-app-nav a > span { display: none; }
.hsdt-app-nav a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; background: #2457ff; content: ""; transform: scaleX(0); transition: transform .2s ease; }
.hsdt-app-nav a:hover, .hsdt-app-nav a.is-current { color: #2457ff; }
.hsdt-app-nav a:hover::after, .hsdt-app-nav a.is-current::after { transform: scaleX(1); }
.hsdt-app-nav a.hsdt-app-nav-lab { min-height: 42px; padding: 10px 14px; border-radius: 8px; background: #2457ff; color: #fff; }
.hsdt-app-nav a.hsdt-app-nav-lab::after { display: none; }
.hsdt-app-nav a.hsdt-app-nav-lab:hover { background: #153bc6; }
.hsdt-app-nav a.hsdt-app-nav-lab.is-ai { background: #c9ff42; color: #11151f; }
.hsdt-app-nav a.hsdt-app-nav-lab.is-ai:hover { background: #baf22c; }
.hsdt-app-nav a.hsdt-app-nav-lab.is-current { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2457ff; }

.hsdt-app-header .hsdt-app-menu { position: relative; z-index: 3; display: none; flex: 0 0 auto; width: 44px; height: 44px; padding: 12px 10px; border: 0; border-radius: 8px; background: #2457ff; color: #fff; cursor: pointer; }
.hsdt-app-menu span { display: block; height: 2px; margin: 4px 0; background: currentColor; transition: transform .2s ease; }
.hsdt-app-menu.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
.hsdt-app-menu.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); }
.hsdt-app-header .hsdt-app-help { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid #d5dfff; border-radius: 8px; background: #f4f6ff; color: #2457ff; cursor: pointer; }
.hsdt-app-help > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hsdt-app-help kbd { font: 600 .875rem ui-monospace, monospace; }
.hsdt-app-header :focus-visible { outline: 3px solid #153bc6; outline-offset: 4px; }

.hsdt-app-backdrop { position: fixed; inset: 0; z-index: 99; width: 100%; height: 100dvh; border: 0; background: rgba(17, 21, 31, .32); }
.hsdt-app-backdrop[hidden] { display: none; }
.site-skip-link { position: fixed; z-index: 200; top: 12px; left: 16px; padding: 12px 18px; transform: translateY(-160%); border-radius: 8px; background: #fff; color: #153bc6 !important; box-shadow: 0 2px 16px #1113; font-size: 1rem; }
.site-skip-link:focus { transform: none; }

@media (max-width: 1320px) { .hsdt-app-signal { display: none; } }
@media (max-width: 1120px) {
  :root { --app-header-height: 74px; --app-header-gutter: 28px; }
  .hsdt-app-header { justify-content: space-between; }
  .hsdt-app-header .hsdt-app-brand { width: 202px; }
  .hsdt-app-header .hsdt-app-brand img { height: 38px; }
  .hsdt-app-header .hsdt-app-menu { display: block; }
  .hsdt-app-nav {
    position: fixed;
    z-index: 1;
    inset: var(--app-header-height) 0 auto auto;
    width: min(100%, 430px);
    max-height: calc(100dvh - var(--app-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 20px var(--app-header-gutter) 28px;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: #fff;
    border-top: 1px solid #e8edf6;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .hsdt-app-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; box-shadow: 0 20px 36px rgba(17, 21, 31, .12); }
  .hsdt-app-nav a { justify-content: space-between; min-height: 48px; padding: 12px; border-radius: 8px; font-size: 1rem; white-space: normal; }
  .hsdt-app-nav a > span { display: inline; order: 2; color: #667282; font: 500 .75rem ui-monospace, monospace; }
  .hsdt-app-nav a::after { display: none; }
  .hsdt-app-nav a:hover, .hsdt-app-nav a.is-current { background: #edf2ff; }
  .hsdt-app-nav a.hsdt-app-nav-lab { min-height: 48px; margin: 4px 0 0; }
  .hsdt-app-nav a.hsdt-app-nav-lab > span { color: #fff; }
  .hsdt-app-nav a.hsdt-app-nav-lab.is-ai > span { color: #11151f; }
  .hsdt-app-nav a.hsdt-app-nav-lab.is-current { box-shadow: inset 0 0 0 2px #11151f; }
  .hsdt-app-nav a.hsdt-app-nav-lab.is-current { background: #2457ff; color: #fff; }
  .hsdt-app-nav a.hsdt-app-nav-lab.is-ai.is-current { background: #c9ff42; color: #11151f; }
  .hsdt-app-header .hsdt-app-help { width: 100%; min-height: 48px; display: flex; justify-content: space-between; padding: 12px; }
  .hsdt-app-help > span { position: static; display: inline; width: auto; height: auto; clip-path: none; font-size: .875rem; }
}
@media (max-width: 620px) {
  :root { --app-header-height: 66px; --app-header-gutter: 16px; }
  .hsdt-app-header .hsdt-app-brand { width: 170px; }
  .hsdt-app-header .hsdt-app-brand img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hsdt-app-header *, .hsdt-app-header *::after { transition: none; } }

/* Russian vector identity: full descriptor at readable size, short mark on mobile. */
:root { --app-header-height: 90px; }
.hsdt-app-header .hsdt-app-brand picture { display:block; width:100%; }
.hsdt-app-header .hsdt-app-brand-ict { width:240px; }
.hsdt-app-header .hsdt-app-brand-ict img { height:68px; }
@media (max-width:1120px) {
  :root { --app-header-height:74px; }
  .hsdt-app-header .hsdt-app-brand-ict { width:112px; }
  .hsdt-app-header .hsdt-app-brand-ict img { height:52px; }
}
@media (max-width:640px) {
  :root { --app-header-height:68px; }
  .hsdt-app-header .hsdt-app-brand-ict { width:104px; }
  .hsdt-app-header .hsdt-app-brand-ict img { height:48px; }
}
