:root{--bg:#07150f;--line:rgba(255,255,255,.12);--muted:#a8b8af;--gold:#e1bd7c}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 18% 0,#1c3b2b 0,#07150f 38%,#030906 100%);color:#fff;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.hero{position:sticky;top:0;z-index:5;padding:24px 18px 18px;background:linear-gradient(#07150ff5,#07150fc7 78%,transparent);backdrop-filter:blur(14px)}.hero-inner{max-width:1100px;margin:auto;display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.eyebrow{font-size:11px;letter-spacing:.18em;color:#e1bd7c;font-weight:900}h1{font-size:36px;margin:5px 0 4px}.hero p{margin:0;color:var(--muted);max-width:560px;line-height:1.45}.hero-status{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#d7ecd9!important;margin:2px 0 8px!important}.hero-status-dot{width:8px;height:8px;border-radius:50%;background:#7ee08a;box-shadow:0 0 0 4px rgba(126,224,138,.18)}.hero-status.is-closed{color:#f3c7a8!important}.hero-status.is-closed .hero-status-dot{background:#e17b52;box-shadow:0 0 0 4px rgba(225,123,82,.18)}.cart-btn{border:0;background:#f4e4c5;color:#102017;padding:12px 15px;border-radius:16px;font-weight:900;white-space:nowrap}.cart-btn span{background:#173424;color:#fff;border-radius:999px;padding:2px 7px;margin-left:5px}main{max-width:1100px;margin:auto;padding:0 18px 120px}.chips{display:flex;gap:8px;overflow:auto;padding:8px 0 18px;scrollbar-width:none;position:sticky;top:0;z-index:4;background:linear-gradient(#07150ff5,#07150fd8 70%,transparent);backdrop-filter:blur(10px);margin:0 -18px;padding-left:18px;padding-right:18px}.chip{border:1px solid var(--line);background:rgba(255,255,255,.045);color:#e4ece7;padding:9px 13px;border-radius:999px;white-space:nowrap}.chip.active{background:#f1dfbd;color:#102017;border-color:transparent}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product{display:flex;gap:12px;min-height:132px;padding:13px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025));box-shadow:0 14px 38px rgba(0,0,0,.18);backdrop-filter:blur(10px)}.product img{width:94px;height:94px;border-radius:16px;object-fit:contain;background:#fff}.product-info{min-width:0;display:flex;flex:1;flex-direction:column}.product h3{font-size:18px;margin:2px 0 4px}.cat{font-size:12px;color:var(--muted);margin-bottom:8px}.variant{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px}.variant select{max-width:132px;background:#0b1d14;color:#fff;border:1px solid var(--line);border-radius:10px;padding:8px}.add{border:0;border-radius:12px;background:#f1dfbd;color:#122017;font-weight:900;padding:9px 12px}.sheet{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.62);display:flex;align-items:flex-end;justify-content:center;padding:12px}.hidden{display:none!important}.sheet-card{width:min(680px,100%);max-height:92vh;overflow:auto;background:#0b1b13;border:1px solid rgba(255,255,255,.14);border-radius:26px;padding:18px;box-shadow:0 30px 90px #0009}.sheet-head{display:flex;justify-content:space-between;align-items:center}.sheet-head h2{margin:0}.icon-btn{border:0;background:rgba(255,255,255,.08);color:#fff;width:38px;height:38px;border-radius:50%;font-size:25px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}.cart-line small{color:var(--muted)}.qty{display:flex;align-items:center;gap:8px}.qty button{width:30px;height:30px;border:0;border-radius:9px}.total-row{display:flex;justify-content:space-between;font-size:22px;padding:18px 0}.order-type{display:grid;grid-template-columns:1fr 1fr;gap:8px}.type-btn{padding:12px;border-radius:13px;background:#10251a;color:#fff;border:1px solid var(--line)}.type-btn.active{background:#f1dfbd;color:#122017}.fields{display:grid;gap:10px;margin:12px 0}.fields input,.fields textarea{width:100%;border:1px solid var(--line);background:#07120d;color:#fff;border-radius:13px;padding:13px;font:inherit}.fields textarea{min-height:78px}.pay-btn{width:100%;padding:15px;border:0;border-radius:16px;background:linear-gradient(135deg,#f5e2bd,#d5a85f);color:#102017;font-size:17px;font-weight:900}.pay-msg{padding-top:10px;color:#ffc5b5;line-height:1.4}.status-card{text-align:center;align-self:center}.status-icon{width:70px;height:70px;margin:8px auto 14px;display:grid;place-items:center;border-radius:50%;background:#23744c;font-size:38px}@media(max-width:700px){h1{font-size:32px}.hero p{font-size:14px}.menu-grid{grid-template-columns:1fr}.product img{width:88px;height:88px}.product{min-height:124px}}
.client-footer{border-top:1px solid rgba(255,255,255,.10);background:#050d09;padding:24px 18px 30px}
.client-footer-inner{max-width:1100px;margin:auto;display:flex;gap:16px 22px;flex-wrap:wrap;align-items:center}
.client-footer a{color:#ead7b4;text-decoration:none;font-size:14px}
.client-footer span{width:100%;color:#82928a;font-size:12px}





/* ===== 7.0.12 exact mobile compact header ===== */
@media (max-width:768px){
  .hero{
    transition:padding .22s ease, background .22s ease;
  }

  .hero-inner{
    align-items:flex-start;
  }

  .mobile-order-title,
  .mobile-order-subtitle{
    transition:
      opacity .18s ease,
      transform .18s ease,
      max-height .22s ease,
      margin .22s ease;
    overflow:hidden;
  }

  /* After scrolling: keep only cafe name + cart */
  body.client-scrolled .hero{
    padding-top:10px!important;
    padding-bottom:10px!important;
    background:#07150ff2!important;
  }

  body.client-scrolled .mobile-order-title,
  body.client-scrolled .mobile-order-subtitle{
    opacity:0!important;
    transform:translateY(-8px);
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    line-height:0!important;
    pointer-events:none;
  }

  body.client-scrolled .mobile-brand{
    font-size:12px!important;
    line-height:1.25!important;
    padding-top:4px;
  }

  body.client-scrolled .cart-btn{
    padding:10px 13px!important;
    align-self:center;
  }
}
/* ===== Mobile ordering upgrade 8.0 ===== */
.client-tools{display:flex;gap:8px;padding:4px 0 12px;position:relative}.search{flex:1;min-width:0;border:1px solid var(--line);background:rgba(255,255,255,.055);color:#fff;border-radius:14px;padding:12px 14px;font:inherit}.search::placeholder{color:#8fa098}.tool-btn{border:1px solid var(--line);background:rgba(255,255,255,.055);color:#fff;border-radius:14px;padding:10px 12px;white-space:nowrap}.tool-btn.active{background:#f1dfbd;color:#102017}.product{position:relative}.fav{position:absolute;right:9px;top:9px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;background:#07150fbb;color:#819087;font-size:17px}.fav.on{color:#efb6a8}.product h3{padding-right:32px}.product-sheet{align-self:flex-end}.option-group{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:14px 14px 15px;margin:12px 0}.option-group>b{display:flex;align-items:center;gap:9px;margin-bottom:11px;font-size:14px}.opt-icon{width:26px;height:26px;border-radius:9px;background:rgba(225,189,124,.14);display:flex;align-items:center;justify-content:center;color:var(--gold,#e1bd7c);flex-shrink:0}.opt-icon svg{width:15px;height:15px}.option-group select{width:100%;background:#07120d;color:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;font:inherit}.size-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:1px}.size-row::-webkit-scrollbar{display:none}.size-btn{flex:1 0 auto;min-width:max-content;border:1px solid var(--line);background:rgba(255,255,255,.03);border-radius:12px;padding:10px 14px;text-align:center;color:#fff;font:inherit;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer}.size-btn.on{background:rgba(225,189,124,.16);border-color:var(--gold,#e1bd7c);color:var(--gold,#e1bd7c)}.choice{display:flex;gap:7px;flex-wrap:wrap}.choice button{border:1px solid var(--line);background:#10251a;color:#fff;border-radius:12px;padding:10px 12px}.choice button.on{background:#f1dfbd;color:#102017}.suggestions{padding:8px 0}.suggestions h3{font-size:15px;margin:10px 0}.suggest-row{display:flex;gap:8px;overflow:auto}.suggest-row button{min-width:145px;text-align:left;border:1px solid var(--line);background:#10251a;color:#fff;border-radius:14px;padding:11px}.suggest-row span{display:block;color:var(--gold);margin-top:5px}.status-steps{display:flex;justify-content:center;gap:0;margin:22px 0 28px}.status-step{position:relative;flex:1;color:#718078;font-size:12px}.status-step:not(:last-child):after{content:"";position:absolute;top:8px;left:55%;right:-45%;height:2px;background:#304139}.status-step i{display:block;width:18px;height:18px;border-radius:50%;background:#304139;margin:0 auto 7px;position:relative;z-index:1}.status-step.done{color:#fff}.status-step.done i,.status-step.done:not(:last-child):after{background:#d5a85f}.empty{color:var(--muted)}
@media(max-width:700px){.client-tools{display:grid;grid-template-columns:1fr 1fr}.search{grid-column:1/-1}.tool-btn{font-size:13px}.product-sheet{border-radius:24px 24px 0 0;margin:-12px}.status-steps{font-size:11px}}
/* ===== Per-product modifiers 8.1 ===== */
.option-note{display:block;color:var(--muted);margin-top:8px}.option-group select option{background:#102017;color:#fff}


/* SMART_RECOMMENDATIONS_V1 */
.smart-suggest-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:18px 0 10px}.smart-suggest-head h3{margin:0}.smart-suggest-head small{color:var(--muted,#8e9c94);font-size:12px;text-align:right}.smart-suggest-row{align-items:stretch}.smart-suggest-card{display:flex!important;align-items:center!important;gap:10px!important;text-align:left!important;min-height:82px!important;padding:9px!important}.smart-suggest-thumb{width:58px;height:58px;flex:0 0 58px;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.06)}.smart-suggest-thumb img{width:100%;height:100%;object-fit:cover;display:block}.smart-suggest-info{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.smart-suggest-info>b{line-height:1.15}.smart-suggest-info>small{font-size:11px;opacity:.66;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.smart-suggest-price{font-weight:800;margin-top:auto}.smart-suggest-info .product-badge-suggestion{margin:1px 0!important}@media(max-width:600px){.smart-suggest-head{align-items:flex-start;flex-direction:column;gap:3px}.smart-suggest-head small{text-align:left}.smart-suggest-card{min-width:210px!important}.smart-suggest-thumb{width:52px;height:52px;flex-basis:52px}}

/* ORDERS BACKGROUND */
html,body{min-height:100%;}body{background:linear-gradient(rgba(4,18,12,.42),rgba(4,18,12,.42)),url('/fon.png') center center/cover no-repeat fixed !important;}

/* FIX ORDERS BACKGROUND */
html {
  background:#06130e;
}
body {
  background:
    linear-gradient(rgba(4,18,12,.38),rgba(4,18,12,.38)),
    url("/fon.png") center top / 100% auto no-repeat fixed !important;
  background-color:#06130e !important;
}

@media (max-width:700px) {
  body {
    background:
      linear-gradient(rgba(4,18,12,.40),rgba(4,18,12,.40)),
      url("/fon.png") center center / cover no-repeat fixed !important;
  }
}

/* MOBILE BACKGROUND FIX */
@media (max-width: 700px) {
  html {
    background: #06130e !important;
  }

  body {
    background: none !important;
    position: relative;
    isolation: isolate;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
      url("/fon.png") center top / cover no-repeat;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(4,18,12,.30);
    pointer-events: none;
  }
}


/* MOBILE_HERO_SMOOTH_FADE_V1 */
@media (max-width:768px){
  .hero{
    will-change:opacity,transform,filter;
    transform-origin:50% 0;
    backface-visibility:hidden;
  }
  /* Нейтрализуем старое резкое скрытие через .client-scrolled. */
  body.client-scrolled .hero{
    display:block !important;
    visibility:visible !important;
  }
}


/* PRODUCT_CARD_CART_CONTROLS_STYLES_V1 */
.product-card-action{display:contents}.product-card-added{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:132px;margin-left:auto}
.product-card-stepper{display:grid;grid-template-columns:34px 38px 34px;align-items:center;justify-content:end;gap:3px}
.product-card-qty-btn{height:32px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.08);color:inherit;font-size:20px;font-weight:800;line-height:1;cursor:pointer}
.product-card-qty-btn:active{transform:scale(.96)}
.product-card-qty{display:flex;align-items:center;justify-content:center;height:32px;border-radius:10px;background:rgba(255,255,255,.06);font-size:15px;font-weight:900}
.product-card-go-cart{width:100%;min-height:34px;border:0;border-radius:10px;padding:7px 9px;background:var(--accent,#c39a62);color:#fff;font-size:11px;font-weight:800;line-height:1.1;cursor:pointer;white-space:normal}
.product-card-go-cart:active{transform:scale(.98)}
@media(max-width:600px){.product-card-added{min-width:116px;gap:5px}.product-card-stepper{grid-template-columns:30px 34px 30px}.product-card-qty-btn,.product-card-qty{height:30px}.product-card-go-cart{font-size:10px;padding:6px 7px}}


/* HIDE_CART_RECOMMENDATIONS_V1 */
/* Убираем «Рекомендуем вместе» только внутри корзины.
   Окно «Забыли добавить?» перед оплатой не затрагивается. */
#cartSheet #suggestions{display:none!important}


/* COFFEEMENU_PIZZA_WHOLE_STYLES_V1 */
.pizza-format-choice{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
.pizza-format-choice button{min-height:48px;padding:10px 8px;border-radius:13px}
.pizza-format-choice button:disabled{opacity:.38;cursor:not-allowed}
.pizza-piece-stepper{display:grid;grid-template-columns:48px 64px 48px;align-items:center;justify-content:start;gap:8px;margin-top:8px}
.pizza-piece-stepper button{height:42px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.08);color:inherit;font-size:24px;font-weight:900;cursor:pointer}
.pizza-piece-stepper b{height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:rgba(255,255,255,.06);font-size:18px}
.pizza-rest-hint{display:block;margin-top:8px;opacity:.68}
@media(max-width:600px){.pizza-format-choice{grid-template-columns:1fr}.pizza-format-choice button{min-height:44px}}


/* COFFEEMENU_READY_MEALS_STOCK_STYLES_V1 */
.ready-meal-stock{
  display:inline-flex;
  align-items:center;
  gap:4px;
  width:max-content;
  max-width:100%;
  margin-top:5px;
  padding:5px 9px;
  border-radius:10px;
  font-size:12px;
  line-height:1.1;
  font-weight:700;
  border:1px solid rgba(255,255,255,.10);
}
.ready-meal-stock b{font-weight:900}
.ready-meal-stock.is-ok{
  background:rgba(48,143,89,.12);
  color:#79c996;
  border-color:rgba(77,170,111,.22);
}
.ready-meal-stock.is-low{
  background:rgba(214,157,54,.12);
  color:#e3b95f;
  border-color:rgba(227,185,95,.24);
}
.ready-meal-stock.is-zero{
  background:rgba(190,72,67,.12);
  color:#d97a75;
  border-color:rgba(217,122,117,.22);
}
.ready-meal-stock-sheet{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.ready-meal-stock-sheet span{
  font-size:14px;
  opacity:.85;
}
.ready-meal-stock-sheet strong{font-weight:900}
.ready-meal-stock-sheet.is-low strong{color:#e3b95f}
.ready-meal-stock-sheet.is-zero strong{color:#d97a75}
@media(max-width:600px){
  .ready-meal-stock{font-size:11px;padding:4px 8px;margin-top:4px}
  .ready-meal-stock-sheet span{font-size:13px}
}

/* COFFEEMENU_CLIENT_LOCATION_YANDEX_V1 */
.client-footer{padding:26px 16px 34px}
.client-footer-inner{max-width:1180px;margin:0 auto}
.client-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  margin-bottom:18px;
}
.client-footer-links a{
  text-decoration:none;
  font-weight:700;
}
.capsula-location{
  margin-top:10px;
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.capsula-location-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
}
.capsula-location-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  opacity:.72;
  margin-bottom:5px;
}
.capsula-location h2{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.15;
}
.capsula-location p{
  margin:0;
  opacity:.82;
  line-height:1.45;
}
.capsula-map-open{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  white-space:nowrap;
  background:#f1df9d;
  color:#153727 !important;
}
.capsula-map-wrap{
  position:relative;
  overflow:hidden;
  width:100%;
  height:320px;
  border-radius:16px;
  background:#0b2118;
}
.capsula-map-wrap iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.client-footer-note{
  display:block;
  margin-top:16px;
  opacity:.58;
  font-size:13px;
  line-height:1.4;
}
@media(max-width:680px){
  .client-footer{padding:20px 12px 28px}
  .client-footer-links{gap:10px 14px}
  .capsula-location{padding:14px;border-radius:16px}
  .capsula-location-head{flex-direction:column;gap:12px}
  .capsula-location h2{font-size:21px}
  .capsula-map-open{width:100%;box-sizing:border-box}
  .capsula-map-wrap{height:260px;border-radius:14px}
}

/* Toast-уведомления вместо системного alert() */
.cm-toast-host{
  position:fixed;
  top:calc(16px + env(safe-area-inset-top, 0px));
  left:50%;
  transform:translateX(-50%);
  z-index:100000;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(380px, calc(100vw - 32px));
  pointer-events:none;
}
.cm-toast{
  pointer-events:auto;
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:#132019;
  border:1px solid rgba(225,189,124,.35);
  border-radius:14px;
  padding:13px 16px;
  color:#fff;
  font-size:14px;
  line-height:1.4;
  box-shadow:0 16px 40px rgba(0,0,0,.4);
  cursor:pointer;
  opacity:0;
  transform:translateY(-10px);
  transition:opacity .2s ease, transform .2s ease;
}
.cm-toast.show{
  opacity:1;
  transform:translateY(0);
}
.cm-toast-icon{
  flex-shrink:0;
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  background:rgba(225,189,124,.18);
  color:var(--gold);
}
