/* Сквозная шапка — копия .site-header из scenario-front/src/style.css, изолированная для старой страницы */
.site-header {
  --blue: #2f4df1; --blue-light: #6980ff; --ink: #050b2d;
  position: fixed; z-index: 100; top: 15px; left: 50%; transform: translate(-50%, 0);
  width: min(1340px, calc(100% - 40px)); height: 45px; padding: 5px 5px 5px 15px;
  background: #fff; border: 1px solid rgba(47, 77, 241, .4); border-radius: 50px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); font-family: Inter, "Inter Fallback", Arial, sans-serif; line-height: normal;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, background .3s;
}
.site-header, .site-header * { box-sizing: border-box; }
.site-header a { color: inherit; text-decoration: none; }
.site-header img { display: block; max-width: 100%; }
.site-header button { font: inherit; }
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(5, 11, 45, .13); }
.site-header .brand img { width: 112px; height: 20px; }
.site-header .brand-mobile, .site-header .mobile-nav-label { display: none; }
.site-header .main-nav { display: flex; flex: none; gap: 25px; margin-left: auto; margin-right: 32px; white-space: nowrap; }
.site-header .main-nav a, .site-header .phone { font-size: 14px; font-weight: 500; letter-spacing: -.04em; transition: color .2s ease, opacity .2s ease; }
.site-header .main-nav a:hover, .site-header .phone:hover { color: var(--blue); }
.site-header .main-nav .is-active { color: var(--blue); border-bottom: 1px solid currentColor; }
.site-header .header-actions { display: flex; flex: none; gap: 5px; align-items: center; white-space: nowrap; }
.site-header .header-actions .phone { margin-right: 20px; }
.site-header .button { height: 35px; border-radius: 100px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; }
.site-header .button:active { opacity: .72; }
.site-header .button-blue { color: #fff; background: var(--blue); }
.site-header .button-outline { color: var(--blue); border-color: var(--blue); background: #fff; }
.site-header .button-blue:hover { background: var(--blue-light); }
.site-header .button-outline:hover { color: #fff; background: var(--blue); }
.site-header .button:focus-visible, .site-header a:focus-visible, .site-header .menu-button:focus-visible { outline: 3px solid rgba(105, 128, 255, .5); outline-offset: 2px; }
.site-header .small.button-blue { width: 200px; }
.site-header .small.button-outline { min-width: 75px; }
.site-header .menu-button { display: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.site-header .menu-button span { width: 16px; height: 1px; background: #fff; }
.site-header .menu-button img { display: none; width: 26px; height: 22px; max-width: none; }

@media (max-width: 1000px) {
  .site-header { width: calc(100% - 24px); top: 8px; }
  .site-header .main-nav, .site-header .header-actions { display: none; }
  .site-header .menu-button { display: flex; }

  body.mobile-menu-visible { overflow: hidden; }
  .mobile-menu-visible::before { content: ""; position: fixed; z-index: 99; inset: 0; background: rgba(0, 0, 0, .2); }
  .site-header { top: 0; left: 0; width: 100%; height: 42px; padding: 10px 20px; border: 0; border-radius: 0; transform: none; box-shadow: none !important; transition: height .28s cubic-bezier(.22, 1, .36, 1), transform .35s cubic-bezier(.22, 1, .36, 1); }
  .site-header.is-hidden { transform: translateY(-100%); }
  .site-header.menu-open, .site-header.menu-open.is-hidden { height: 348px; max-height: 100dvh; overflow-y: auto; transform: none; }
  .site-header .brand { position: absolute; left: 20px; top: 14px; display: block; width: 80px; height: 14px; }
  .site-header .brand-desktop { display: none !important; }
  .site-header .brand .brand-mobile { display: block; width: 78.8605px; height: 12.8488px; margin: .703px 0 0 .712px; max-width: none; }
  .site-header .menu-button { position: absolute; right: 20px; top: 10px; width: 26px; height: 22px; border-radius: 0; background: transparent; gap: 0; }
  .site-header .menu-button span { position: absolute; left: 1px; width: 24px; height: 2px; background: var(--ink); }
  .site-header .menu-button span:nth-child(1) { top: 2px; }
  .site-header .menu-button span:nth-child(2) { top: 10px; }
  .site-header .menu-button span:nth-child(3) { top: 18px; }
  .site-header .menu-button img { display: none; }
  .site-header.menu-open .menu-button span { display: none; }
  .site-header.menu-open .menu-button img { display: block; }
  .site-header.menu-open .main-nav { position: absolute; left: 20px; top: 56px; width: calc(100% - 40px); margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--ink); }
  .site-header.menu-open .mobile-nav-label { display: block; color: rgba(0, 0, 0, .65); font-size: 14px; line-height: 24px; font-weight: 400; letter-spacing: -.04em; }
  .site-header.menu-open .main-nav a { width: auto; font-size: 14px; line-height: 24px; font-weight: 400; letter-spacing: -.04em; border: 0; }
  .site-header.menu-open .main-nav .is-active { color: inherit; font-weight: 600; }
  .site-header.menu-open .header-actions { position: absolute; left: 0; top: 172px; width: 100%; padding: 0 20px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .site-header.menu-open .header-actions .phone { margin: 0 0 18px; font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: -.08em; }
  .site-header.menu-open .header-actions .button { width: 100%; height: 45px; flex: none; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
