:root{
  --bg:#0b0c10; --card:#14161c; --line:#232633;
  --text:#e8e8ea; --muted:#a9abb3; --accent:#ffd166;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--text)}
.topbar{
  position:sticky;top:0;z-index:10;
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 14px;background:rgba(11,12,16,.92);backdrop-filter: blur(10px);
  border-bottom:1px solid #1f2230;
}
.brand{display:flex;gap:10px;align-items:center}
.logo{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0f1118;
  border:1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
}

.logo:hover{
  opacity:0.85;
}

.logo img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.title{font-weight:900;letter-spacing:.5px}
.subtitle{font-size:12px;color:var(--muted)}
.call{
  padding:10px 12px;border-radius:12px;border:1px solid var(--line);
  background:#0f1118;color:var(--text);text-decoration:none;font-weight:800;
}
.search-wrap{padding:10px 14px}
.search{
  width:100%;padding:12px 12px;border-radius:14px;border:1px solid var(--line);
  background:#0f1118;color:var(--text)
}

.cats{
  display:flex;gap:8px;overflow:auto;padding:0 14px 10px 14px;
  scrollbar-width:none;
}
.cats::-webkit-scrollbar{display:none}
.cat{
  flex:0 0 auto;
  padding:10px 12px;border-radius:999px;border:1px solid var(--line);
  background:#0f1118;color:var(--text);font-weight:800;white-space:nowrap;
}
.cat.active{background:var(--accent);color:#1b1b1b;border-color:transparent}

.menu{display:grid;grid-template-columns:1fr;gap:10px;padding:0 14px 80px 14px}
.card{
  display:flex;gap:12px;padding:12px;border-radius:18px;
  background:var(--card);border:1px solid var(--line)
}
.img{
  width:86px;height:86px;border-radius:16px;
  background:#0f1118;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:#555;overflow:hidden;
  flex:0 0 auto;
}
.img img{width:100%;height:100%;object-fit:cover}
.meta{flex:1;min-width:0}
.name{
  margin:0 0 4px;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.desc{margin:0 0 6px;color:var(--muted);font-size:13px;line-height:1.3}
.grams{margin:0 0 8px;color:var(--muted);font-size:12px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font-weight:900}
.add{
  border:0;border-radius:14px;padding:10px 12px;background:var(--accent);
  color:#1b1b1b;font-weight:900;cursor:pointer;
}

.cartbar{
  position:fixed;left:14px;right:14px;bottom:14px;z-index:20;
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:14px;border-radius:18px;border:1px solid var(--line);
  background:rgba(20,22,28,.95);backdrop-filter: blur(10px);
  color:var(--text);font-weight:900;
}
.hidden{display:none !important}

.sheet{
  position:fixed;inset:0;z-index:30;
  background:rgba(0,0,0,.55);
  display:flex;align-items:flex-end;
}
.sheet__panel{
  width:100%;max-height:92vh;overflow:auto;
  border-radius:22px 22px 0 0;
  background:#0f1118;border:1px solid var(--line);
  padding:12px 14px 18px 14px;
}
.sheet__head{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;background:#0f1118;padding:6px 0}
.sheet__title{font-weight:900;font-size:18px}
.x{border:1px solid var(--line);background:#0b0c10;color:var(--text);border-radius:12px;padding:8px 10px;cursor:pointer}

.cart{padding:6px 0}
.cartline{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:10px 0;border-bottom:1px dashed #2a2f40;
}
.cartline:last-child{border-bottom:0}
.small{font-size:12px;color:var(--muted)}
.qty{display:flex;align-items:center;gap:8px}
.qbtn{padding:7px 10px;border-radius:12px;border:1px solid var(--line);background:#0b0c10;color:var(--text);cursor:pointer;font-weight:900}

.total{display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-size:16px}
.form{display:grid;gap:10px;margin-top:8px}
input,select,textarea{
  width:100%;padding:12px 12px;border-radius:14px;border:1px solid var(--line);
  background:#0b0c10;color:var(--text)
}
.primary{border:0;border-radius:14px;padding:12px;background:var(--accent);color:#1b1b1b;font-weight:900;cursor:pointer}
.ghost{border:1px solid var(--line);border-radius:14px;padding:12px;background:#0b0c10;color:var(--text);font-weight:900;cursor:pointer}

.sheet.hidden{display:none !important}

.cartbar.hidden{display:none !important}

.modal{
  position:fixed; inset:0; z-index:40;
  background:rgba(0,0,0,.55);
  display:flex; align-items:flex-end;
}
.modal.hidden{display:none !important}

.modal__panel{
  width:100%; max-height:92vh; overflow:auto;
  border-radius:22px 22px 0 0;
  background:#0f1118; border:1px solid var(--line);
  padding:12px 14px 18px 14px;
}
.modal__head{
  position:sticky; top:0; z-index:5;
  display:flex; justify-content:space-between; align-items:center;
  background:#0f1118; padding:6px 0; margin-bottom:8px;
}
.modal__title{font-weight:900; font-size:18px}
.modal__img{
  width:100%; aspect-ratio: 1 / 1;
  border-radius:18px; overflow:hidden;
  background:#0b0c10; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:#666;
  margin:10px 0;
}
.modal__img img{width:100%; height:100%; object-fit:cover}
.modal__desc{color:var(--text); opacity:.9; line-height:1.35; margin:8px 0}
.modal__grams{color:var(--muted); font-size:12px; margin-bottom:12px}
.modal__bottom{display:flex; gap:10px; align-items:center; justify-content:space-between}
.modal__price{font-weight:900; font-size:18px}
/* Десктоп: модалка по центру, не на весь экран */
@media (min-width: 900px){
  .modal{
    align-items:center !important;
    justify-content:center !important;
    padding:28px !important;
  }
  .modal__panel{
    width:720px !important;
    max-width:92vw !important;
    max-height:86vh !important;
    border-radius:22px !important;
    margin:0 !important;
  }
}

@media (max-width: 899px){
  .modal{ align-items:flex-end; }
}
/* MURASAKI — названия блюд: жирные, заглавные */
.name,
.meta .name,
.card .name,
.modal__title {
  text-transform: uppercase !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
}
.hero-info{
  padding:14px;
  border-bottom:1px solid var(--line);
}
.hero-info h1{
  margin:0 0 6px;
  font-size:18px;
  font-weight:900;
}
.hero-line{
  margin:0 0 6px;
  font-size:14px;
  color:var(--text);
}
.hero-sub{
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.delivery-info{
  margin:0 14px 10px;
  padding:12px;
  border-radius:16px;
  background:#0f1118;
  border:1px solid var(--line);
  font-size:13px;
}
.delivery-info ul{
  padding-left:16px;
  margin:6px 0 0;
}
.delivery-info li{
  margin-bottom:4px;
}
.tops{padding:0 14px 10px}
.tops__head{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 8px}
.tops__title{font-weight:900}
.tops__hint{font-size:12px;color:var(--muted)}
.tops__list{
  display:flex;gap:10px;overflow:auto;padding-bottom:6px;
  scrollbar-width:none;
}
.tops__list::-webkit-scrollbar{display:none}
.topcard{
  flex:0 0 220px;
  border-radius:18px;border:1px solid var(--line);
  background:var(--card);overflow:hidden;
}
.topcard .img{width:100%;height:140px;border-radius:0;border:0}
.topcard .meta{padding:10px}
.topcard .name{margin:0 0 4px;font-weight:900}
.topcard .desc{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.25}
.topcard .row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tops{padding:0 14px 10px}
.tops__head{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 8px}
.tops__title{font-weight:900}
.tops__hint{font-size:12px;color:var(--muted)}
.tops__list{display:flex;gap:10px;overflow:auto;padding-bottom:6px;scrollbar-width:none}
.tops__list::-webkit-scrollbar{display:none}
.topcard{flex:0 0 220px;border-radius:18px;border:1px solid var(--line);background:var(--card);overflow:hidden}
.topcard .img{width:100%;height:140px;border-radius:0;border:0}
.topcard .meta{padding:10px}
.topcard .name{margin:0 0 4px;font-weight:900}
.topcard .desc{margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.25}
.topcard .row{display:flex;justify-content:space-between;align-items:center;gap:10px}
html{
  scroll-behavior: smooth;
}
.page{
  padding:14px;
}

.page h1{
  font-size:20px;
  font-weight:900;
  margin-bottom:6px;
}

.page-sub{
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px;
}

.vacancy{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:14px;
  margin-bottom:14px;
}

.vacancy h2{
  margin:0 0 8px;
  font-size:16px;
}

.vacancy ul{
  padding-left:18px;
  margin:0 0 12px;
  font-size:13px;
}

.vacancy li{
  margin-bottom:4px;
}
.promo{padding:0 14px 10px}
.promo__head{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 8px}
.promo__title{font-weight:900}
.promo__hint{font-size:12px;color:var(--muted)}

.promo__list{
  display:flex;gap:10px;overflow:auto;padding-bottom:6px;
  scrollbar-width:none;
}
.promo__list::-webkit-scrollbar{display:none}

.promo__card{
  flex:0 0 180px;
  height:260px;
  border-radius:22px;
  border:1px solid var(--line);
  background:var(--card);
  overflow:hidden;
  position:relative;
  padding:0;
}

.promo__card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.promo__play{
  position:absolute;
  inset:auto 10px 10px auto;
  width:34px;height:34px;
  border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.25);
  font-weight:900;
}

.promoModal__panel{
  max-width:520px;
}

#promoMedia img, #promoMedia video{
  width:100%;
  border-radius:16px;
  display:block;
}

.promo__card img{
  transition:transform .25s ease;
}

.promo__card:hover img{
  transform:scale(1.05);
}

.promo__play{
  width:40px;
  height:40px;
  font-size:16px;
}

/* Promo modal — центрирование на мобильных */
#promoModal{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

#promoModal.hidden{
  display:none; /* чтобы hidden реально скрывал */
}

.promoModal__panel{
  width:min(520px, 100%);
  max-height:85vh;
  margin:0 !important;
  position:relative;
}

#promoMedia img,
#promoMedia video{
  max-height:75vh;
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
}

/* ===== CART BAR (нижняя полоска корзины) ===== */
#openCart{
  background: linear-gradient(135deg, #ffb703, #ff9f1c);
  color:#000;
  border:1px solid rgba(0,0,0,.15);
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}

/* текст внутри корзины */
#openCart .small,
#openCart span,
#openCart b{
  color:#000;
}

/* лёгкое "подпрыгивание" при появлении */
#openCart{
  animation: cartPop .25s ease-out;
}

@keyframes cartPop{
  from{ transform:translateY(10px); opacity:0 }
  to{ transform:translateY(0); opacity:1 }
}

/* ===== Sticky categories ===== */
#cats{
  position: sticky;
  top: 56px;              /* высота шапки */
  z-index: 20;
  background: var(--bg);
  padding: 10px 14px;
  margin: 0 -14px;        /* растянуть на всю ширину */
  border-bottom: 1px solid var(--line);
}

/* ===== Category buttons ===== */
.cat{
  background: #0f1118;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .2s ease;
}

/* активная категория */
.cat.active{
  background: #ffb703;
  color: #000;
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 6px 16px rgba(255,183,3,.35);
}

/* hover */
.cat:hover{
  transform: translateY(-1px);
}
