/* ======================================================
   СыТО kitchen — stylesheet
   Дизайн вдохновлён kulinariya.shalyapinspb.ru
   Цветовая гамма — оригинальная тёмная
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --off-black:      #1a151f;
  --dark-olive:     #bf8441;
  --olive-metallic: #dea663;
  --dark-wood:      #232935;
  --accent:         #bf8441;
  --text:           #f5f5f5;
  --muted:          #dea663;
  --card-bg:        rgba(255,255,255,.04);
  --card-border:    rgba(255,255,255,.09);
  --header-h:       70px;
  --cart-w:         420px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--off-black);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.55;
}
body.cart-open { overflow: hidden; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: var(--dark-wood);
  border-bottom: 1px solid rgba(191,132,65,.18);
}
.header-inner {
  max-width: 1300px; margin: 0 auto;
  height: var(--header-h); padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.brand h1 {
  margin: 0; color: var(--accent);
  font-size: 20px; font-weight: 900;
  letter-spacing: .5px; white-space: nowrap;
}
.brand-tagline {
  color: #fff; font-size: 20px; font-weight: 900;
  letter-spacing: .5px; white-space: nowrap;
}

/* Nav */
nav#main-nav { position: relative; flex: 1; display: flex; justify-content: center; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #fff; font-size: 20px; cursor: pointer;
}
nav#main-nav ul {
  list-style: none; display: flex; gap: 4px; margin: 0; padding: 0;
}
nav#main-nav a {
  display: inline-block; padding: 7px 16px; border-radius: 30px;
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text);
  transition: background .15s, color .15s;
}
nav#main-nav a:hover { background: rgba(191,132,65,.15); color: var(--accent); }

/* Cart button */
.cart-btn {
  position: relative; flex-shrink: 0; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 30px;
  border: 1px solid rgba(191,132,65,.4);
  background: rgba(191,132,65,.08); color: var(--accent);
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.cart-btn:hover { background: rgba(191,132,65,.18); }
.cart-badge {
  display: flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #e74c3c; color: #fff;
  font-size: 11px; font-weight: 800;
}

/* Mobile nav */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  nav#main-nav { flex: none; }
  nav#main-nav ul {
    position: fixed; top: var(--header-h); left: 12px; right: 12px;
    flex-direction: column; gap: 4px;
    background: #232935; border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 10px;
    transform: scale(.97) translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 4000;
  }
  nav#main-nav.open ul { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
  nav#main-nav a { width: 100%; }
  .brand h1 { font-size: 17px; }
}

/* ===== MAIN ===== */
main { margin-top: var(--header-h); }

/* ===== HERO ===== */
.hero { width: 100%; line-height: 0; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%; display: block;
}
/* Тонкий градиент снизу чтобы hero плавно переходил в фон */
.hero-figure::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(transparent, var(--off-black));
}

/* ===== РАЗДЕЛЫ ===== */
.section-narrow {
  max-width: 1000px; margin: 0 auto; padding: 56px 24px;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 900;
  color: var(--accent); margin: 0 0 32px;
  text-align: center; text-transform: uppercase; letter-spacing: 1px;
}

