/* Shared drawer for the Ukrainian and English site headers. */
html.menu-open { overflow: hidden; }
html.menu-open body::after {
  display: block;
  background: rgb(0 0 0 / .48);
  pointer-events: auto;
}
html.menu-open .site-header { z-index: 1001; }
html.menu-open .site-header:not(.is-floating) { position: relative; }
html.menu-open body :is(#genagent-launcher, #genagent-teaser) {
  display: none !important;
}

.menu .menu-drawer {
  --drawer-orange: #ff6500;
  --drawer-line: #ffffff24;
  position: fixed;
  inset: var(--menu-drawer-top, 68px) 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(392px, 100%);
  max-width: none;
  max-height: none;
  padding: 8px clamp(12px, 4vw, 20px) env(safe-area-inset-bottom);
  overflow: hidden;
  color: #f6f4f1;
  background: #19191b;
  border: 0;
  border-inline-start: 1px solid var(--drawer-line);
  border-radius: 0;
  box-shadow: -12px 0 40px rgb(0 0 0 / .25);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateX(100%);
  transition: opacity .2s ease, transform .24s var(--ease-out, ease-out);
}
.menu.is-open .menu-drawer { transform: translateX(0); }
.menu-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.menu-drawer .drawer-primary { padding-bottom: 8px; }
.menu-drawer .drawer-studio {
  border-top: 1px solid var(--drawer-line);
}
.menu-drawer :is(.drawer-row, summary) {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 47px;
  padding: 5px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--drawer-line);
  border-radius: 0;
  color: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  text-decoration: none;
}
.menu-drawer .drawer-primary > a > .drawer-label,
.menu-drawer .drawer-primary > details > summary .drawer-label {
  font-family: var(--display, var(--font));
  font-size: 1.0625rem;
  font-weight: 710;
}
.menu-drawer summary { cursor: pointer; list-style: none; }
.menu-drawer summary::-webkit-details-marker { display: none; }
.menu-drawer .drawer-child-list { padding-inline-start: 15px; }
.menu-drawer .drawer-child-list a { font-size: .875rem; }
.menu-drawer .drawer-studio > details > summary { color: #cbc8c8; }
.menu-drawer :is(a, summary):is(:hover, [aria-current]) { color: var(--drawer-orange); }
.menu-drawer :is(a, summary):focus-visible {
  outline: 2px solid var(--drawer-orange);
  outline-offset: -2px;
}
.menu-drawer svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-drawer .drawer-symbol { color: var(--drawer-orange); }
.menu-drawer .drawer-direction {
  width: 15px;
  height: 15px;
  margin-inline-start: auto;
  color: #bcb9bc;
}
.menu-drawer details[open] > summary .drawer-direction { transform: rotate(180deg); }
.menu-drawer .menu-lang { display: none; }
.menu-drawer .drawer-contact {
  display: grid;
  flex: none;
  grid-template-columns: 1.58fr 1fr .82fr;
  align-items: stretch;
  gap: 4px;
  padding: 4px 0;
  border-top: 1px solid var(--drawer-line);
}
.menu-drawer .drawer-contact .menu-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
}
.menu-drawer .drawer-contact .menu-action:first-child {
  justify-content: flex-start;
  color: var(--drawer-orange);
}
.menu-drawer .drawer-contact .menu-action:last-child { justify-content: flex-end; }
.menu-drawer .drawer-contact svg { width: 16px; height: 16px; }
.menu-drawer .drawer-contact :is(a:hover, a:focus-visible) { color: var(--drawer-orange); }

@media (max-width: 760px) {
  .menu .menu-drawer { inset-block-start: var(--menu-drawer-top, 57px); }
}
@media (max-width: 380px) {
  .menu-drawer .menu-lang { display: flex; padding: 6px 0; }
  .menu-drawer .drawer-contact .menu-action { font-size: .75rem; }
  .menu-drawer .drawer-contact svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu .menu-drawer { transition: none; }
}

.menu-drawer .drawer-primary > [data-menu-chat] {
  width: 100%;
  cursor: pointer;
  font-family: var(--display, var(--font));
  font-size: 1.0625rem;
  font-weight: 710;
}

.menu-drawer [data-menu-chat]:is(:hover, :focus-visible) { color: var(--drawer-orange); }
.menu-drawer [data-menu-chat]:focus-visible { outline: 2px solid var(--drawer-orange); outline-offset: -2px; }
.menu-drawer .drawer-chat-status { margin: 0; font-size: .8125rem; color: var(--muted); }
.menu-drawer .drawer-chat-status:not(:empty) { padding-block-start: 6px; }
