/* Полное меню сайта (☰ слева в полосе меню) — см. js/fullmenu.js */
#layout nav#main_menu{display:flex;align-items:stretch}
#layout nav#main_menu > ul.menu{flex:1 1 auto;min-width:0}
.fm-toggle{flex:0 0 auto;display:flex;align-items:center;gap:10px;height:50px;min-width:50px;padding:0 16px;border:0;margin:0;
  background:rgba(0,0,0,.18);color:#fff;cursor:pointer;font:inherit;font-weight:600;font-size:14px;text-transform:uppercase}
.fm-toggle:hover,.fm-toggle:focus-visible{background:rgba(0,0,0,.32)}
.fm-toggle:focus-visible{outline:2px solid #fff;outline-offset:-4px}
.fm-bars{display:inline-flex;flex-direction:column;justify-content:space-between;width:20px;height:14px}
.fm-bars span{display:block;height:2px;background:currentColor;border-radius:1px}
.fm-label{display:none}

/* узкий экран: вместо пунктов (и «Еще») — одна кнопка «☰ Меню» во всю ширину */
@media (max-width:860px){
  #layout nav#main_menu > ul.menu{display:none!important}
  .fm-toggle{flex:1 1 auto;justify-content:flex-start}
  .fm-label{display:inline}
}
@media (max-width:480px){
  html #layout nav#main_menu{display:flex!important;width:100%}
  html #layout a.menu_mobile{display:none!important}
}

/* оверлей */
html.fm-open,html.fm-open body{overflow:hidden}
.fm-overlay{position:fixed;inset:0;z-index:10050;background:rgba(0,0,0,.55);overflow-y:auto;-webkit-overflow-scrolling:touch}
.fm-overlay[hidden]{display:none}
.fm-panel{background:#262626;color:#eee;min-height:100%;padding:20px 30px 40px;box-sizing:border-box}
.fm-head{display:flex;align-items:center;gap:16px;max-width:1170px;margin:0 auto 24px}
.fm-close{flex:0 0 auto;width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:36px;line-height:1;cursor:pointer;border-radius:4px}
.fm-close:hover,.fm-close:focus-visible{background:rgba(255,255,255,.12)}
.fm-search{flex:1 1 auto;max-width:520px;margin:0}
.fm-search input{width:100%;height:44px;padding:0 14px;border:1px solid #555;border-radius:4px;background:#1b1b1b;color:#fff;font-size:15px;box-sizing:border-box}
.fm-search input::placeholder{color:#999}
.fm-search input:focus{outline:none;border-color:#aaa}
.fm-grid{max-width:1170px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:28px 32px}
.fm-col-title{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #444;background:none;color:#fff;
  font:inherit;font-weight:700;font-size:15px;text-transform:uppercase;letter-spacing:.3px;padding:0 0 10px;margin:0 0 10px;cursor:default}
.fm-col-list{list-style:none;margin:0;padding:0}
.fm-col-list li{margin:0}
.fm-col-list a{display:block;padding:6px 0;color:#ccc;text-decoration:none;font-size:14px;line-height:1.35}
.fm-col-list a:hover,.fm-col-list a:focus-visible{color:#fff;text-decoration:underline}

/* телефон: колонки — раскрывающиеся списки */
@media (max-width:600px){
  .fm-panel{padding:12px 16px 30px}
  .fm-head{margin-bottom:12px;gap:8px}
  .fm-grid{grid-template-columns:1fr;gap:0}
  .fm-col-title{cursor:pointer;padding:14px 28px 14px 0;margin:0;position:relative}
  .fm-col-title:after{content:"";position:absolute;right:6px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #aaa;border-bottom:2px solid #aaa;transform:rotate(45deg);transition:transform .2s}
  .fm-col.is-open .fm-col-title:after{transform:rotate(-135deg);margin-top:-2px}
  .fm-col-list{display:none;padding:4px 0 10px 12px}
  .fm-col.is-open .fm-col-list{display:block}
  .fm-col-list a{padding:9px 0}
}
