/* Фрагмент Branch/styles.css (раздел по порядку каскада) */
/* ===========================================================================
   ПЕРЕНОС НИЖНЕГО DOCK С ГЛАВНОЙ (scoped .soda)
   =========================================================================== */
.soda .hmenu {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 60; overflow: hidden;
  background: rgba(236,233,225,0.78);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  /* will-change: width, height снят — ни то, ни другое не композитится */
}
.soda .hmenu--dock { top: auto; bottom: calc(100% + 14px); left: 0; z-index: 80; background: rgba(236,233,225,0.95); }
.soda .hmenu__inner { width: 360px; max-width: 86vw; padding: 20px 22px 18px; box-sizing: border-box; }
.soda .hmenu__list { display: flex; flex-direction: column; }
.soda .hmenu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 23px; line-height: 1.1; color: #828634; text-decoration: none;
  padding: 12px 6px 12px 0; border-bottom: 1px solid rgba(130,134,52,0.20);
}
.soda .hmenu__item::after {
  content: ''; flex: none; width: 11px; height: 16px; background: currentColor;
  -webkit-mask: url('../../svg/icon-arrow.svg') center / contain no-repeat;
          mask: url('../../svg/icon-arrow.svg') center / contain no-repeat;
  transition: transform .25s ease; transform: rotate(-90deg);
}
.soda .hmenu__item:hover::after { transform: translateX(-10px) rotate(-90deg); }
.soda .hmenu__item:focus-visible { outline: 2px solid #828634; outline-offset: 3px; }
.soda .hmenu__foot { margin-top: 16px; }
.soda .hmenu__sec { display: flex; gap: 18px; }
.soda .hmenu__sec a { font-size: 18px; letter-spacing: 0.04em; color: #828634; text-decoration: none; cursor: pointer; }

.soda .dock {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(var(--dock-y, 16px));
  display: flex; align-items: center; gap: 14px; z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.3,1);
}
.soda .dock.is-shown { --dock-y: 0px; opacity: 1; pointer-events: auto; }
.soda .dock__panel {
  position: relative; display: flex; align-items: center; gap: 8px; height: 56px; padding: 8px;
  background: rgba(236,233,225,0.78);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 8px;
}
.soda .dock__menu-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 16px;
  font-family: inherit; font-size: 15px; color: #2A2A1E; background: none; border: none; cursor: pointer;
}
.soda .dock__burger { position: relative; display: inline-block; width: 22px; height: 12px; flex: none; }
.soda .dock__burger::before, .soda .dock__burger::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 1px; background: #2A2A1E;
  transition: transform .22s ease, top .22s ease;
}
.soda .dock__burger::before { top: 3px; }
.soda .dock__burger::after  { top: 8px; }
.soda .dock__menu-btn[aria-expanded="true"] .dock__burger::before { top: 5px; transform: rotate(45deg); }
.soda .dock__menu-btn[aria-expanded="true"] .dock__burger::after  { top: 5px; transform: rotate(-45deg); }
.soda .dock__branch-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 24px;
  font-family: inherit; font-size: 14px; font-weight: 400; text-decoration: none; white-space: nowrap;
  color: #ECE9E1; background: #828634; border-radius: 8px;
}
.soda .dock a:focus-visible, .soda .dock button:focus-visible { outline: 2px solid #828634; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .soda .dock, .soda .dock__burger::before, .soda .dock__burger::after, .soda .hmenu { transition: none; }
}

/* S4: подвал на экране — док плавно уезжает вниз (js/blocks/dock-visibility.js) */
.soda .dock.dock.is-footer{--dock-y:calc(100% + 40px);opacity:0;pointer-events:none}
