/* iOS zoom fix */
input, textarea, select { font-size:16px; }

:root{
  --bg1:#0b0b0f;
  --bg2:#15161b;
  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --text:#f2f2f2;
  --muted: rgba(255,255,255,.72);
  --yellow:#f5c84c;
  --radius:18px;
  --pad: clamp(14px, 2.4vw, 22px);
  --h2: clamp(18px, 3.2vw, 26px);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(245,200,76,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 12%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}
.hidden{display:none !important}
.container{padding:var(--pad); max-width:1100px; margin:0 auto}
.section{margin:18px 0 24px}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px}
.section-head h2{margin:0; font-size:var(--h2); font-weight:900}

/* header (NOT sticky) */
.header{position:relative; display:flex; align-items:center; justify-content:space-between; padding:14px 0 6px}
.header-left{display:flex; align-items:center; gap:12px}
.header-logo{width:54px; height:54px; object-fit:contain}
.header-title{font-weight:900; font-size:20px; line-height:1.1}
.header-sub{font-size:12px; color:var(--muted); margin-top:3px; max-width:220px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* fixed actions (only buttons fixed) */
.top-actions{
  position:fixed;
  top:max(10px, env(safe-area-inset-top));
  right:12px;
  z-index:250;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.lang{display:flex; gap:8px}
.lang-btn{
  height:34px; min-width:44px; padding:0 12px;
  border-radius:999px; border:1px solid var(--stroke);
  background: rgba(0,0,0,.25); color:var(--text);
  font-weight:800; font-size:13px;
}
.lang-btn.active{background:var(--yellow); color:#111; border-color:transparent}

.cart-pill{
  height:40px; padding:0 14px;
  border-radius:14px; border:1px solid var(--stroke);
  background: rgba(0,0,0,.35); color:var(--text);
  display:flex; align-items:center; gap:10px;
  font-weight:900; white-space:nowrap;
}
.cart-pill.has-items{background:var(--yellow); color:#111; border-color:transparent}
.cart-ic{font-size:16px}
.cart-pill-text{font-size:14px}

/* snow icon button (SMALL, not huge) */
.snow-btn{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
}
.snow-btn.on{
  background: rgba(245,200,76,.18);
  border-color: rgba(245,200,76,.40);
}

/* menu note (2 lines, yellow) */
.menu-note{
  text-align:right;
  font-weight:900;
  color:var(--yellow);
  font-size:12.5px;
  line-height:1.25;
  opacity:.95;
}

/* categories grid + photo background */
.cats-grid{display:grid; grid-template-columns:1fr; gap:12px}
@media (min-width:560px){.cats-grid{grid-template-columns:1fr 1fr}}
@media (min-width:980px){.cats-grid{grid-template-columns:1fr 1fr 1fr}}

.cat-card{
  position:relative;
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:16px;
  min-height:92px;              /* чуть шире/выше */
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  cursor:pointer;
  overflow:hidden;
  background: rgba(0,0,0,.25);
}
.cat-card::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--cat-bg, none);
  background-size:cover;
  background-position:center;
  filter: saturate(1.05) contrast(1.05);
  opacity:.45;
}
.cat-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.35));
}
.cat-card > *{position:relative; z-index:1}
.cat-card-title{font-weight:900; font-size:18px}
.cat-card-sub{color:rgba(255,255,255,.78); font-size:12px; margin-top:4px}
.cat-card-arrow{
  width:38px; height:38px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.30);
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
}

/* cards */
.menu-section{background:var(--glass); border:1px solid var(--stroke); border-radius:var(--radius); padding:14px}
.menu-grid{display:flex; flex-direction:column; gap:12px}
.card{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  border-radius: var(--radius);
  padding:12px;
  display:flex; flex-direction:column; gap:10px;
}
.card-img{
  width:100%;
  aspect-ratio:16/9;
  max-height:220px;
  object-fit:cover;
  border-radius:16px;
  display:block;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
}
@media (min-width:560px){.card-img{max-height:260px}}
.card-title{font-weight:900; font-size:18px; line-height:1.15}
.card-portion{color:var(--muted); font-size:12px}
.card-foot{display:flex; align-items:center; justify-content:space-between; gap:12px}
.card-price{font-weight:900}
.add-btn{border:none; border-radius:12px; padding:10px 14px; background:var(--yellow); color:#111; font-weight:900}

/* slider */
.slider{position:relative; background:var(--glass); border:1px solid var(--stroke); border-radius:var(--radius); overflow:hidden}
.slider-track{
  display:flex;
  scroll-snap-type:x mandatory;
  overflow-x:auto;
  gap:14px;
  padding:14px 46px;
  scrollbar-width:none;
}
.slider-track::-webkit-scrollbar{display:none}
.slide{flex:0 0 86%; max-width:560px; scroll-snap-align:center}
.slider-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.45);
  color:var(--text);
  font-size:22px;
  display:flex; align-items:center; justify-content:center;
  z-index:2;
}
.slider-nav.prev{left:10px} .slider-nav.next{right:10px}

