:root {
  --consulting-context-height: 46px;
}

.ep-context,
.ep-context * {
  box-sizing: border-box;
}

.ep-context {
  position: relative;
  z-index: 410;
  width: 100%;
  min-width: 320px;
  height: var(--consulting-context-height);
  border-bottom: 1px solid rgba(232, 197, 110, 0.16);
  color: #eae7df;
  background:
    radial-gradient(circle at 16% -80%, rgba(232, 197, 110, 0.22), transparent 36%),
    linear-gradient(90deg, #111216, #17140f 58%, #111216);
  font-family: Inter, Arial, sans-serif;
}

.ep-context__inner {
  position: relative;
  display: grid;
  width: min(1760px, calc(100% - 40px));
  height: 100%;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
  gap: clamp(16px, 2vw, 34px);
  align-items: center;
  margin-inline: auto;
}

.ep-context a {
  color: inherit;
  text-decoration: none;
}

.ep-context__brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.ep-context__mark {
  position: relative;
  display: block;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
}

.ep-context__mark i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 232, 166, 0.7);
  border-radius: 3px;
  background: linear-gradient(135deg, #efd78d, #8c6b2c);
  transform: rotate(45deg);
}

.ep-context__mark i:nth-child(1) { top: 0; left: 8px; }
.ep-context__mark i:nth-child(2) { top: 8px; right: 0; }
.ep-context__mark i:nth-child(3) { bottom: 0; left: 8px; }
.ep-context__mark i:nth-child(4) { top: 8px; left: 0; }

.ep-context__mark b {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  color: #17140e;
  font-size: 11px;
  line-height: 1;
}

.ep-context__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ep-context__brand-copy strong {
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.ep-context__brand-copy em {
  color: #edcd78;
  font-style: normal;
}

.ep-context__brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 6px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ep-context__project {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ep-context__project i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e8c56e;
  box-shadow: 0 0 12px rgba(232, 197, 110, 0.7);
}

.ep-context__quick {
  display: flex;
  min-width: 0;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  justify-content: center;
}

.ep-context__quick a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease;
}

.ep-context__quick a:hover,
.ep-context__quick a:focus-visible {
  color: #f4d982;
}

.ep-context__trigger {
  display: inline-flex;
  min-height: 30px;
  gap: 9px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(232, 197, 110, 0.3);
  border-radius: 999px;
  color: #f3e7c7;
  background: rgba(232, 197, 110, 0.07);
  font: inherit;
  font-size: 9px;
  font-weight: 720;
  cursor: pointer;
}

.ep-context__trigger > i {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.ep-context.is-open .ep-context__trigger > i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.ep-context__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(660px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid rgba(232, 197, 110, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 0, rgba(232, 197, 110, 0.14), transparent 32%),
    rgba(17, 18, 22, 0.985);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.ep-context__panel[hidden] { display: none; }

.ep-context__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-context__panel-head > span {
  display: flex;
  flex-direction: column;
}

.ep-context__panel-head small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ep-context__panel-head strong {
  margin-top: 4px;
  color: #f3d57c;
  font-size: 13px;
}

.ep-context__panel-head a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.ep-context__panel nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.ep-context__panel nav a {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.ep-context__panel nav a:hover,
.ep-context__panel nav a:focus-visible {
  border-color: rgba(232, 197, 110, 0.36);
  background: rgba(232, 197, 110, 0.07);
}

.ep-context__panel nav b { font-size: 10px; }
.ep-context__panel nav span { margin-top: 5px; color: rgba(255, 255, 255, 0.4); font-size: 8px; line-height: 1.35; }

.has-consulting-context .app-shell {
  height: calc(100svh - var(--consulting-context-height));
}

@media (max-width: 1180px) {
  .ep-context__inner { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .ep-context__project { display: none; }
  .ep-context__quick { justify-content: flex-end; }
}

@media (max-width: 820px) {
  :root { --consulting-context-height: 42px; }
  .ep-context__inner { width: calc(100% - 22px); grid-template-columns: minmax(0, 1fr) max-content; }
  .ep-context__quick { display: none; }
  .ep-context__panel { top: calc(100% + 7px); }
}

@media (max-width: 560px) {
  .ep-context__brand-copy small { display: none; }
  .ep-context__brand-copy strong { font-size: 12px; }
  .ep-context__trigger { min-height: 28px; padding-inline: 11px; }
  .ep-context__panel { right: -2px; padding: 11px; border-radius: 16px; }
  .ep-context__panel-head { align-items: flex-start; }
  .ep-context__panel-head a { max-width: 120px; text-align: right; line-height: 1.35; }
  .ep-context__panel nav { max-height: min(62vh, 420px); grid-template-columns: 1fr 1fr; overflow-y: auto; }
  .ep-context__panel nav a { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-context *, .ep-context *::before, .ep-context *::after { scroll-behavior: auto !important; transition: none !important; }
}

[data-consulting-context-bar][hidden],[data-premium-header][hidden]{display:none!important}
