/* Меню шапки — одно на приватную часть (private/menuv2.php) и кабинет
   (lk/menu_a.php). Раздел — пилюля со словом и стрелкой; по нажатию прямо
   под ней открывается короткий список — того же вида, что меню по аватару:
   кремовая подложка, бежевая рамка, пункт — значок и название.

   Прежде здесь была панель во всю ширину экрана: крупный цветной значок,
   заголовок раздела, абзац о нём, кнопка-дубль первого пункта, подпись под
   каждым пунктом и карточка «главного действия». На три ссылки — полэкрана,
   пять цветов в одной шапке, и каждая ссылка повторялась дважды. Меню — не
   витрина: список названий, остальное — подсказкой при наведении (title).
   Значки — libs/rbmega.php. */

.rbmm-svg{display:block; flex:none;}

/* Пилюля раздела в красной шапке. `header` впереди — иначе её перебивают
   правила кнопок шапки, которые стоят в файле меню ниже этого */
header .rbmm-pill{display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 12px 0 16px; border:0; border-radius:999px; background:transparent; color:#fff; font-family:'Gilroy-Bold','Manrope',sans-serif; font-size:15px; font-weight:700; line-height:1; text-decoration:none; white-space:nowrap; cursor:pointer; transition:background .15s, color .15s;}
header .rbmm-pill:hover{background:rgba(255,255,255,.16);}
header .rbmm-pill .rbmm-chev{flex:none; opacity:.85; transition:transform .18s;}
/* В разделе текущая страница — пилюля подсвечена: видно, где ты. Открытый
   раздел — белый: два белых рядом не различить, какой из них раскрыт */
header .rbmm-pill.rbxp-on, header .rbmm-pill.rbx-nl--on{background:rgba(255,255,255,.22) !important; color:#fff !important;}
header .rbmm-pill.is-open{background:#fff !important; color:#c7361f !important;}
header .rbmm-pill.is-open .rbmm-chev{transform:rotate(180deg);}
/* Ссылка без раздела (Календарь, Справка, Мой домен): значок и слово; на
   экранах уже 1560px — один значок, подпись — в подсказке */
header .rbmm-pill--ic{gap:8px; padding:0 16px 0 12px;}
header .rbmm-pill--ic .rbmm-svg{width:19px; height:19px;}
@media (max-width:1560px){
  header .rbmm-pill--ic{width:40px; padding:0; justify-content:center;}
  header .rbmm-pill--ic .rbmm-pt{display:none;}
}

/* Список раздела встаёт под своей пилюлей, а не во всю ширину: взгляд идёт
   от пилюли вниз, и тянуться через весь экран к пункту не нужно */
.rbmm-wrap{position:relative;}
.rbmm, .rbxp-pop.rbmm{display:none; position:absolute; top:calc(100% + 10px); left:0; right:auto; z-index:45; box-sizing:border-box; width:max-content; min-width:230px; max-width:calc(100vw - 24px); max-height:calc(100vh - 72px); overflow-y:auto; overscroll-behavior:contain; margin:0; padding:8px; border:2px solid #f3e7d6; border-radius:18px; background:#fffdfa; box-shadow:0 18px 44px -14px rgba(40,25,10,.38); text-align:left; font-family:'Manrope',system-ui,sans-serif; color:#1b1613; animation:rbmmIn .14s ease-out;}
@keyframes rbmmIn{from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none}}
/* Пунктов больше семи — две колонки: список длиннее экрана ноутбука хуже,
   чем две короткие колонки рядом. Колонки газетные — порядок идёт вниз по
   первой, потом по второй: пункты стоят по тому, как часто их открывают */
.rbmm-list{display:flex; flex-direction:column; gap:2px;}
.rbmm-list:has(> a:nth-child(8)){display:block; columns:2 210px; column-gap:4px;}
.rbmm-list:has(> a:nth-child(8)) > a{break-inside:avoid; margin-bottom:2px;}
.rbmm .rbmm-list > a{display:flex; align-items:center; justify-content:flex-start; gap:12px; min-width:0; padding:10px 12px; border-radius:12px; background:transparent; color:#1b1613; font-family:'Manrope',sans-serif; font-size:15px; font-weight:600; line-height:1.25; text-decoration:none; white-space:nowrap; transition:background .12s;}
.rbmm .rbmm-list > a .rbmm-svg{width:18px; height:18px; color:#a39889; transition:color .12s;}
.rbmm .rbmm-list > a:hover{background:#fff3e6; color:#1b1613;}
.rbmm .rbmm-list > a:hover .rbmm-svg{color:#ed6b10;}
/* «Вы здесь»: пункт текущей страницы */
.rbmm .rbmm-list > a.rbxp-pi--here, .rbmm .rbmm-list > a.is-on{background:#fff3e6; color:#c7361f; font-weight:700;}
.rbmm .rbmm-list > a.rbxp-pi--here .rbmm-svg, .rbmm .rbmm-list > a.is-on .rbmm-svg{color:#ed6b10;}
/* Черта и строка внизу раздела: то, что нужно редко, — мелко и серым */
.rbmm-sep{height:2px; margin:6px 8px; background:#f6efe5;}
.rbmm .rbmm-foot{display:block; padding:8px 12px 6px; border-radius:10px; color:#8a7f73; font-family:'Manrope',sans-serif; font-size:13px; font-weight:500; text-decoration:none; white-space:nowrap;}
.rbmm .rbmm-foot:hover{background:#f6efe5; color:#5b5249;}

/* Мобильный ящик: раздел — серая строка над пунктами, пункт — значок и слово */
.rbmm-mh{padding:18px 14px 6px; font-family:'Gilroy-Bold','Manrope',sans-serif; font-size:12.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color:#8a7f73;}
.rbmm-mfoot{display:block; padding:8px 14px 4px; color:#8a7f73; font-family:'Manrope',sans-serif; font-size:14px; font-weight:500; text-decoration:none;}
