:root{
  --container:1140px;
  --red:#e01822;
  --black:#0b0b0b;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#111;
  background:#fff;
}

.container{
  width:var(--container);
  max-width:calc(100% - 32px);
  margin:0 auto;
}

/* TOPBAR */
.topbar{
  height:56px;
  background:#fff;
  border-bottom:1px solid #f0f0f0;
}
.topbar__row{
  height:56px;
  display:flex;
  align-items:center;
  gap:18px;
}
.topbar__logo img{
  height:30px;
  display:block;
}
.topbar__spacer{ flex:1; }

.topbar__actions{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  white-space:nowrap;
}
.topbar__link{
  text-decoration:none;
  color:#111;
  display:flex;
  gap:8px;
  align-items:center;
  opacity:.9;
}
.topbar__lang{
  border:1px solid #ddd;
  background:#fff;
  padding:7px 10px;
  border-radius:4px;
  font-size:13px;
  cursor:pointer;
  text-decoration: none;
  color:#111;
}

/* icons */
.ico{width:14px;height:14px;display:inline-block;position:relative}
.ico-pin::before{
  content:"";
  position:absolute; inset:0;
  border:2px solid #111;
  border-radius:10px 10px 10px 0;
  transform:rotate(45deg);
  opacity:.65;
}
.ico-user::before{
  content:"";
  position:absolute; left:3px; top:1px;
  width:8px;height:8px;
  border:2px solid #111;
  border-radius:50%;
  opacity:.65;
}
.ico-user::after{
  content:"";
  position:absolute; left:2px; bottom:-1px;
  width:10px;height:6px;
  border:2px solid #111;
  border-top:none;
  border-radius:0 0 8px 8px;
  opacity:.65;
}

/* HERO SLIDER */
.hero{ width:100%; background:#fff; }
.hero__wrap{
  position:relative;
  overflow:hidden;
  background:#f3f3f3;

  /* ключ: высота считается от ширины экрана */
  height: min(892px, calc(100vw * 892 / 2560));
}

.hero__viewport,
.hero__track,
.hero__slide{
  height:100%;
}

.hero__img{
  width:100%;
  height:100%;
  object-fit: contain !important;
  object-position: center;
  display:block;
}
.hero__track{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.hero__slide{
  min-width:100%;
  background:#eee;
}


/* slider arrows */
.hero__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width: clamp(32px, 4vw, 42px);
  height: clamp(32px, 4vw, 42px);
  border:none;
  background:#fff;
  border-radius:10px;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
  cursor:pointer;
  z-index:5;
  opacity:.95;
}
.hero__nav::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width: clamp(8px, 1.2vw, 10px);
  height: clamp(8px, 1.2vw, 10px);
  border-right:3px solid #222;
  border-bottom:3px solid #222;
  transform:rotate(-45deg);
}
.hero__nav--left{ left:16px; }
.hero__nav--left::before{ transform:rotate(135deg); }
.hero__nav--right{ right:16px; }

/* MAIN */
.main{ padding: 16px 0 26px; }

/* categories */
.cats__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:14px;
  margin: 14px 0 18px;
}
.cats__title{
  font-weight:700;
  color:#111;
  position:relative;
}
.cats__title::after{
  content:"";
  display:block;
  height:2px;
  width:70px;
  background:var(--red);
  margin-top:6px;
}
.cats__all{
  text-decoration:none;
  color:#111;
  font-weight:600;
  opacity:.85;
}
.arrow{ font-size:16px; position:relative; top:1px; color:var(--red); }

