.yb-header {
  position: relative;
  z-index: 40;
  color: var(--yb-header-fg);
  background: var(--yb-header-bg);
  font-family: Inter, Arial, sans-serif;
}

.yb-header a { color: inherit; text-decoration: none; }
.yb-header__utility { border-bottom: 1px solid rgba(255,255,255,.16); }
.yb-header__utility-inner {
  max-width: 1620px;
  min-height: 31px;
  margin: 0 auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .17em;
}
.yb-header__utility-inner span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: var(--yb-header-accent);
}
.yb-header__main {
  max-width: 1620px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 42px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 28px;
}
.yb-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}
.yb-header__nav > [class^="section_block_id_"] { display: contents; }
.yb-header__nav a {
  position: relative;
  padding: 28px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}
.yb-header__nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 1px;
  background: var(--yb-header-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.yb-header__nav a:hover::after,
.yb-header__nav a:focus-visible::after { transform: scaleX(1); }
.yb-header__brand {
  font-size: clamp(19px, 1.65vw, 26px);
  font-weight: 800;
  letter-spacing: .11em;
  text-align: center;
  white-space: nowrap;
}
.yb-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.yb-header__search {
  width: min(210px, 16vw);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.55);
}
.yb-header__search input {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
}
.yb-header__search input::placeholder { color: rgba(255,255,255,.7); }
.yb-header__search button,
.yb-header__icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}
.yb-header svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.yb-header__mobile-menu { display: none; }
.yb-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1023px) {
  .yb-header__utility-inner { justify-content: space-between; padding: 0 24px; }
  .yb-header__nav { display: none; }
  .yb-header__main { grid-template-columns: 1fr auto 1fr; min-height: 68px; padding: 0 24px; }
  .yb-header__mobile-menu { display: block; position: relative; justify-self: start; }
  .yb-header__mobile-menu summary { width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; padding: 10px; cursor: pointer; list-style: none; }
  .yb-header__mobile-menu summary::-webkit-details-marker { display: none; }
  .yb-header__mobile-menu summary span { display: block; width: 20px; height: 1px; background: currentColor; }
  .yb-header__mobile-panel { position: absolute; top: 55px; left: -24px; width: min(86vw, 360px); padding: 20px 24px; background: var(--yb-header-bg); border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .yb-header__mobile-panel > [class^="section_block_id_"] { display: contents; }
  .yb-header__mobile-panel a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; letter-spacing: .14em; }
  .yb-header__search { display: none; }
}

@media (max-width: 767px) {
  .yb-header__utility-inner { min-height: 27px; justify-content: center; padding: 0 16px; font-size: 9px; }
  .yb-header__utility-inner span:not(:first-child) { display: none; }
  .yb-header__main { min-height: 61px; padding: 0 12px; gap: 10px; }
  .yb-header__brand { font-size: 18px; letter-spacing: .09em; }
  .yb-header__actions { gap: 0; }
  .yb-header__icon { width: 34px; height: 40px; }
  .yb-header__icon:first-of-type { display: none; }
  .yb-header__mobile-panel { top: 51px; left: -12px; }
}