/* drawer */
.drawer{position:fixed; inset:0; z-index:260; display:none}
.drawer.show{display:block}
.drawer-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.drawer-panel{
  position:absolute; right:0; top:0; height:100%; width:min(420px, 92vw);
  background: rgba(15,15,18,.92);
  backdrop-filter: blur(18px);
  border-left:1px solid var(--stroke);
  display:flex; flex-direction:column;
}
.drawer-head{padding:14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--stroke)}
.drawer-title{font-weight:900; font-size:18px}
.drawer-x{border:none; background:transparent; color:var(--text); font-size:28px; line-height:1}
.drawer-body{padding:14px; overflow:auto; flex:1; display:flex; flex-direction:column; gap:10px}
.cart-row{display:flex; gap:10px; align-items:center; border:1px solid var(--stroke); background:rgba(0,0,0,.25); border-radius:14px; padding:10px}
.qty{display:flex; align-items:center; gap:6px; margin-left:auto}
.qty button{width:34px; height:34px; border-radius:12px; border:1px solid var(--stroke); background:rgba(255,255,255,.06); color:var(--text); font-weight:900}

.drawer-foot{padding:14px; border-top:1px solid var(--stroke)}
.total-box{border:1px solid var(--stroke); background:rgba(0,0,0,.18); border-radius:14px; padding:12px; margin-bottom:12px}
.total-row{display:flex; justify-content:space-between; align-items:center; padding:6px 0; color:var(--muted)}
.total-row strong{color:var(--text)}
.total-main{border-top:1px solid var(--stroke); margin-top:6px; padding-top:10px; color:var(--text)}
.total-main strong{font-size:18px}
.checkout{display:flex; flex-direction:column; gap:8px}
.checkout input,.checkout textarea{width:100%; border-radius:12px; border:1px solid var(--stroke); background:rgba(255,255,255,.05); color:var(--text); padding:10px 12px; outline:none}
.btn-primary{border:none; border-radius:12px; padding:12px; background:var(--yellow); color:#111; font-weight:900}
.hint{font-size:12px; color:var(--muted)}

/* category bottom bar (make sure clickable) */
.cat-bar{
  position:fixed;
  left:12px; right:12px;
  bottom:max(12px, env(safe-area-inset-bottom));
  z-index:240;
  display:flex;
  gap:10px;
  pointer-events:auto;
}
.cat-bar-btn{
  height:48px;
  border-radius:16px;
  border:1px solid var(--stroke);
  font-weight:900;
}
.cat-bar-btn.ghost{width:64px; background:rgba(0,0,0,.35); color:var(--text)}
.cat-bar-btn.main{flex:1; background:var(--yellow); color:#111}

/* footer */
.footer{margin:18px 0 34px}
.footer-card{border:1px solid var(--stroke); background:rgba(0,0,0,.25); border-radius:var(--radius); padding:16px}
.frow{margin:10px 0; line-height:1.35}
.flabel{color:var(--yellow); font-weight:900; display:inline-block; min-width:92px}
.fval{color:var(--text); font-weight:700}

/* snow layer */
#snowLayer{
  position:fixed;
  inset:0;
  z-index:245;
  pointer-events:none;
  overflow:hidden;
  display:none;
}
#snowLayer.show{display:block}
.snowflake{
  position:absolute;
  top:-10vh;
  font-size:14px;
  opacity:.9;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.65));
  animation: snowFall linear infinite;
}
@keyframes snowFall{
  from{ transform: translateY(-10vh) translateX(0); }
  to{ transform: translateY(115vh) translateX(30px); }
}

