/* Main menu */
.mm { --mm-ground: #0c1418; --mm-rule: rgba(92, 200, 255, .24); --mm-ease: cubic-bezier(.16, 1, .3, 1); margin-left: auto; }
.mm-bar { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mm-item { position: static; }
.mm-top { display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 0 12px; color: #ececE6; font-size: 17px; font-weight: 500; cursor: pointer; transition: color .15s ease; }
.mm-top:hover, .mm-item.is-open > .mm-top { color: var(--accent); }
.mm-chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .28s var(--mm-ease); }
.mm-item.is-open .mm-chev { transform: rotate(180deg); }
.mm-cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; padding: 0 16px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 16.500px; font-weight: 700; white-space: nowrap; transition: background-color .15s ease; }
.mm-cta:hover { background: var(--accent-hover); }

.mm-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  border-top: 1px solid var(--line); border-bottom: 1px solid #3a3a35;
  background: var(--deep);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7);
  transition: opacity .16s ease, transform .3s var(--mm-ease), visibility 0s linear .16s;
}
.mm-item.is-open > .mm-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .16s ease, transform .3s var(--mm-ease), visibility 0s; }
.mm-inner { display: grid; grid-template-columns: minmax(0, 1fr) 356px; width: min(1220px, calc(100% - 64px)); margin: 0 auto; }
.mm-list { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--mm-top, 120px) - 16px); padding: 26px 36px 20px 4px; }
.mm-scroll { flex: 1 1 auto; min-height: 0; margin: 0 -14px 0 -8px; padding: 0 14px 0 8px; overflow-y: auto; scrollbar-color: #3a3a35 transparent; scrollbar-width: thin; }

/* Software list */
.mm-software { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.mm-link.mm-link-big { display: grid; gap: 2px; padding: 12px 14px; border-radius: 9px; transition: background-color .12s ease; }
.mm-link-big strong { color: #fff; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.mm-link-big span { color: var(--muted-dark-bg); font-size: 15.500px; line-height: 1.35; }
.mm-link-big:hover, .mm-link-big:focus-visible { background: rgba(92, 200, 255, .1); }
.mm-link-big:hover strong { color: var(--accent); }

/* Search */
.mm-find { position: relative; flex: none; display: flex; align-items: center; margin-bottom: 22px; }
.mm-find input { min-height: 50px; padding: 11px 120px 11px 44px; border-color: #41413b; font-size: 18px; }
.mm-find input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.mm-search-ico { position: absolute; left: 14px; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mm-count { position: absolute; right: 14px; color: var(--muted-dark-bg); font-size: 15px; font-variant-numeric: tabular-nums; pointer-events: none; }

/* Grouped lists */
.mm-groups { columns: 3; column-gap: 26px; }
.mm-group { break-inside: avoid; margin: 0 0 18px; }
.mm-group[hidden] { display: none; }
.mm-group h3 { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted-dark-bg); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.mm-group ul { margin: 0; padding: 0; list-style: none; }
.mm-group li[hidden] { display: none; }
.mm-link { display: block; color: #f1f0ea; }
.mm-group .mm-link { padding: 5px 8px; margin: 0 -8px; border-radius: 6px; font-size: 16px; font-weight: 500; line-height: 1.3; transition: background-color .12s ease, color .12s ease; }
.mm-group .mm-link:hover, .mm-group .mm-link:focus-visible { background: rgba(92, 200, 255, .1); color: var(--accent); }
.mm-none { margin: 0 0 8px; color: var(--text-dark-bg); font-size: 18px; }
.mm-none[hidden] { display: none; }
.mm-all { flex: none; align-self: flex-start; display: inline-flex; align-items: center; margin-top: 14px; color: #fff; font-size: 17px; font-weight: 700; border-bottom: 2px solid var(--accent); }

/* Blueprint preview */
.mm-pane {
  min-width: 0; padding: 26px 22px 22px; border-left: 1px solid #3a3a35;
  background-color: var(--mm-ground);
  background-image: linear-gradient(to right, rgba(92, 200, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(92, 200, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.mm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mm-svg text { font-family: inherit; }
.mm-core rect { fill: rgba(92, 200, 255, .12); stroke: var(--accent); stroke-width: 1.5; }
.mm-core text { fill: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.mm-spine { fill: rgba(92, 200, 255, .6); transform-origin: 16px 62px; animation: mm-grow .36s var(--mm-ease) both; }
.mm-wire { fill: none; stroke: rgba(92, 200, 255, .6); stroke-width: 1.2; stroke-dasharray: 1; animation: mm-trace .22s ease-out both; animation-delay: inherit; }
.mm-node { fill: var(--accent); }
.mm-box { fill: rgba(12, 20, 24, .92); stroke: rgba(92, 200, 255, .62); stroke-width: 1.2; stroke-dasharray: 1; animation: mm-trace .42s var(--mm-ease) both; animation-delay: inherit; }
.mm-label { fill: #fff; font-size: 14.500px; font-weight: 600; animation: mm-fade .22s ease both; animation-delay: inherit; }
.mm-row { animation: mm-hold 1ms both; }
.mm-note { margin: 12px 0 0; color: #b6cdd8; font-size: 15px; line-height: 1.4; }
@keyframes mm-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes mm-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mm-hold { from { opacity: 1; } to { opacity: 1; } }

.mm-burger { display: none; }
.mm-lock, .mm-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-item.is-open > .mm-panel { transition: none; transform: none; }
  .mm-spine, .mm-wire, .mm-box, .mm-label { animation: none; }
}

@media (max-width: 1240px) {
  .mm-top { padding: 0 9px; font-size: 16px; }
  .header-phone span { display: none; }
  .header-phone { width: 46px; padding: 0; justify-content: center; }
  .mm-inner { grid-template-columns: minmax(0, 1fr) 300px; }
  .mm-groups { columns: 2; }
}

/* Phones and tablets: one full-height menu */
@media (max-width: 960px) {
  .nav-wrap { gap: 8px; }
  .header-phone { margin-left: auto; }
  .mm { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; display: none; height: calc(100dvh - var(--mm-top, 120px)); margin: 0; overflow-y: auto; background: var(--deep); border-top: 1px solid var(--line); }
  .mm-drawer .mm { display: block; }
  .mm-bar { display: block; padding: 8px 20px 24px; }
  .mm-item { border-bottom: 1px solid var(--line); }
  .mm-item-cta { padding-top: 16px; border-bottom: 0; }
  .mm-top { justify-content: space-between; width: 100%; min-height: 62px; padding: 0; color: #fff; font-size: 21px; font-weight: 650; }
  .mm-chev { width: 20px; height: 20px; }
  .mm-cta { justify-content: center; width: 100%; min-height: 56px; margin: 0; font-size: 18px; }
  .mm-panel { position: static; display: none; visibility: visible; opacity: 1; transform: none; border: 0; background: none; box-shadow: none; transition: none; }
  .mm-item.is-open > .mm-panel { display: block; }
  .mm-inner { display: block; width: auto; }
  .mm-list { display: block; max-height: none; padding: 2px 0 20px; }
  .mm-scroll { margin: 0; padding: 0; overflow: visible; }
  .mm-pane { display: none; }
  .mm-software { grid-template-columns: minmax(0, 1fr); }
  .mm-link-big { padding: 10px 0; }
  .mm-groups { columns: 2; column-gap: 20px; }
  .mm-group .mm-link { padding: 8px; font-size: 17px; }

  .mm-burger { position: relative; display: block; flex: none; width: 46px; height: 46px; min-height: 46px; margin: 0; padding: 0; border: 1px solid #55554f; border-radius: 50%; background: transparent; }
  .mm-burger[hidden] { display: none; }
  .mm-burger:hover { background: transparent; border-color: var(--accent); }
  .mm-burger span { position: absolute; left: 13px; right: 13px; height: 2px; padding: 0; background: #fff; transition: transform .28s cubic-bezier(.16, 1, .3, 1), top .28s cubic-bezier(.16, 1, .3, 1); }
  .mm-burger span:first-child { top: 17px; }
  .mm-burger span:last-child { top: 25px; }
  .mm-drawer .mm-burger span:first-child { top: 21px; transform: rotate(45deg); }
  .mm-drawer .mm-burger span:last-child { top: 21px; transform: rotate(-45deg); }
}

@media (max-width: 760px) {
  button.mm-burger { justify-self: auto; width: 46px; }
}

@media (max-width: 480px) {
  .mm-groups { columns: 1; }
}