/* ===== О НАС ===== */
.about-lead {
  font-size: 17px; font-weight: 700; color: var(--accent);
  max-width: 800px; margin: 0 auto 20px; text-align: center;
}
.about-subtitle {
  font-size: 16px; font-weight: 700; color: var(--accent);
  max-width: 800px; margin: 32px auto 12px;
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.body-text {
  font-size: 15px; line-height: 1.8; max-width: 800px;
  margin: 0 auto 16px; text-align: left; color: var(--muted);
}
.body-text strong { color: var(--text); }

/* ===== WARNING ===== */
.site-warning {
  font-size: 15px; line-height: 1.6;
  color: #e05050; background: rgba(200,60,60,.1);
  border-left: 4px solid #e05050;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px; margin: 0;
}

/* ===== CATEGORY STRIP ===== */
.cat-strip {
  position: sticky; top: var(--header-h); z-index: 500;
  background: var(--dark-wood);
  border-bottom: 1px solid rgba(191,132,65,.15);
  display: flex; gap: 6px; padding: 10px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-strip-item {
  white-space: nowrap; padding: 7px 18px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12); color: var(--muted);
  background: transparent; font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.cat-strip-item:hover { border-color: rgba(191,132,65,.4); color: var(--text); }
.cat-strip-item.active {
  background: var(--accent); color: var(--dark-wood);
  border-color: var(--accent); font-weight: 800;
}

/* ===== МЕНЮ ===== */
#menu { border-top: 1px solid rgba(255,255,255,.04); }
.menu-title-wrap { padding: 48px 24px 16px; text-align: center; }
.menu-section-wrap {
  max-width: 1360px; margin: 0 auto; padding: 40px 24px 72px;
}
.menu-status { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* Категория */
.menu-category {
  margin-bottom: 60px;
  scroll-margin-top: calc(var(--header-h) + var(--strip-h, 56px) + 16px);
}

.category-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 900; color: var(--accent);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 0 0 24px; padding-left: 14px;
  border-left: 4px solid var(--accent);
}

/* Сетка товаров */
.category-products {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) { .category-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .category-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .category-products { grid-template-columns: 1fr; } }

/* Карточка товара */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: rgba(191,132,65,.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.product-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  background: rgba(255,255,255,.04);
}
.product-body {
  padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.product-title {
  margin: 0; font-size: 15px; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.product-desc {
  margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); flex: 1;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 10px; flex-wrap: wrap;
}
.product-price-info { display: flex; flex-direction: row; align-items: baseline; gap: 4px; }
.product-price { font-size: 17px; font-weight: 800; color: var(--accent); }
.product-unit  { font-size: 12px; color: var(--muted); font-weight: 500; }

.product-nutrition {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted); opacity: .7;
  margin-top: 2px;
}

.btn-add {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border-radius: 30px; border: none;
  background: var(--dark-olive); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-add:hover { background: var(--olive-metallic); }
.btn-add:active { transform: scale(.96); }

.product-footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}
.avail-badge--yes { color: #5cb85c; }
.avail-badge--no  { color: #c0392b; }

.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}
.avail-dot--green { background: #5cb85c; }
.avail-dot--red   { background: #c0392b; }

.product-unavail {
  font-size: 12px; color: #c0392b; font-weight: 600;
  padding: 6px 12px; border-radius: 30px;
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.25);
}

/* ===== ДОСТАВКА ===== */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 860px) { .delivery-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 861px) { .delivery-grid { grid-template-columns: repeat(3, 1fr); } }

.delivery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delivery-card-icon { font-size: 32px; line-height: 1; }

.delivery-card-title {
  margin: 0;
  font-size: 16px; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: .5px;
}

.delivery-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}

.delivery-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.delivery-row:last-child { border-bottom: none; }
.delivery-row:nth-child(odd) { background: rgba(255,255,255,.03); }

.delivery-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.delivery-value {
  font-size: 14px; font-weight: 700; color: var(--text);
  text-align: right; flex-shrink: 0;
}
@media (max-width: 480px) {
  .delivery-row { flex-wrap: wrap; }
  .delivery-value { flex-shrink: 1; white-space: normal; }
}
.delivery-row--stacked { flex-direction: column; gap: 4px; }
.delivery-row--stacked .delivery-value { text-align: left; font-size: 13px; }
.delivery-value--free { color: #5cb85c; }

.delivery-note {
  margin: 0;
  font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 500;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.delivery-text {
  margin: 0;
  font-size: 14px; color: var(--muted); line-height: 1.7;
}

/* ===== КОНТАКТЫ ===== */
.section-contact { border-top: 1px solid rgba(255,255,255,.05); }
.contact-item { text-align: center; font-size: 16px; margin: 10px auto; color: var(--muted); }
.contact-item a { color: inherit; }
.contact-item a:hover { color: var(--accent); }
.map-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-border); margin-top: 24px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center; background: var(--dark-wood);
  color: var(--muted); padding: 20px 24px; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ===== OVERLAY ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 2990;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

/* ===== КОРЗИНА ===== */
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 3000;
  width: var(--cart-w); max-width: 100vw;
  background: #1e2330;
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--dark-wood);
  border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.cart-header h2 {
  margin: 0; font-size: 18px; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: .5px;
}
.cart-close-btn {
  width: 34px; height: 34px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05); color: var(--muted);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.cart-close-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

.cart-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 22px; }

.cart-empty {
  text-align: center; padding: 48px 20px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
}

.cart-item-wrap { border-bottom: 1px solid rgba(255,255,255,.06); }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
}
.cart-item-minwarn {
  font-size: 12px; color: var(--accent);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .25s ease, opacity .25s ease, padding .25s ease;
  padding: 0 0;
}
.cart-item-minwarn.show {
  max-height: 30px; opacity: 1; padding: 0 0 10px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-right { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-item-remove {
  width: 30px; height: 30px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: var(--muted);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s, color .12s;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  background: rgba(200,60,60,.18); border-color: rgba(200,60,60,.5); color: #e05050;
}
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cart-item-unit { font-size: 11px; color: var(--muted); }
.cart-item-price { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 3px; }

.qty-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.qty-btn:hover { background: rgba(191,132,65,.2); border-color: rgba(191,132,65,.4); }
.qty-val {
  font-size: 14px; font-weight: 700; min-width: 44px;
  text-align: center; color: var(--text);
}

.cart-footer {
  padding: 18px 22px; background: var(--dark-wood);
  border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
/* Строки итогов */
.cart-totals { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
.cart-totals-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px; color: var(--muted);
}
.cart-totals-row--total {
  font-size: 17px; font-weight: 800; color: #fff;
  border-bottom: none; padding-top: 10px;
}
.cart-totals-row--total span { color: var(--accent); }
.cart-delivery-free { color: #5cb85c; font-weight: 700; }

/* Предупреждение о минимальной сумме */
.cart-min-warning {
  font-size: 13px; font-weight: 600; color: #e05050;
  background: rgba(200,60,60,.1); border: 1px solid rgba(200,60,60,.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
  text-align: center; line-height: 1.5;
}

.btn-primary {
  width: 100%; padding: 13px; border-radius: 30px; border: none;
  background: var(--dark-olive); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-primary:hover { background: var(--olive-metallic); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0 0 18px; transition: color .15s;
}
.btn-back:hover { color: var(--text); }

/* ===== ФОРМА ОФОРМЛЕНИЯ ===== */
.checkout-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(200,185,168,.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(191,132,65,.5);
  background: rgba(191,132,65,.04);
}
.form-group textarea { resize: vertical; min-height: 72px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.time-options { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.time-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); cursor: pointer;
  transition: background .12s, border-color .12s;
}
.time-option:hover { background: rgba(191,132,65,.08); border-color: rgba(191,132,65,.3); }
.time-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.time-option span { font-size: 14px; font-weight: 600; }
.time-option input[type="radio"]:checked + span { color: var(--accent); }

.pet-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03); cursor: pointer;
  transition: background .12s, border-color .12s;
}
.pet-option:hover { background: rgba(191,132,65,.08); border-color: rgba(191,132,65,.3); }
.pet-option input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.pet-option span { font-size: 14px; font-weight: 600; }

.time-window-hint {
  font-size: 12px; color: var(--muted); margin-top: 6px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.delivery-closed-note {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.delivery-closed-note a { color: var(--accent); }

.payment-note {
  font-size: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(191,132,65,.08); border: 1px solid rgba(191,132,65,.2);
  color: var(--muted); line-height: 1.6; font-weight: 500;
}

.order-summary {
  font-size: 13px; padding: 12px 14px; border-radius: 10px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08);
  color: var(--muted); line-height: 1.7; margin-bottom: 6px;
}
.order-summary strong { color: var(--text); font-size: 14px; }
.order-summary-total { margin-top: 8px; font-weight: 800; color: #fff; font-size: 15px; }

/* ===== AUTOCOMPLETE DROPDOWN ===== */
.suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 500;
  background: #1e2330;
  border: 1px solid rgba(191,132,65,.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.suggest-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .1s, color .1s;
  line-height: 1.4;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover,
.suggest-item--active {
  background: rgba(191,132,65,.12);
  color: var(--text);
}

/* Родитель инпута должен быть relative */
.form-group { position: relative; }

/* ===== TOAST ===== */
.cart-toast {
  position: fixed; top: calc(var(--header-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 4000; background: var(--dark-wood); color: var(--text);
  padding: 11px 22px; border-radius: 30px;
  border: 1px solid rgba(191,132,65,.3);
  font-family: inherit; font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.55);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Inline qty на карточке ---- */
.inline-qty {
  display: inline-flex; align-items: center; gap: 4px;
}
.inline-qty-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--dark-olive); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.inline-qty-btn:hover { background: var(--olive-metallic); }
.inline-qty-btn:active { transform: scale(.9); }
.inline-qty-val {
  min-width: 42px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.inline-qty-btn--delete { background: #7a2020 !important; }
.inline-qty-btn--delete:hover { background: #a02828 !important; }

/* ---- Sticky-плашка корзины ---- */
.cart-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
  background: var(--accent);
  color: #1a151f;
  padding: 14px 24px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -2px 16px rgba(0,0,0,.4);
}
.cart-sticky-bar.visible { transform: translateY(0); }
.cart-sticky-bar.hidden   { transform: translateY(100%); }
.sticky-bar-left {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
}
.sticky-bar-right {
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 1px;
}
.sticky-bar-total {
  font-size: 17px; font-weight: 800;
}
.sticky-bar-delivery {
  font-size: 11px; opacity: .7;
}

/* ===== MOBILE ===== */

/* --- Планшеты и мобильные <860px --- */
@media (max-width: 860px) {
  .menu-toggle { width: 44px; height: 44px; }
  .menu-section-wrap { padding: 24px 16px 100px; }
  .cat-strip { padding: 0 16px; }
  .section-narrow { padding: 32px 16px; }
  .menu-title-wrap { padding: 28px 16px 12px; }
}

/* --- Мобильные <480px --- */
@media (max-width: 480px) {
  :root {
    --cart-w: 100vw;
    --header-h: 60px;
  }

  /* Header */
  .header-inner { padding: 0 16px; }
  .brand h1 { font-size: 16px; }

  /* Кнопки +/− и удаления — увеличить до 38px */
  .qty-btn {
    width: 38px; height: 38px; font-size: 18px;
  }
  .cart-item-remove {
    width: 38px; height: 38px; font-size: 14px;
  }
  .qty-val { min-width: 40px; font-size: 14px; }

  /* Кнопка «Добавить» в карточке */
  .btn-add { padding: 10px 18px; font-size: 13px; }

  /* Инпуты формы — увеличить высоту для пальца */
  .form-group input,
  .form-group textarea {
    padding: 13px 14px; font-size: 16px; /* 16px предотвращает zoom на iOS */
  }

  /* Радиокнопки времени доставки */
  .time-option { padding: 14px 16px; }
  .time-option input[type="radio"] { width: 20px; height: 20px; }
  .time-option span { font-size: 15px; }

  /* Корзина */
  .cart-header, .cart-body, .cart-footer { padding-left: 16px; padding-right: 16px; }
  .cart-header h2 { font-size: 17px; }

  /* Секция доставки */
  .delivery-grid { gap: 14px; }

  /* Hero градиент меньше */
  .hero-figure::after { height: 50px; }

  /* Toast — меньше отступы */
  .cart-toast { font-size: 13px; padding: 10px 18px; max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
}
