/* Shared site header contract for publisher-owned blog HTML. */
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos/golos-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos/golos-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --desktop-type-offset: 0px;
  --midnight: #0b3558;
  --blue: #006bff;
  --white: #fff;
  --ink: #0a0a0a;
  --container: 1200px;
  --font-body: "Golos Text", Arial, sans-serif;
}

.desktop-navbar-region {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.desktop-site-header {
  position: relative;
  top: 0;
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.desktop-navbar-shell {
  position: relative;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 30px;
  width: 100vw;
  min-height: 64px;
  margin: 0 auto;
  padding: 6px max(24px, calc((100vw - var(--container)) / 2));
  overflow: visible;
  border: 0;
  background: none;
  pointer-events: auto;
  transition: top 260ms ease, width 260ms ease, padding 260ms ease;
}

.desktop-navbar-surface {
  --navbar-compact-bg-opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 260ms ease, border-radius 260ms ease, box-shadow 260ms ease;
}

.desktop-navbar-surface::before,
.desktop-navbar-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.desktop-navbar-surface::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 10% 0%, rgba(128, 211, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.72), transparent 30%);
}

.desktop-navbar-surface::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 255, 0.82)),
    radial-gradient(circle at 12% 0%, rgba(112, 204, 255, 0.2), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.88), transparent 34%);
  opacity: var(--navbar-compact-bg-opacity);
  transition: opacity 220ms ease;
}

.desktop-navbar-region.is-compact .desktop-navbar-surface::before {
  display: none;
}

.desktop-navbar-region.is-compact .desktop-site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.desktop-navbar-shell > :not(.desktop-navbar-surface) { position: relative; z-index: 1; }

.desktop-navbar-region.is-compact .desktop-navbar-shell {
  top: 20px;
  width: min(max(calc(100vw - 48px), 320px), 1100px);
  padding-right: 8px;
  padding-left: 16px;
}

