/* Брендбук AVAT: предлагаемое меню сайта (компьютер и телефон). Цвета и шрифты из tokens.css.
   Кнопки радиус 2 px, панели 4 px, строки меню не меньше 44 px, подписи не меньше 12 px. */

/* ---------- компьютер ---------- */
.mm-desk { position: relative; min-height: 700px; background: var(--paper); color: var(--ink); overflow: hidden; }
.mm-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mm-logo { width: 116px; height: auto; flex: none; color: var(--ink); }
.mm-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.mm-nav a, .mm-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 2px; background: none; color: var(--ink); font: 400 14px/1 var(--body); text-decoration: none; cursor: pointer; }
.mm-nav a:hover, .mm-nav button:hover { background: rgba(32, 40, 44, .05); }
.mm-nav button[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.mm-nav button:focus-visible, .mm-nav a:focus-visible, .mm-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mm-chev { width: 12px; height: 12px; transition: transform .2s; }
.mm-nav button[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
.mm-tel { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border-radius: 2px; background: var(--depth); color: var(--depth-text); font: 500 14px/1 var(--body); text-decoration: none; white-space: nowrap; }
.mm-arr { width: 13px; height: 13px; flex: none; }
.mm-panels { position: relative; z-index: 2; }
/* страница под меню: условный первый экран, приглушён, пока меню открыто */
.mm-page { position: absolute; inset: 76px 0 0; z-index: 1; display: grid; align-content: start; gap: 18px; padding: 70px 32px; transition: opacity .2s; }
.mm-page i { display: block; height: 22px; width: 52%; background: rgba(32, 40, 44, .08); }
.mm-page i:first-child { height: 64px; width: 44%; }
.mm-page i:last-child { width: 30%; }
.mm-desk.is-open .mm-page { opacity: .35; }

.mm-panel { margin: 0 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; background: var(--white); box-shadow: 0 24px 60px rgba(17, 28, 35, .14); animation: mm-in .22s ease both; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mm-panel--svc { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; }
.mm-groups { display: grid; align-content: start; gap: 4px; padding: 16px; background: var(--paper); border-right: 1px solid var(--line); }
.mm-groups button { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 14px 14px 14px 16px; border: 0; border-radius: 4px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.mm-groups button b { font: 400 17px/1.25 var(--head); letter-spacing: -.02em; font-variation-settings: var(--heading-variation); }
.mm-groups button small { grid-column: 1; font-size: 12px; line-height: 1.4; color: var(--muted); }
.mm-groups button em { grid-row: 1; grid-column: 2; font: 500 12px/1.4 var(--body); font-style: normal; color: var(--muted); }
.mm-groups button[aria-selected="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(17, 28, 35, .08); }
.mm-groups button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--brass-base); }
.mm-groups button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.mm-list { margin: 0; padding: 12px; list-style: none; display: grid; align-content: start; gap: 2px; }
.mm-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 12px 14px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.mm-list a.is-on { background: var(--paper); }
.mm-list a span:first-child b { display: block; font: 500 15px/1.3 var(--body); }
.mm-list a span:first-child small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mm-price { text-align: right; white-space: nowrap; }
.mm-price b { display: block; font: 400 16px/1.2 var(--head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; font-variation-settings: var(--heading-variation); }
.mm-price small { font-size: 12px; color: var(--muted); }
.mm-preview { display: grid; align-content: start; gap: 10px; padding: 16px; border-left: 1px solid var(--line); }
.mm-preview figure { margin: 0 0 6px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 4px; background: var(--mist); }
.mm-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mm-preview > b { font: 400 20px/1.2 var(--head); letter-spacing: -.02em; font-variation-settings: var(--heading-variation); }
.mm-preview p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mm-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-meta span { padding: 4px 8px; border-radius: 2px; background: var(--paper); font-size: 12px; font-variant-numeric: tabular-nums; }
.mm-preview > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink); font: 500 14px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; }
.mm-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px 14px 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--muted); }
.mm-foot b { font-weight: 500; color: var(--ink); }
.mm-foot-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border-radius: 2px; background: var(--oxide); color: var(--paper); font: 500 14px/1 var(--body); text-decoration: none; white-space: nowrap; }
.mm-panel--simple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px; }
.mm-panel--simple a { display: grid; gap: 6px; padding: 18px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.mm-panel--simple a:hover { background: var(--paper); }
.mm-panel--simple b { display: flex; align-items: center; gap: 8px; font: 400 18px/1.25 var(--head); letter-spacing: -.02em; font-variation-settings: var(--heading-variation); }
.mm-panel--simple small { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- телефон ---------- */
.mmp { display: flex; flex-direction: column; height: 100%; background: var(--paper); color: var(--ink); }
.mmp-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.mmp-top .mm-logo { width: 92px; }
.mmp-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 15px/1 var(--body); }
.mmp-close i { font-style: normal; font-size: 22px; line-height: 1; }
.mmp-body { flex: 1; overflow: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.mmp-item, .mmp-sec > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); font: 400 22px/1.2 var(--head); letter-spacing: -.02em; text-decoration: none; list-style: none; cursor: pointer; font-variation-settings: var(--heading-variation); }
.mmp-sec > summary::-webkit-details-marker { display: none; }
.mmp-sec[open] > summary .mm-chev { transform: rotate(180deg); }
.mmp-sec > summary .mm-chev { width: 16px; height: 16px; }
.mmp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.mmp-chips::-webkit-scrollbar { display: none; }
.mmp-chips button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink); font: 500 14px/1 var(--body); white-space: nowrap; }
.mmp-chips button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mmp-list { margin: 0; padding: 4px 0 12px; list-style: none; }
.mmp-list a { display: grid; gap: 3px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid rgba(204, 211, 215, .6); color: var(--ink); text-decoration: none; }
.mmp-list b { font: 500 16px/1.3 var(--body); }
.mmp-list small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mmp-foot { flex: none; display: grid; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.mmp-cta { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-radius: 2px; background: var(--depth); color: var(--depth-text); font: 500 16px/1 var(--body); text-decoration: none; }
.mmp-foot div { display: flex; justify-content: space-between; gap: 12px; }
.mmp-foot div a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; text-decoration: none; }

/* рамка телефона для меню: настоящий размер 390 px, высота по окну, листается внутри */
.mm-phone-frame { width: 390px; max-width: 100%; height: min(760px, calc(100svh - 140px)); min-height: 560px; overflow: hidden; border-radius: 36px; }
.mm-changes { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; }
.mm-changes h3 { margin: 0; font: 400 clamp(26px, 2.2vw, 36px)/1.15 var(--head); letter-spacing: -.03em; font-variation-settings: var(--heading-variation); }
.mm-changes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-list); }
.mm-changes li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.mm-changes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }
@media (max-width: 1180px) { .mm-panel--svc { grid-template-columns: 220px minmax(0, 1fr); } .mm-preview { display: none; } .mm-tel { display: none; } }
@media (max-width: 900px) { .mm-changes { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mm-panel { animation: none; } .mm-chev, .mm-page { transition: none; } }
