/* ОСТРОВОК PHASE 08 — компактное мобильное меню без фото блюд/категорий. */
:root{--p8-gold:#efb65a;--p8-gold2:#f4c877;--p8-card:#121310;--p8-line:rgba(255,255,255,.09);--p8-muted:#9b9387;--p8-text:#f5f1e8}

/* Верхний блок: сохраняем фирменное фото, но меню начинается заметно раньше. */
.hero{min-height:218px!important;margin-top:10px!important;border-radius:24px!important}
.hero__content{min-height:218px!important;padding:17px 18px!important}
.brand{gap:1px!important}.brand span{font-size:9px!important}.brand strong{font-size:25px!important}
.hero h1{font-size:44px!important;line-height:.9!important;margin:12px 0 6px!important}
.hero p{font-size:13px!important;margin:0 0 13px!important}
.hero__actions{gap:7px!important}.pill{min-height:40px!important;padding:0 14px!important;font-size:12px!important}.pill--qr{min-width:52px!important}

/* Липкая навигация компактнее. */
.controls{margin-top:10px!important}
.controls__inner{padding:8px 0!important;gap:8px!important}
.search{height:44px!important;border-radius:16px!important;padding:0 12px!important}
.search input{font-size:14px!important}
.category-wrap{display:none!important}
.category-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.all-cats{height:38px;padding:0 12px;border-radius:999px;border:1px solid var(--p8-line);background:#171815;color:#e8e1d7;font-weight:800;font-size:12px;white-space:nowrap}
.categories{display:flex!important;gap:7px!important;overflow:auto!important;scrollbar-width:none!important;scroll-snap-type:x proximity!important;padding:1px 1px 3px!important;min-width:0!important}
.categories::-webkit-scrollbar{display:none!important}
.category-card{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:38px!important;padding:0 14px!important;border-radius:999px!important;border:1px solid var(--p8-line)!important;background:#151613!important;color:#d8d0c4!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;scroll-snap-align:center!important}
.category-card.is-active{color:#1a1309!important;background:linear-gradient(135deg,#f2be65,#dc9f42)!important;border-color:transparent!important;box-shadow:0 7px 18px rgba(217,155,62,.14)!important}
.category-card__img{display:none!important;background-image:none!important}
.nav-arrow{display:none!important}

/* Заголовок раздела не прячется под sticky-панелью. */
.menu-stage{padding:15px 0 24px!important;scroll-margin-top:118px!important}
.section-head{align-items:center!important;margin-bottom:10px!important;gap:9px!important}
.section-head__kicker{font-size:9px!important;margin-bottom:4px!important;letter-spacing:.19em!important}
.section-head h2{font-size:clamp(32px,8.8vw,41px)!important;line-height:.96!important}
.section-head__right{margin-left:auto!important}.section-head__right button{display:none!important}
.pager{padding:6px 9px!important;font-size:10px!important;white-space:nowrap!important}
.swipe-hint,.progress{display:none!important}

/* Карточки: ещё плотнее, название/вес слева, цена справа. Фото и псевдо-кнопка "Состав" отсутствуют. */
.dish-track{display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important}
.dish-card{display:block!important;flex:0 0 auto!important;width:100%!important;max-width:none!important;min-width:0!important;border-radius:17px!important;overflow:hidden!important;border:1px solid var(--p8-line)!important;background:linear-gradient(145deg,#151613,#10110f)!important;box-shadow:none!important;scroll-snap-align:none!important;cursor:pointer!important}
.dish-card__image{display:none!important;background-image:none!important}
.dish-card__body{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:11px 13px!important;min-height:68px!important}
.dish-card__copy{min-width:0!important}.dish-card h3{margin:0 0 3px!important;font-size:16px!important;line-height:1.16!important;font-weight:790!important;overflow-wrap:anywhere!important}
.dish-card__weight{color:#aaa296!important;font-size:11px!important;line-height:1.2!important}
.dish-card__desc{margin:4px 0 0!important;min-height:0!important;color:#91897e!important;font-size:11px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.dish-card__compose{display:none!important}
.dish-card__price{align-self:center!important;color:var(--p8-gold2)!important;font-size:20px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;padding-left:4px!important}
.dish-card:active{background:#1a1b17!important;transform:scale(.995)}

/* Поиск — те же компактные текстовые карточки. */
.search-results{padding:16px 0 24px!important}.search-list{gap:7px!important;margin-top:10px!important}
.search-item{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:11px 13px!important;min-height:62px!important;border-radius:16px!important;background:#151613!important}
.search-item__img{display:none!important;background-image:none!important}.search-item__copy{min-width:0!important}
.search-item h3{margin:0 0 3px!important;font-size:15px!important}.search-item p{font-size:10px!important;color:#91897e!important}.search-item strong{font-size:16px!important;color:var(--p8-gold2)!important}

/* Подробности блюда: без звонка, с понятным возвратом. */
.sheet__hero{display:none!important;background-image:none!important}.sheet__panel{background:#151613!important;border-radius:24px 24px 0 0!important}
.sheet__body{padding:21px 17px max(18px,env(safe-area-inset-bottom))!important}.sheet__top h3{font-size:22px!important;line-height:1.08!important}.sheet__top small{color:var(--p8-gold2)!important;font-size:10px!important}
.sheet__row{display:block!important;margin-top:14px!important}.sheet__price{font-size:25px!important;color:var(--p8-gold2)!important}.sheet__weight{font-size:12px!important}
.sheet p{font-size:14px!important;line-height:1.5!important;margin:14px 0!important}.sheet__call{display:none!important}
.sheet__back{width:100%;min-height:44px;border:0;border-radius:14px;background:linear-gradient(135deg,#efbb62,#d99c3f);color:#17120a;font-weight:850;font-size:13px}

/* Все разделы — отдельный нижний лист. */
.category-sheet{position:fixed;inset:0;z-index:90;display:none}.category-sheet.is-open{display:block}
.category-sheet__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.68)}
.category-sheet__panel{position:absolute;left:0;right:0;bottom:0;max-height:78svh;overflow:auto;border-radius:24px 24px 0 0;background:#151613;border:1px solid var(--p8-line);box-shadow:0 -20px 54px rgba(0,0,0,.5);padding:20px 15px max(18px,env(safe-area-inset-bottom))}
.category-sheet__handle{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:46px;height:5px;border-radius:999px;background:rgba(255,255,255,.34)}
.category-sheet__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:10px 0 14px}.category-sheet__head small{display:block;color:var(--p8-gold2);font-size:9px;letter-spacing:.18em;font-weight:900;margin-bottom:4px}.category-sheet__head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:31px;font-weight:500}
.category-sheet__head>button{width:38px;height:38px;border-radius:50%;border:1px solid var(--p8-line);background:#20201d;color:#fff;font-size:24px}
.category-sheet__grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.category-sheet__item{min-height:58px;padding:10px 11px;border-radius:15px;border:1px solid var(--p8-line);background:#11120f;color:var(--p8-text);text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px}.category-sheet__item span{font-size:13px;font-weight:800;line-height:1.15}.category-sheet__item small{font-size:10px;color:#8f887d}.category-sheet__item.is-active{border-color:rgba(239,182,90,.72);background:#1a1812}.category-sheet__item.is-active span{color:var(--p8-gold2)}

/* Наверх появляется только после прокрутки. */
.to-top{position:fixed;right:14px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:55;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.13);background:rgba(24,24,21,.92);backdrop-filter:blur(12px);color:#f2e9da;font-size:22px;font-weight:800;box-shadow:0 8px 28px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease}.to-top.is-visible{opacity:1;visibility:visible;transform:none}
body.sheet-open .to-top{opacity:0!important;visibility:hidden!important}

.footer{padding:16px 0 24px!important}

@media(max-width:390px){
  .hero{min-height:205px!important}.hero__content{min-height:205px!important;padding:15px!important}.hero h1{font-size:41px!important}.brand strong{font-size:23px!important}
  .pill{min-height:38px!important;padding:0 12px!important;font-size:11px!important}.all-cats{padding:0 10px!important;font-size:11px!important}.category-card{height:36px!important;padding:0 12px!important;font-size:11px!important}
  .dish-card__body{padding:10px 12px!important;min-height:64px!important}.dish-card h3{font-size:15px!important}.dish-card__price{font-size:19px!important}.category-sheet__grid{grid-template-columns:1fr!important}
}
@media(min-width:720px){
  .hero{min-height:270px!important}.hero__content{min-height:270px!important;padding:24px!important}.hero h1{font-size:52px!important}.brand strong{font-size:29px!important}
  .category-sheet__panel{left:50%;right:auto;width:min(620px,100%);transform:translateX(-50%)}.category-sheet__grid{grid-template-columns:repeat(3,1fr)}
}