.desktop-navbar-region.is-compact .desktop-navbar-surface {
  --navbar-compact-bg-opacity: 1;
  border: 1px solid rgba(212, 224, 237, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(34, 42, 53, 0.06), 0 1px 1px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(34, 42, 53, 0.04), 0 18px 58px rgba(47, 48, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(11, 53, 88, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: calc(25px + var(--desktop-type-offset));
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand-logo { display: block; width: 35px; height: 35px; object-fit: contain; }
.brand-logo--horizontal { width: clamp(146px, 12vw, 170px); height: auto; aspect-ratio: 834 / 174; }
.desktop-site-header .brand { z-index: 2; margin-right: 16px; padding: 4px 8px 4px 0; font-size: calc(22px + var(--desktop-type-offset)); }
.desktop-site-header .brand-logo { width: clamp(146px, 11vw, 166px); height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--midnight);
  font-family: var(--font-body);
  font-size: calc(14px + var(--desktop-type-offset));
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
}

.site-nav a { position: relative; overflow: hidden; border-radius: 999px; padding: 10px 16px; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.site-nav a::after { position: absolute; right: 16px; bottom: 7px; left: 16px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #7c3aed); content: ""; opacity: 0; transform: scaleX(.35); transform-origin: left; transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.site-nav a:hover { color: var(--ink); background: rgba(11, 53, 88, 0.06); }
.site-nav a:hover::after { opacity: .72; transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; color: var(--midnight); font-family: var(--font-body); font-size: calc(14px + var(--desktop-type-offset)); font-weight: 700; }
.header-cta { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; color: var(--white); background: #050505; box-shadow: 0 0 24px rgba(34,42,53,.06), 0 1px 1px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.2); text-decoration: none; white-space: nowrap; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.header-cta:hover { color: var(--white); background: var(--blue); transform: translateY(-1px); }

.amobit-nav-dropdown { position: relative; display: flex; align-self: stretch; align-items: center; }
.amobit-nav-dropdown__trigger { display: inline-flex; align-items: center; gap: .35rem; padding: .75rem .2rem; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.amobit-nav-dropdown__chevron { display: block; flex: 0 0 auto; transition: transform 180ms ease; }
.amobit-nav-dropdown.is-open .amobit-nav-dropdown__chevron,
.amobit-nav-dropdown:focus-within .amobit-nav-dropdown__chevron { transform: rotate(180deg); }
.amobit-nav-dropdown__menu { position: absolute; z-index: 250; top: calc(100% + .55rem); left: 50%; display: grid; width: max-content; min-width: 13.5rem; padding: .55rem; border: 1px solid rgba(16,70,160,.15); border-radius: 1rem; background: rgba(255,255,255,.98); box-shadow: 0 18px 48px rgba(17,51,112,.18); opacity: 0; transform: translate(-50%,-.45rem); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; visibility: hidden; }
.amobit-nav-dropdown:hover .amobit-nav-dropdown__menu,
.amobit-nav-dropdown:focus-within .amobit-nav-dropdown__menu,
.amobit-nav-dropdown.is-open .amobit-nav-dropdown__menu { opacity: 1; transform: translate(-50%,0); visibility: visible; }
.amobit-nav-dropdown__menu a { border-radius: .7rem; color: #0f3158; padding: .72rem .85rem; white-space: nowrap; }
.amobit-nav-dropdown__menu a:hover,
.amobit-nav-dropdown__menu a:focus-visible { color: #0f5bea; background: #edf4ff; outline: none; }

.amobit-static-mobile-header { display: none; }
.blog-index, .blog-article { padding-top: 136px; }

@media (min-width: 768px) { :root { --desktop-type-offset: -2px; } }

@media (max-width: 1040px) {
  .desktop-navbar-region { display: none; }
  .amobit-static-mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 70;
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - var(--container)) / 2));
    border-bottom: 1px solid rgba(255,255,255,.46);
    background:
      linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,.28)),
      radial-gradient(circle at 10% 0%,rgba(128,211,255,.24),transparent 34%),
      radial-gradient(circle at 88% 12%,rgba(255,255,255,.72),transparent 30%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82),0 18px 46px rgba(12,65,115,.08);
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    pointer-events: none;
  }
  .amobit-static-mobile-header > .sm-logo { position: relative; z-index: 30; pointer-events: auto; }
  .amobit-static-mobile-header .sm-logo-img { display: block; width: clamp(146px,39vw,164px); height: auto; aspect-ratio: 834 / 174; object-fit: contain; }
  .amobit-static-mobile-header .amobit-static-mobile {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    pointer-events: none;
  }
  .amobit-static-mobile > summary.sm-toggle {
    position: fixed;
    top: 0;
    right: max(24px, calc((100vw - var(--container)) / 2));
    z-index: 40;
    display: inline-flex;
    min-height: 64px;
    align-items: center;
    gap: .3rem;
    padding: 0;
    border: 0;
    color: var(--midnight);
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    pointer-events: auto;
  }
  .amobit-static-mobile > summary.sm-toggle::-webkit-details-marker { display: none; }
  .amobit-static-mobile > summary.sm-toggle::marker { content: ""; }
  .amobit-static-mobile > summary.sm-toggle:focus-visible { border-radius: 4px; outline: 2px solid rgba(0,86,214,.45); outline-offset: 4px; }
  .amobit-static-mobile .sm-toggle-textWrap { position: relative; display: inline-block; height: 1em; overflow: hidden; white-space: nowrap; }
  .amobit-static-mobile .sm-toggle-textInner { display: flex; flex-direction: column; line-height: 1; transform: translateY(0); transition: transform .8s cubic-bezier(.16,1,.3,1); }
  .amobit-static-mobile .sm-toggle-line { display: block; height: 1em; line-height: 1; }
  .amobit-static-mobile .sm-icon { position: relative; display: inline-flex; width: 14px; height: 14px; flex: 0 0 14px; align-items: center; justify-content: center; transform: rotate(0); transition: transform .8s cubic-bezier(.16,1,.3,1); }
  .amobit-static-mobile .sm-icon-line { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%,-50%); }
  .amobit-static-mobile .sm-icon-line::after { content: none; }
  .amobit-static-mobile .sm-icon-line-v { transform: translate(-50%,-50%) rotate(90deg); }
  .amobit-static-mobile.is-open .sm-toggle-textInner { transform: translateY(-50%); }
  .amobit-static-mobile.is-open .sm-icon { transform: rotate(225deg); }
  .amobit-static-mobile .sm-prelayers,
  .amobit-static-mobile .staggered-menu-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
  }
  .amobit-static-mobile .sm-prelayers { z-index: 5; opacity: 1; pointer-events: none; }
  .amobit-static-mobile .sm-prelayer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; transform: translateX(100%); transition: transform .5s cubic-bezier(.16,1,.3,1); }
  .amobit-static-mobile .sm-prelayer:nth-child(2) { transition-delay: .07s; }
  .amobit-static-mobile .staggered-menu-panel {
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: calc(84px + env(safe-area-inset-top,0px)) 24px calc(2em + env(safe-area-inset-bottom,0px) + 96px);
    overflow-y: auto;
    background: #fff;
    opacity: 1;
    transform: translateX(100%);
    transition: transform .65s cubic-bezier(.16,1,.3,1);
    transition-delay: .15s;
    pointer-events: auto;
  }
  .amobit-static-mobile .staggered-menu-panel[aria-hidden="true"] { pointer-events: none; }
  .amobit-static-mobile.is-open .sm-prelayer,
  .amobit-static-mobile[open]:not(.is-enhanced) .sm-prelayer { transform: translateX(0); }
  .amobit-static-mobile.is-open .staggered-menu-panel,
  .amobit-static-mobile[open]:not(.is-enhanced) .staggered-menu-panel { transform: translateX(0); }
  .amobit-static-mobile.is-closing .sm-prelayer,
  .amobit-static-mobile.is-closing .staggered-menu-panel { transition-duration: .32s; transition-delay: 0s; transition-timing-function: cubic-bezier(.7,0,.84,0); }
  .amobit-static-mobile .sm-panel-inner { display: flex; flex: 1; flex-direction: column; gap: 1rem; }
  .amobit-static-mobile .sm-panel-list,
  .amobit-static-mobile .sm-panel-submenu { margin: 0; padding: 0; list-style: none; }
  .amobit-static-mobile .sm-panel-list { counter-reset: smItem; display: flex; flex-direction: column; gap: .25rem; }
  .amobit-static-mobile .sm-panel-itemWrap { position: relative; overflow: visible; line-height: 1; }
  .amobit-static-mobile .sm-panel-item,
  .amobit-static-mobile .sm-panel-submenu-details > summary.sm-panel-item {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    align-items: center;
    padding: 0 44px 0 0;
    color: #000;
    background: transparent;
    font-family: var(--font-body);
    font-size: clamp(2rem,9vw,2.4rem);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: .94;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
  }
  .amobit-static-mobile .sm-panel-submenu-details > summary.sm-panel-item::-webkit-details-marker { display: none; }
  .amobit-static-mobile .sm-panel-submenu-details > summary.sm-panel-item::marker { content: ""; }
  .amobit-static-mobile .sm-panel-itemLabel { display: inline-block; max-width: 100%; white-space: nowrap; transform: translateY(140%) rotate(10deg); transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.16,1,.3,1); transition-delay: calc(.25s + var(--sm-item-index) * .1s); }
  .amobit-static-mobile.is-open .sm-panel-itemLabel,
  .amobit-static-mobile[open]:not(.is-enhanced) .sm-panel-itemLabel { transform: translateY(0) rotate(0); }
  .amobit-static-mobile .sm-panel-list[data-numbering] .sm-panel-item::after { counter-increment: smItem; content: counter(smItem,decimal-leading-zero); position: absolute; top: 50%; right: 2px; color: var(--blue); font-size: 13px; font-weight: 400; letter-spacing: 0; opacity: 0; transform: translateY(-50%); transition: opacity .6s ease; transition-delay: calc(.35s + var(--sm-item-index) * .08s); pointer-events: none; }
  .amobit-static-mobile.is-open .sm-panel-list[data-numbering] .sm-panel-item::after,
  .amobit-static-mobile[open]:not(.is-enhanced) .sm-panel-list[data-numbering] .sm-panel-item::after { opacity: 1; }
  .amobit-static-mobile .sm-panel-itemChevron { position: absolute; top: 50%; right: 30px; width: 13px; height: 13px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-68%) rotate(45deg); transition: transform .22s ease; pointer-events: none; }
  .amobit-static-mobile .sm-panel-submenu-details[open] .sm-panel-itemChevron { transform: translateY(-30%) rotate(225deg); }
  .amobit-static-mobile .sm-panel-submenu { display: grid; gap: 8px; margin: 0 0 8px; padding-left: 3px; }
  .amobit-static-mobile .sm-panel-submenu-link { display: inline-flex; min-height: 40px; align-items: center; color: var(--midnight); font-size: 18px; font-weight: 650; line-height: 1.25; text-decoration: none; }
  .blog-index, .blog-article { padding-top: 48px; }
}

@media (max-width: 680px) {
  .amobit-static-mobile-header { min-height: 64px; padding: 0 24px; border-bottom-color: rgba(179,199,224,.58); background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(15,23,42,.055); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .amobit-static-mobile-header > .sm-logo .sm-logo-img { width: clamp(146px,39vw,164px); }
  .amobit-static-mobile > summary.sm-toggle { right: 24px; min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-navbar-shell, .desktop-navbar-surface, .desktop-navbar-surface::after,
  .amobit-static-mobile .sm-toggle-textInner, .amobit-static-mobile .sm-icon,
  .amobit-static-mobile .sm-prelayer, .amobit-static-mobile .staggered-menu-panel,
  .amobit-static-mobile .sm-panel-itemLabel { transition: none; }
}