/* SPLASH (as was) */
#splash{
  position:fixed; inset:0; z-index:999;
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(245,200,76,.16), transparent 60%),
    linear-gradient(180deg, #0f1014, #07070a);
}
#splash.hide{opacity:0; pointer-events:none; transition: opacity .35s ease}
.splash-inner{display:flex; flex-direction:column; align-items:center; gap:16px; perspective:900px}
.splash-slogan{font-weight:900; font-size:22px}
.coin{width:220px; height:220px; position:relative; transform-style:preserve-3d; animation: coinSpin 2.2s linear infinite}
.coin-face{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; backface-visibility:hidden; -webkit-backface-visibility:hidden}
.coin-face img{width:100%; height:100%; object-fit:contain; display:block}
.coin-front{transform:translateZ(1px)}
.coin-back{transform: rotateY(180deg) translateZ(1px)}
.coin-back img{transform: scaleX(-1)}
@keyframes coinSpin{0%{transform:rotateY(0deg)}100%{transform:rotateY(360deg)}}


/* === CAT BAR OVERRIDES === */
/* компактные кнопки снизу + поменять местами */
.cat-bar{
  justify-content: space-between;
}
#catCartBtn{ order:1; }
#catBackBtn{ order:2; }

.cat-bar-btn{
  flex: 0 0 auto !important;
  width: 56px !important;
  height: 46px !important;
  border-radius: 16px !important;
  padding: 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:900 !important;
}

/* корзина снизу: компактная, желтая только если есть товары */
#catCartBtn{
  background: rgba(0,0,0,.35);
  color: var(--text);
}
#catCartBtn.has-items{
  background: var(--yellow);
  color: #111;
  border-color: transparent;
}

/* текст внутри (если есть span) — маленький */
#catCartText{
  font-size: 13px;
  font-weight: 900;
}

/* === CAT BAR: force both buttons yellow === */
#catBar .cat-bar-btn{
  background: var(--yellow) !important;
  color: #111 !important;
  border: none !important;
}

/* ===== FIXED BRAND BACKGROUND ===== */
html, body { height: 100%; }
body{
  background: #0b0b0f; /* базовый подложечный цвет */
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("/img/brand/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: .22;        /* можно менять: 0.15..0.35 */
  filter: blur(0px);
  z-index: -2;
  pointer-events: none;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255,200,80,.14), transparent 60%),
              linear-gradient(180deg, rgba(10,10,14,.65), rgba(10,10,14,.92));
  z-index: -1;
  pointer-events: none;
}

