.b-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-surface);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.b-header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; min-height: 70px; max-width: var(--content-w);
  margin: 0 auto;
}
.b-header__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-navy-900);
}
.b-header__logo { width: 44px; height: 44px; flex-shrink: 0; }
.b-header__name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1.25; color: var(--color-navy-900);
}
.b-header__nav {
  display: flex; align-items: center; gap: 18px;
  margin-left: auto; flex-wrap: wrap;
}
.b-header__item {
  position: relative; color: var(--color-text);
  font-size: 14px; padding: 8px 4px;
  transition: color var(--transition); text-decoration: none;
}
.b-header__item:hover { color: var(--c-azure); }
.b-header__item.is-active { color: var(--color-navy-900); font-weight: 600; }
.b-header__item.is-active::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 0;
  height: 2px; background: var(--color-navy-900);
}
/* eBooks как пилюля (особый паттерн прототипа B) */
.b-header__item[data-key="ebooks"] {
  padding: 7px 14px;
  border: 1.5px solid var(--color-navy-900);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.b-header__item[data-key="ebooks"]::after { display: none; }
.b-header__item[data-key="ebooks"]::before {
  content: ''; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1E3D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19V5a1 1 0 0 1 1-1h6v17H5a1 1 0 0 1-1-1z'/><path d='M11 4h7a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-7'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.b-header__lang {
  display: flex; align-items: center; gap: 6px;
  color: var(--color-text); cursor: pointer; padding: 8px 0;
}
.b-header__lang .icon { width: 16px; height: 16px; stroke: currentColor; }
.b-header__burger { display: none; color: var(--color-navy-900); }

@media (max-width: 1023px) {
  .b-header__nav { gap: 12px; }
  .b-header__item { font-size: 13px; }
}
@media (max-width: 768px) {
  .b-header__name { display: none; }
  .b-header__nav { display: none; }
  .b-header__lang { margin-left: auto; }
  .b-header__burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 32px; height: 32px; align-items: center; justify-content: center;
  }
  .b-header__burger span { display: block; width: 22px; height: 2px; background: currentColor; }
  .b-header.is-open .b-header__nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: 16px 24px; gap: 8px;
  }
}
