/* Mobile Drawer & Overlay — простой и совместимый */
#nav-overlay, .nav-overlay,
#site-drawer, .nav-drawer{ display:none; }

@media (max-width:1024px){

  #nav-overlay, .nav-overlay{
    display:block;
    position:fixed;
    top:0; left:0; right:0; bottom:0;
    background:rgba(0,0,0,.48);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
    z-index:1500; /* выше хедера */
  }

  #nav-overlay.is-open, .nav-overlay.is-open{ opacity:1; pointer-events:auto; }

  /* BODY LOCK */
  body.menu-open{ overflow:hidden; touch-action:none; overscroll-behavior:contain; }

  /* BURGER — видим на мобиле (унифицированный селектор) */
  .site-header .burger{
    display:inline-flex; align-items:center; justify-content:center;
  }

  /* DRAWER */
  #site-drawer, .nav-drawer{
    display:flex; position:fixed; top:0; right:0; bottom:0;
    width:88vw; max-width:380px;
    background:#0f1417; color:#fff;
    transform:translateX(100%); transition:transform .24s ease;
    z-index:1600; overflow:auto; -webkit-overflow-scrolling:touch;
    padding:12px 16px 16px; box-shadow:-20px 0 48px rgba(0,0,0,.28);
    border-left:1px solid rgba(255,255,255,.12);
    flex-direction:column; gap:12px;
  }
  #site-drawer.is-open, .nav-drawer.is-open{ transform:translateX(0); }

  /* Заголовок и закрытие */
  .drawer-head{ display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.12); }
  .drawer-title{ font:700 20px/1.2 system-ui, sans-serif; color:#fff; letter-spacing:-.01em; }
  .drawer-close{ width:40px; height:40px; display:grid; place-items:center; border-radius:12px;
    border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.18); color:#fff; }

  /* Стрелка «Назад на главную» */
  .drawer-back{
    display:flex; align-items:center; gap:10px; margin-top:8px;
    padding:10px 12px; border-radius:12px;
    background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12);
    color:#fff; text-decoration:none;
  }
  .drawer-back svg{ width:18px; height:18px; }

  /* Контакты — Телефон и Адрес */
  .drawer-contacts{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
    .drawer-callback{
    margin-top: 12px;
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .drawer-tel{
    display:inline-flex; align-items:center; gap:8px; min-height:40px;
    padding:10px 12px; border-radius:12px;
    background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12);
    color:#fff; font-weight:800; text-decoration:none;
  }
  .drawer-addr{
    display:flex; align-items:center; gap:8px; min-height:36px;
    padding:8px 12px; border-radius:12px; color:#cfd8df;
    background:#0f1417; border:1px solid rgba(255,255,255,.12);
    max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .drawer-contacts svg{ width:18px; height:18px; opacity:.9; }

  /* Действия (Сравнить/Избранное) */
  .drawer-actions{ display:flex; align-items:center; gap:10px; padding:6px 0 12px;
    border-bottom:1px solid rgba(255,255,255,.12); }
  .drawer-actions .chip{ height:34px; padding:7px 9px; border-radius:12px;
    display:inline-flex; align-items:center; gap:8px;
    border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.18); color:#fff; text-decoration:none; }
  .drawer-actions .chip__badge{ font-size:12px; line-height:16px; padding:0 6px;
    border-radius:999px; background:#fff; color:#0b0d0e; }

  /* Поиск (если есть) */
  .drawer-search{ display:flex; gap:8px; }
  .drawer-search input[type="search"]{
    flex:1 1 auto; min-height:44px; border-radius:12px; background:#0f1417; color:#fff;
    border:1px solid rgba(255,255,255,.12); padding:10px 12px;
  }
  .drawer-search button{
    min-width:44px; border-radius:12px; border:1px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.18); color:#fff;
  }

  /* Список ссылок — берём с ПК-меню */
  .nav-list{ list-style:none; margin:12px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
  .nav-list li{ display:block; }
  .nav-list a{
    display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px; text-decoration:none;
    color:#e5e7eb; background:rgba(10,15,18,.72); border:1px solid rgba(255,255,255,.12);
  }
  .nav-list a:hover{ background:rgba(10,15,18,.82); }

}

/* Десктоп: бургер и оверлей скрыты (бургер дублируем скрытие для надёжности) */
@media (min-width:1025px){
  .site-header .burger{ display:none; }
}
/* ===== Drawer: бренд, телефон (простая ссылка), адрес ===== */
.drawer-brand{
  display:flex; align-items:center; justify-content:flex-start;
  padding: 4px 0 2px;
}
.drawer-brand img{ height:28px; width:auto; display:block; }

.drawer-contacts{ display:flex; flex-direction:column; gap:6px; margin-top:2px; }

/* Телефон без "пилюли": простая кликабельная ссылка */
.drawer-contacts .drawer-tel{
  display:inline-block;
  padding:0;
  min-height:auto;
  background:transparent;
  border:none;
  color:#fff;
  font: 800 18px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, "Inter", sans-serif;
  text-decoration:none;
}

/* Адрес — компактнее */
.drawer-contacts .drawer-addr{
  margin-top:0;
  padding:0;
  background:transparent;
  border:none;
  color:#cfd8df;
  font: 400 13px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Inter", sans-serif;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