/* ===== MENU PROMO + FOOTER (I18N) ===== */
.menu-promo{
  margin: 6px 0 14px;
  text-align: right;
  opacity: .95;
}
.menu-promo-line{
  color: #f2c24b;
  font-weight: 700;
  line-height: 1.2;
  font-size: 13px;
}
.site-footer{
  margin: 18px 0 26px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-row{
  display:flex;
  gap: 10px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.site-footer .k{
  color:#f2c24b;
  font-weight:800;
  min-width: 92px;
}
.site-footer .v{
  color:#ffffff;
  opacity:.92;
  font-weight:600;
}

/* === slogan strip (between header/actions and featured) === */
.slogan-strip{
  margin: 10px 0 8px;
  padding: 8px 12px;
  text-align: center;
  color: var(--yellow);
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
  white-space: normal;
}

/* === flavor select (near Add button) === */
.flavor-select{
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-weight: 800;
  font-size: 12.5px;
  max-width: 140px;
}

/* === ORDER RECEIPT MODAL === */
.receipt-overlay{
  position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.62);
  display:flex; align-items:flex-end; justify-content:center;
  padding:12px;
}
@media (min-width:560px){
  .receipt-overlay{align-items:center;}
}
.receipt{
  width:min(520px, 100%);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,10,14,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 70px rgba(0,0,0,.65);
  overflow:hidden;
}
.receipt-head{
  padding:14px 14px 10px;
  display:flex; gap:12px; align-items:center;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.receipt-logo{
  width:44px; height:44px; object-fit:contain;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:6px;
}
.receipt-title{
  font-weight:900; font-size:16px; line-height:1.15;
}
.receipt-sub{
  margin-top:3px;
  color: rgba(255,255,255,.78);
  font-size:12px;
  line-height:1.25;
}
.receipt-body{ padding:12px 14px 14px; }
.receipt-badge{
  display:inline-block;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(245,200,76,.14);
  border:1px solid rgba(245,200,76,.35);
  color: var(--yellow);
}
.receipt-meta{
  margin-top:10px;
  font-size:12px;
  color: rgba(255,255,255,.82);
  line-height:1.35;
}
.receipt-items{
  margin-top:12px;
  border-top:1px dashed rgba(255,255,255,.14);
  padding-top:10px;
}
.receipt-row{
  display:flex; gap:10px; align-items:flex-start;
  justify-content:space-between;
  padding:6px 0;
  font-size:13px;
}
.receipt-row .l{flex:1; min-width:0}
.receipt-row .l .n{font-weight:800; word-break:break-word}
.receipt-row .l .p{font-size:12px;color:rgba(255,255,255,.70);margin-top:2px}
.receipt-row .r{font-weight:900; white-space:nowrap}
.receipt-totals{
  margin-top:10px;
  border-top:1px dashed rgba(255,255,255,.14);
  padding-top:10px;
  font-size:13px;
}
.receipt-totals .line{
  display:flex; justify-content:space-between; gap:12px;
  padding:4px 0;
}
.receipt-totals .grand{
  font-weight:900;
  font-size:15px;
  padding-top:6px;
}
.receipt-actions{
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
}
.receipt-btn{
  height:40px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:900;
}
.receipt-btn.primary{
  background: var(--yellow);
  color:#111;
  border-color: transparent;
}

/* iOS input zoom fix */
#cartModal input,
#cartModal textarea,
.cart input,
.cart textarea,
input, textarea{
  font-size: 16px;
}
html{
  -webkit-text-size-adjust: 100%;
}

/* ===== Splash rotate (3 languages, 2s each, total 6s) ===== */
#splash .splash-rotate{width:min(92vw,520px);margin-top:14px;text-align:center;}
#splash .splash-rot-line{margin:0 auto;}
#splash .splash-rot-line.main{margin-top:2px;}
#splash .splash-rot-line.sub{margin-top:10px;opacity:.88;}

#splash .splash-rot-viewport{overflow:hidden;position:relative;}
#splash .splash-rot-line.main .splash-rot-viewport{height:30px;}
#splash .splash-rot-line.sub  .splash-rot-viewport{height:22px;}

#splash .splash-rot-track{display:flex;flex-direction:column;will-change:transform;}
#splash .splash-rot-item{
  height:30px; line-height:30px;
  display:flex;align-items:center;justify-content:center;
  padding:0 10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#splash .splash-rot-line.main .splash-rot-item{
  font-weight:800; letter-spacing:.6px;
  text-transform:uppercase;
  font-size:13px;
  color:var(--gold,#f2c24b);
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}
#splash .splash-rot-line.sub .splash-rot-item{
  height:22px; line-height:22px;
  font-weight:600; letter-spacing:.2px;
  text-transform:none;
  font-size:12px;
  color:rgba(255,255,255,.86);
}

/* ВАЖНО: двигаем в px, а не в % */
#splash .splash-rot-line.main .splash-rot-track{animation:splashRotMain 6s infinite;}
#splash .splash-rot-line.sub  .splash-rot-track{animation:splashRotSub  6s infinite;}

@keyframes splashRotMain{
  0%,27%   { transform:translateY(0); }
  33%,60%  { transform:translateY(-30px); }
  66%,93%  { transform:translateY(-60px); }
  100%     { transform:translateY(-60px); }
}
@keyframes splashRotSub{
  0%,27%   { transform:translateY(0); }
  33%,60%  { transform:translateY(-22px); }
  66%,93%  { transform:translateY(-44px); }
  100%     { transform:translateY(-44px); }
}

@media (max-width:360px){
  #splash .splash-rot-line.main .splash-rot-item{font-size:12px;}
  #splash .splash-rot-line.sub  .splash-rot-item{font-size:11px;}
}

@media (max-width:360px){
  #splash .splash-rot-line.main .splash-rot-item{font-size:12px;}
  #splash .splash-rot-line.sub  .splash-rot-item{font-size:11px;}
}


/* ===== iOS no-zoom inputs ===== */
#cName,#cPhone,#cAddr,#cNotes{font-size:16px;}


/* ===== iOS: prevent input zoom on focus ===== */
#cartDrawer input, #cartDrawer textarea,
#cart input, #cart textarea,
input#cName, input#cPhone, input#cAddr, textarea#cNotes{
  font-size:16px;
}