.cats__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 110px;          /* было 64 */
  justify-items:center;
  padding: 18px 0 10px; /* было 10px 0 6px */
}
.cat{
  text-decoration:none;
  color:#111;
  text-align:center;
  transition: transform .22s ease, filter .22s ease;
}
.cat:hover{
  transform: translateY(-8px);
}
.cat__img{
  width:120px;
  height:120px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  border:1px solid #eee;
  margin: 0 auto 14px;
  overflow:hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.cat:hover .cat__img{
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
  transform: scale(1.04);
}
.cat__img img{
  width:100%;
  height:100%;
  object-fit:cover; /* твои 384x282 красиво уместятся */
  display:block;
}
.cat__name{ font-size:14px; opacity:.95; }

.divider{
  height:1px;
  background:#eee;
  margin: 18px 0 18px;
}

.sectionTitle{
  font-size:14px;
  font-weight:700;
  text-align:center;
  margin: 10px 0 14px;
}

/* promo banners */
.banners{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px auto 12px;
}
.banner{
  height:auto;
  border-radius:2px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border:1px solid #f0f0f0;
  background:#fff;
}
.banner img{
  width:100%;
  height:auto;
  display:block;
}

/* CTA */
.ctaRow{ display:flex; justify-content:center; margin-top: 8px; }
.ctaBtn{
  width: 100%;
  height: 44px;  /* было 38 */
  display:grid;
  place-items:center;
  text-decoration:none;
  background: var(--red);
  color:#fff;
  font-weight:800;
  border-radius:2px;
}

/* FOOTER */
.footer{
  background: var(--black);
  color:#fff;
  padding: 40px 0 46px;
  margin-top: 10px;
}
.footer__grid{
  display:grid;
  grid-template-columns: 190px 190px 260px 280px 1fr; /* было 160 160 220 240 1fr */
  gap: 32px;   
}
.fhead{
  font-weight:900;
  font-size:14px;
  margin-bottom:14px;
  opacity:.95;
}
.flink{
  display:block;
  text-decoration:none;
  color:#d6d6d6;
  font-size:11px;
  padding: 4px 0;
  opacity:.9;
}
.flink:hover{ color:#fff; opacity:1; }
.apps{ display:flex; gap:10px; flex-wrap:wrap; }
.appBtn{
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  border-radius:6px;
  padding: 10px 14px;
  font-size:12px;
  white-space:nowrap;
  opacity:.95;
}

/* responsive */


.menuLayout{
  display:grid;
  grid-template-columns: 1fr 620px;
  gap: 0;
  min-height: calc(100vh - 56px);
}

.menuLeft{
  border-right: 1px solid #eee;
  padding: 10px 18px 24px;
}

.menuTabs{
  display:flex;
  gap: 36px;
  align-items:center;
  padding: 10px 6px 12px;
  border-bottom: 2px solid #eee;
}
.menuTabs .tab{
  background:none;
  border:none;
  padding: 10px 0;
  font-size:14px;
  cursor:pointer;
  color:#333;
  position:relative;
}
.menuTabs .tab.is-active{
  color: var(--red);
  font-weight:700;
}
.menuTabs .tab.is-active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-13px;
  width:34px;
  height:3px;
  background: var(--red);
  border-radius:2px;
}

.productsGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pCard{
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); /* сильнее */
  transition: transform .22s ease, box-shadow .22s ease;
}

.pImgWrap{
  height: 190px;              /* было 120 */
  background:#fff;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 18px 0;       /* воздух сверху */
}

.pImg{
  width: auto;                /* было 100% */
  height: 155px;              /* фикс “как на скрине” */
  max-width: 100%;
  object-fit: contain;        /* ключ: не режем */
  display:block;
}
.pBadge{
  position:absolute;
  top:10px;
  right:10px;
  font-size:11px;
  border:1px solid #ff6b6b;
  color:#ff3b3b;
  padding:4px 8px;
  border-radius:999px;
  background:#fff;
  font-weight:700;
}

.pBody{
  padding: 14px 16px 16px;
}

.pName{
  font-weight:900;
  font-size:15px;
  margin-bottom:4px;
}

.pDesc{
  font-size:12px;
  color:#777;
  line-height:1.3;
  min-height: 30px;
  margin-bottom: 10px;
}

.pOpts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 12px;
}

.optSelect{
  width:100%;
  height:40px;               /* было 30 */
  border:1px solid #e3e3e3;
  border-radius:8px;
  padding: 0 12px;
  background:#fff;
  font-size:13px;
}

.pBottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-top: 8px;
}

.pPrice{
  color: var(--red);
  font-weight:1000;
  font-size:13px;
}

.pBtn{
  background: var(--red);
  color:#fff;
  border:none;
  border-radius:6px;
  padding: 10px 16px;        /* крупнее */
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}

.pCard:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.pCard:hover .pImg{
  transform: scale(1.03);
}

.pImg{
  transition: transform .22s ease;
}

/* RIGHT CART */
.cartRight{
  background:#fff;
  display:flex;
  flex-direction:column;
  height: calc(100vh - 56px);
  position:sticky;
  top:56px;
}
.cartHeader{
  padding: 14px 14px 10px;
  border-bottom:1px solid #eee;
}
.cartBack{ color:#333; text-decoration:none; font-size:13px; display:inline-block; margin-bottom:8px; }
.cartTitle{ font-weight:900; font-size:13px; }

.cartEmpty{
  padding: 14px;
}
.cartEmptyText{
  font-size:12px;
  color:#666;
  margin: 10px 0 14px;
}
.cartBoxImgWrap{
  display:flex;
  justify-content:center;
  padding: 18px 0;
}
.cartBoxImg{ max-width: 250px; width: 100%; height:auto; opacity:.95; }

.cartItems{
  padding: 6px 10px 10px;
  overflow:auto;
  flex:1;
}
.cRow{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 10px;
  border-bottom:1px solid #eee;
}
.cThumb{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #eee;
}
.cMeta{ min-width:0; }
.cName{
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cVar{ font-weight:700; color:#666; }
.cPrice{ font-size:12px; color: var(--red); font-weight:900; margin-top:4px; }

.cQty{
  display:flex;
  align-items:center;
  gap: 6px;
}
.qtyBtn{
  width:26px;
  height:26px;
  border:1px solid #e5e5e5;
  background:#fff;
  border-radius:6px;
  cursor:pointer;
  font-weight:900;
}
.qtyVal{
  min-width: 18px;
  text-align:center;
  font-size:12px;
  font-weight:800;
}

.cartFooter{
  border-top:1px solid #eee;
  padding: 12px 12px 14px;
}
.couponRow{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}
.couponBtn{
  background:#fff;
  border:1px solid #e5e5e5;
  height:36px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
}
.orderBtn{
  background: var(--red);
  border:none;
  color:#fff;
  height:36px;
  border-radius:6px;
  cursor:pointer;
  font-weight:900;
  opacity:.45;
}
.orderBtn:disabled{ cursor:not-allowed; }
.orderBtn:not(:disabled){ opacity:1; }

/* MODAL like screenshot */
.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.modalOverlay.is-open{ display:flex; }

.locModal{
  width: 640px;
  max-width: calc(100% - 24px);
  background:#fff;
  border-radius:10px;
  position:relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
  overflow:hidden;
}
.modalClose{
  position:absolute;
  right: 10px;
  top: 10px;
  width:34px;height:34px;
  border:none;
  background:#111;
  color:#fff;
  border-radius:50%;
  cursor:pointer;
  font-size:22px;
  line-height:34px;
}

.locTabs{
  display:grid;
  grid-template-columns: 1fr 1fr;
  background:#f6f6f6;
  border-bottom:1px solid #eee;
}
.locTab{
  padding: 12px 14px;
  border:none;
  background:transparent;
  cursor:pointer;
  font-weight:900;
  color:#444;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.locTab.is-active{
  background:#fff;
  color: var(--red);
  border-bottom: 3px solid var(--red);
}
.locIcon{ font-size:16px; }

.locPane{
  display:none;
  padding: 16px 16px 18px;
}
.locPane.is-active{ display:block; }

.locPaneTitle{
  font-weight:900;
  margin-bottom: 12px;
}
.locLabel{
  font-size:12px;
  color:#333;
  font-weight:800;
  margin: 8px 0 8px;
}
.locInput{
  width:100%;
  height:44px;
  border:1px solid #e5e5e5;
  border-radius:8px;
  padding: 0 12px;
  font-size:14px;
}
.locInput.is-error{ border-color: var(--red); }

.locActions{
  display:flex;
  gap:10px;
  margin-top: 10px;
}
.locGhost{
  flex:1;
  height:40px;
  border-radius:8px;
  border:1px solid #e5e5e5;
  background:#fff;
  cursor:pointer;
  font-size:12px;
}
.locPrimary{
  height:40px;
  padding: 0 14px;
  border:none;
  background: var(--red);
  color:#fff;
  border-radius:8px;
  cursor:pointer;
  font-weight:900;
}

.filialList{
  max-height: 360px;
  overflow:auto;
  border-top:1px solid #eee;
  margin-top: 10px;
}
.filialRow{
  display:grid;
  grid-template-columns: 42px 1fr 88px;
  gap: 10px;
  align-items:center;
  padding: 12px 6px;
  border-bottom:1px solid #eee;
}
.filialNum{
  width:30px;height:30px;
  border-radius:50%;
  background:#444;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  margin-left:6px;
}
.filialName{ font-weight:900; font-size:13px; }
.filialAddr{ font-size:12px; color:#666; margin-top:2px; }
.filialPick{
  height:34px;
  border:none;
  background: var(--red);
  color:#fff;
  border-radius:8px;
  cursor:pointer;
  font-weight:900;
}

/* responsive */
@media (max-width: 1200px){
  .productsGrid{ grid-template-columns: repeat(2, 1fr); }
  .menuLayout{ grid-template-columns: 1fr 580px; }
}
@media (max-width: 980px){
  .menuLayout{ grid-template-columns: 1fr; }
  .cartRight{ position:relative; top:auto; height:auto; }
}

/* =========================
   CHECKOUT page (like screenshot)
   ========================= */

.checkoutBody{
  background: #efefef;
}

.checkoutMain{
  padding: 10px 0 40px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.03), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.04), transparent 45%),
    #efefef;
}

.checkoutWrap{
  width: 980px;               /* как на скрине: узкий блок по центру */
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.checkoutTop{
  padding: 10px 0 8px;
}
.backLink{
  text-decoration:none;
  color:#333;
  font-weight:700;
  font-size:13px;
}

.checkoutGrid{
  display:grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items:start;
}

.cardBlock{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 14px;
  margin-bottom: 14px;
}

.cardTitle{
  font-weight:900;
  font-size:12px;
  margin-bottom: 12px;
  color:#222;
}

.req{ color: #d70000; }

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fFull{ grid-column: 1 / -1; }

.fGroup label{
  display:block;
  font-size:11px;
  color:#555;
  margin-bottom:6px;
  font-weight:700;
}
.fGroup input,
.fGroup select{
  width:100%;
  height:36px;
  border:1px solid #e1e1e1;
  border-radius:3px;
  padding: 0 10px;
  font-size:12px;
  background:#fff;
}

.phoneRow{
  display:flex;
  gap: 8px;
  align-items:center;
}
.phoneCode{
  height:36px;
  width:54px;
  display:grid;
  place-items:center;
  border:1px solid #e1e1e1;
  border-radius:3px;
  background:#f5f5f5;
  font-size:12px;
  color:#333;
  font-weight:700;
}

.hintRow{
  margin-top: 10px;
  font-size:11px;
  color:#666;
  border-top:1px solid #eee;
  padding-top:10px;
}
.hintLink{
  color:#d40000;
  text-decoration:none;
  font-weight:800;
  margin-left:6px;
}

.locationRow{
  font-size:12px;
  color:#444;
  display:flex;
  gap: 8px;
  align-items:center;
}
.locDot{ opacity:.8; }

.noteArea{
  width:100%;
  min-height: 78px;
  border:1px solid #e1e1e1;
  border-radius:3px;
  padding: 10px;
  font-size:12px;
  resize: vertical;
}

.payWrap{ margin-top: 6px; }
.payCard{
  display:flex;
  align-items:center;
  gap: 10px;
  border:1px solid #ffb3b3;
  border-radius:3px;
  padding: 10px 10px;
  background:#fff6f6;
  position:relative;
}
.payIcon{ font-size:16px; }
.payName{ font-weight:900; font-size:12px; }
.paySub{ font-size:11px; color:#666; margin-top:2px; }
.payCheck{
  position:absolute;
  right: 10px;
  top: 10px;
  width:18px;height:18px;
  border-radius:50%;
  background:#d40000;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
}

.bankList{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bankRow{
  display:flex;
  gap: 8px;
  align-items:center;
  border:1px solid #eee;
  border-radius:3px;
  padding: 8px 10px;
  cursor:pointer;
  background:#fff;
  font-size:12px;
}
.bankRow input{ margin:0; }

.terms{
  display:flex;
  gap: 8px;
  align-items:center;
  font-size:12px;
  color:#444;
}

.checkoutBtn{
  width:100%;
  height:40px;
  margin-top: 10px;
  border:none;
  border-radius:3px;
  background:#f0b7bf; /* как на скрине (розовый) */
  color:#fff;
  font-weight:900;
  cursor:not-allowed;
}
.checkoutBtn.is-ready{
  background:#d40000;
  cursor:pointer;
}

/* RIGHT */
.sideCard{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 12px;
  margin-bottom: 14px;
}
.sideTitle{
  font-weight:900;
  font-size:12px;
}
.sideLink{
  display:inline-block;
  margin-top: 6px;
  font-size:11px;
  color:#d40000;
  text-decoration:none;
  font-weight:800;
}

.sideCart{ margin-top: 10px; }
.emptySide{
  padding: 22px 0;
  text-align:center;
  color:#666;
  font-size:12px;
  font-weight:700;
}

.sItem{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 8px 0;
  border-bottom:1px solid #eee;
}
.sItem:last-child{ border-bottom:none; }
.sImg{
  width:34px;height:34px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #eee;
}
.sName{
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sVar{ color:#666; font-weight:800; }
.sSub{ font-size:11px; color:#666; margin-top:2px; }
.sPrice{ font-size:11px; color:#111; font-weight:900; }

.sumRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 6px 0;
  font-size:12px;
}
.sumVal{ font-weight:900; }
.sumTotal{ font-weight:1000; }

/* Bank modal */
.bankModal{
  width: 980px;            /* шире чтобы iframe был удобный */
  max-width: calc(100% - 24px);
  height: 80vh;            /* чтобы влезало */
  background:#fff;
  border-radius:10px;
  position:relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
  overflow:hidden;
  padding: 14px 14px 14px;
  display:flex;
  flex-direction:column;
}

.bankModalHead{
  display:flex;
  gap: 12px;
  align-items:center;
  padding-right: 36px; /* чтобы крестик не наезжал */
  margin-bottom: 10px;
}

.bankLogo{
  width: 52px;
  height: 52px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
}
.bankLogo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.bankLogoFallback{
  font-weight:1000;
  color:#111;
}

.bankFrameWrap{
  flex:1;
  border:1px solid #eee;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.bankFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.bankModalTitle{
  font-weight:1000;
  font-size:14px;
  margin-bottom: 8px;
}
.bankModalText{
  font-size:12px;
  color:#555;
  margin-bottom: 12px;
}
.bankGo{
  display:block;
  text-decoration:none;
  background:#d40000;
  color:#fff;
  font-weight:1000;
  padding: 12px 14px;
  border-radius:8px;
  text-align:center;
}
.bankHint{
  margin-top: 10px;
  font-size:11px;
  color:#777;
  text-align:center;
}

@media (max-width: 980px){
  .checkoutGrid{ grid-template-columns: 1fr; }
}

.bankRow{
  display:flex;
  align-items:center;
  gap: 10px;
  border:1px solid #eee;
  border-radius:6px;
  padding: 10px 12px;
  cursor:pointer;
  background:#fff;
  font-size:13px;
  transition: border .15s ease, box-shadow .15s ease;
}

.bankRow:hover{
  border-color:#ddd;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.bankRow input{
  margin:0;
}

.bankRowInner{
  display:flex;
  align-items:center;
  gap: 10px;
}

.bankRowLogo{
  width: 28px;
  height: 28px;
  border-radius:6px;
  background:#fff;
  border:1px solid #eee;
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
}

.bankRowLogo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.bankRowLogoFallback{
  font-size:11px;
  font-weight:900;
  color:#111;
}

/* =========================
   INDEX mobile fixes
   ========================= */

/* шапка: чтобы не ломалась и не вылезала за экран */
@media (max-width: 768px){
  .topbar{ height:auto; }
  .topbar__row{
    height:auto;
    flex-wrap:wrap;
    gap:10px;
    padding:10px 0;
  }
  .topbar__actions{
    width:100%;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
  .topbar__link span:last-child{
    max-width: 46vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .topbar__lang{ padding:6px 10px; }
}

/* слайдер: на мобиле показывать баннер целиком по высоте, без "вырезания" */
@media (max-width: 768px){
  .hero__img{
    object-fit: contain;        /* важно: не режем */
    background:#0000;           /* чтобы не выглядело странно */
  }
  .hero__nav{
    width:42px;
    height:42px;
    border-radius:12px;
  }
}

/* кружки меню: сделать сетку 2x2, крупнее и аккуратнее */
@media (max-width: 768px){
  .cats__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    padding: 14px 0 8px;
  }
  .cat__img{
    width: 110px;
    height: 110px;
  }
  .cats__top{
    align-items:flex-end;
  }
}

/* промо баннеры: в колонку + правильная ширина */
@media (max-width: 768px){
  .banners{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .banner{
    border-radius:6px;
  }
  .banner img{
    width:100%;
    height:auto;
    display:block;
  }
}

/* кнопка меню: на всю ширину, норм высота */
@media (max-width: 768px){
  .ctaBtn{
    height: 46px;
    font-size: 14px;
  }
}

/* футер: 1 колонка, чтобы не было "каши" */
@media (max-width: 768px){
  .footer__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fhead{ font-size:14px; }
  .flink{ font-size:13px; }
}


@media (max-width: 980px){
  .footer__grid{ grid-template-columns: repeat(2, 1fr); }
  .banners{ grid-template-columns: 1fr; }
  .cats__grid{ gap: 24px; }
}
@media (max-width: 640px){
  .hero__wrap{
    height: clamp(220px, 56vw, 892px); /* адаптивная высота вместо auto */
  }

  /* стрелки меньше на телефонах */
  .hero__nav{
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .hero__nav::before{
    width: 9px;
    height: 9px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .hero__nav--left{ left: 10px; }
  .hero__nav--right{ right: 10px; }
}

/* ===== Combo page ===== */
.comboBody { background: #eef0f2; }
.comboMain { padding: 18px 0 90px; }
.comboWrap { max-width: 1140px; margin: 0 auto; padding: 0 12px; }

.comboHeaderCard{
  background:#fff; border:1px solid #eee; border-radius:8px;
  padding:18px; display:flex; gap:16px; align-items:center;
}
.comboHeaderText{ flex:1; }
.comboHeaderText h1{ margin:0 0 6px; font-size:22px; font-weight:700; }
.comboDesc{ color:#666; font-size:13px; }
.comboHeaderImg img{ width:420px; max-width:45vw; border-radius:6px; display:block; }

.comboSelectedBar{ margin:14px 0; }
.comboSelectedInner{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

.comboSlotBtn{
  display:flex; gap:10px; align-items:center;
  background:#f3f5f7; border:1px solid #e7eaee; border-radius:6px;
  padding:10px 12px; min-width:220px; cursor:pointer;
  transition:.15s ease;
}
.comboSlotBtn.is-active{ background:#eaf3ee; border-color:#cfe4d7; }
.comboSlotThumb{
  width:34px; height:34px; border-radius:6px; background:#fff; border:1px solid #e7eaee;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.comboSlotThumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.comboSlotTitle{ font-size:12px; font-weight:700; }
.comboSlotSub{ font-size:12px; color:#666; }

.comboGrid{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:16px; justify-items:center;
}
.comboPickCard{
  width:100%; background:#fff; border:1px solid #eee; border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
  overflow:hidden; max-width:320px;
}
.comboPickImg{ padding:14px; display:flex; justify-content:center; }
.comboPickImg img{ width:170px; height:auto; object-fit:contain; }
.comboPickBody{ padding:0 14px 10px; }
.comboPickName{ font-weight:700; font-size:13px; margin-bottom:4px; }
.comboPickDesc{ color:#777; font-size:12px; height:32px; overflow:hidden; }
.comboPickActions{ padding:0 14px 14px; display:flex; justify-content:flex-end; }

.comboPickBtn{
  background:#c8102e; color:#fff; border:none; border-radius:4px;
  padding:10px 16px; font-weight:700; cursor:pointer;
}
.comboPickBtn.is-selected{ background:#fff; color:#c8102e; border:1px solid #c8102e; }

.comboBottomBar{
  position:fixed; left:0; right:0; bottom:0;
  background:#c8102e; padding:12px 18px;
  display:flex; align-items:center; justify-content:space-between;
  z-index:50;
}
.comboPrice{ color:#fff; font-weight:800; }
.comboAddBtn{
  background:#fff; color:#c8102e; border:none; border-radius:4px;
  padding:12px 18px; font-weight:800; cursor:pointer;
  opacity:.55;
}
.comboAddBtn.is-active{ opacity:1; }
.comboAddBtn:disabled{ cursor:not-allowed; }

@media (max-width: 980px){
  .comboGrid{ grid-template-columns:repeat(2,1fr); }
  .comboHeaderImg img{ width:320px; }
}
@media (max-width: 560px){
  .comboGrid{ grid-template-columns:1fr; }
  .comboHeaderCard{ flex-direction:column; align-items:flex-start; }
  .comboHeaderImg img{ width:100%; max-width:100%; }
}

/* Контейнер для опций внутри карточки */
.comboPickOptions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Сам селект */
.comboSelect {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    outline: none;
    -webkit-appearance: none; /* Убирает стандартную стрелку в Safari/Chrome */
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

/* --- Новая панель слотов (горизонтальная) --- */
.comboSelectedBar {
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto; /* Горизонтальный скролл */
    white-space: nowrap;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    /* Скрываем скроллбар для красоты */
    scrollbar-width: none; 
}
.comboSelectedBar::-webkit-scrollbar {
    display: none;
}

.comboSelectedInner {
    display: flex;
    gap: 10px;
    padding: 0 15px; /* Отступы по бокам */
    width: max-content; /* Чтобы контент растягивал контейнер */
}

/* Стиль кнопки слота */
.comboSlotBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 140px; /* Минимальная ширина, чтобы текст влезал */
    max-width: 200px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    flex: 0 0 auto; /* Не сжимать кнопки */
}

/* Картинка внутри кнопки (маленькая) */
.comboSlotThumb {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comboSlotThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текст внутри кнопки */
.comboSlotInfo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.comboSlotTitle {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}
.comboSlotSub {
    font-size: 11px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- СОСТОЯНИЯ --- */

/* Активный слот (который сейчас выбираем) - синяя рамка или тень */
.comboSlotBtn.is-active {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,123,255, 0.1);
}

/* ЗАПОЛНЕННЫЙ СЛОТ (Selected) - Светло-зеленый */
.comboSlotBtn.is-filled {
    background-color: #e6ffea; /* Светло-зеленый фон */
    border-color: #28a745;     /* Зеленая рамка */
}

/* Если слот и активный, и заполненный */
.comboSlotBtn.is-filled.is-active {
    background-color: #dffff4;
    border-color: #007bff; /* Активный приоритетнее по рамке, чтобы видеть где мы */
}