*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: only light; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Корневая обвязка лендинга под шаблон Bitrix (класс на <body>) */
.bus-landing #top:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
.tab:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

h1, h2, h3, h4 { color: var(--color-text); letter-spacing: -.4px; }
.h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; }
.h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.subtitle { font-size: 18px; font-weight: 500; color: var(--color-text-muted); line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-bg-hover); color: var(--color-primary);
  font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 50px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .2px;
  padding: 14px 26px; border-radius: var(--radius-btn);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap; user-select: none;
}
.btn-primary { background-color: var(--color-primary); background-image: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary-lg); }
.btn-secondary { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; padding: 12px 24px; }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { border: 2px solid #fff; color: #fff; background: transparent; padding: 12px 24px; }
.btn-ghost:hover { background: #fff; color: var(--color-primary); }
.btn-white { background: #fff; color: var(--color-primary); border-radius: var(--radius-btn); padding: 14px 28px; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-sm { font-size: 13px; padding: 10px 16px; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: var(--shadow-nav); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.logo-plate {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 8px;
  background: #000;
  border-radius: 10px;
}

.logo-plate--header {
  margin-right: -8px;
}

.footer .logo-plate {
  margin-bottom: 14px;
}

.logo { font-size: 18px; font-weight: 700; letter-spacing: -.3px; display: inline-flex; align-items: center; gap: 8px; }
.logo--image { gap: 0; line-height: 0; }
.logo__img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo--header .logo__img,
.logo--footer .logo__img {
  width: 52px;
  height: 52px;
}
.logo .logo-emoji { font-size: 22px; }
.logo .logo-1 { color: var(--color-text); }
.logo .logo-2 { color: var(--color-primary); }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--color-text); transition: color var(--t); }
.nav-links a:hover { color: var(--color-primary); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cart-btn.nav-cart-desktop {
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border-radius: 10px;
  background: #000;
  border: none;
  box-shadow: none;
  color: var(--nav-bottom-text-active);
}

.nav-cart-desktop__wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-desktop__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-cart-desktop__ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.cart-count--dock,
.cart-count--bottom {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--nav-bottom-badge);
  color: var(--nav-bottom-badge-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--nav-bottom-bg);
}

.cart-count--dock:empty,
.cart-count--dock[data-empty="true"],
.cart-count--bottom:empty,
.cart-count--bottom[data-empty="true"] {
  display: none;
}

.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; }
.burger span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Нижняя навигация (моб.) + блокировка скролла без сдвига из‑за скроллбара */
html.nav-sheet-lock {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  padding-right: var(--nav-scroll-lock, 0px);
}

body.nav-sheet-lock {
  overflow: hidden;
}

html.dish-modal-lock {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  padding-right: var(--dish-scroll-lock, 0px);
}

body.dish-modal-lock {
  overflow: hidden;
}

.nav-bottom { display: none; }

/* Выезжающее меню «Ещё» (только моб.) */
.nav-sheet {
  display: none;
}

/* HERO */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; background: #fff; }
.hero .hero-grid,
.hero .hero-arrow { position: relative; z-index: 1; }
.hero-blob { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(40px); z-index: 0; }
.hero-blob.b1 { width: 480px; height: 480px; background: var(--color-primary); opacity: .07; top: -120px; right: -80px; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--color-secondary); opacity: .08; bottom: -100px; left: -60px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.hero-text .h1 { margin: 18px 0 18px; }
.hero-text .h1 .accent { color: var(--color-primary); }
.hero-text .subtitle { max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.hero-stats .stat { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats .sep { width: 1px; height: 18px; background: var(--color-border); }

.hero-card {
  position: relative; aspect-ratio: 1 / 1.05; max-width: 480px; margin-left: auto;
  border-radius: var(--radius-lg); background: var(--gradient-primary);
  padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; box-shadow: 0 30px 60px -20px rgba(255,107,0,.45); overflow: hidden;
}
.hero-card--has-bg {
  background: #0a0a0a var(--hero-card-bg) center / cover no-repeat;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.hero-card__spacer { flex: 1; min-height: 0; pointer-events: none; }
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(255,217,0,.35), transparent 50%);
  pointer-events: none;
}
.hero-card--has-bg::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}
.hero-card .card-emoji {
  position: relative; z-index: 1;
  font-size: clamp(120px, 18vw, 220px); line-height: 1;
  align-self: center; margin: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.18));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card .card-foot { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.hero-card .card-foot .card-heading { font-size: 26px; font-weight: 800; letter-spacing: -.4px; color: #fff; margin: 0; }
.hero-card .card-foot h4 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; color: #fff; }
.hero-card .card-foot p { font-size: 14px; font-weight: 500; opacity: .85; margin-top: 4px; }
.hero-card .price-pill { background: #fff; color: var(--color-primary); font-weight: 800; font-size: 16px; padding: 10px 16px; border-radius: 50px; white-space: nowrap; }

.hero-arrow {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: max-content; margin: 28px auto 0; padding: 10px 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-text-muted); border-radius: 50px;
  transition: color var(--t), transform var(--t);
}
.hero-arrow:hover { color: var(--color-primary); transform: translateY(-2px); }
.hero-arrow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--color-primary); color: var(--color-primary);
  font-size: 18px; font-weight: 900;
  animation: hero-bounce 1.6s ease-in-out infinite;
}
@keyframes hero-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.section { padding: var(--section-pad) 0; position: relative; }
.section.warm { background: var(--color-bg-warm); }

@media (min-width: 821px) {
  #menu.section {
    padding-top: 0;
    scroll-margin-top: 88px;
  }
  .hero {
    padding-bottom: 28px;
  }
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .h2 { margin-bottom: 14px; }

/* FEATURES */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat-card { background: #fff; border-radius: var(--radius-card); padding: 28px 24px; box-shadow: var(--shadow-card); transition: transform var(--t-slow), box-shadow var(--t-slow); }
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.feat-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-bg-hover); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 18px; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px; }
.feat-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; }

/* MENU */
.tabs {
  position: sticky; top: 72px; z-index: 90;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 36px; padding: 14px 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  margin-left: -24px; margin-right: -24px;
}
.tab { padding: 12px 22px; border-radius: 50px; background: #F5F5F5; color: var(--color-text-muted); font-size: 14px; font-weight: 600; transition: background var(--t), color var(--t), transform var(--t); display: inline-flex; align-items: center; }
.tab:hover { background: #ECECEC; color: var(--color-text); }
.tab.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.menu-catalog { display: flex; flex-direction: column; gap: 56px; }
.menu-category {
  scroll-margin-top: 148px;
  position: relative;
  width: 100%;
}
.menu-category__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--color-text);
}
/* Анимация появления карточек без translateY — иначе сетка наезжает на заголовок следующего раздела */
.menu-catalog .dish.reveal {
  opacity: 0;
  transform: none;
}
.menu-catalog .dish.reveal.in {
  opacity: 1;
  transform: none;
}

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dish { position: relative; background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.dish-img { position: relative; height: 180px; background: var(--gradient-warm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dish-img:not(:has(.dish-photo))::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%); pointer-events: none; }
.dish-img .emoji { font-size: 88px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
/* Превью товара (JPG/WEBP) вместо эмодзи — пример: «Шаверма с говядиной» */
.dish-img .dish-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Прогрессивная загрузка фото (LQIP → HQ, blur-up) */
.dish-img--progressive { background: #ebe6e0; }
.dish-img--progressive .dish-photo--placeholder {
  z-index: 1;
  transform: scale(1.06);
  filter: blur(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.dish-img--progressive .dish-photo--full {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.dish-img--progressive.is-photo-loaded .dish-photo--full { opacity: 1; }
.dish-img--progressive.is-photo-loaded .dish-photo--placeholder {
  opacity: 0;
  visibility: hidden;
}
.dish-img--progressive.is-photo-error .dish-photo--placeholder { filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dish-img--progressive .dish-photo--placeholder,
  .dish-img--progressive .dish-photo--full { transition: none; }
  .dish-img--progressive .dish-photo--placeholder { filter: none; transform: none; }
}
.dish-badge { position: absolute; top: 14px; left: 14px; background: var(--color-primary); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .3px; box-shadow: 0 4px 12px rgba(255,107,0,.4); }
.dish-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.dish-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.1px; }
.dish-desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; min-height: 40px; }
.dish-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.dish-price {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
/* Фиксированная область: переключение «− 1 +» ↔ «В корзину» без сдвига цены и карточки */
.dish-add {
  flex-shrink: 0;
  display: inline-grid;
  justify-items: end;
  align-items: center;
  min-width: 8.25rem;
  min-height: 38px;
}
.dish-add > .add-btn,
.dish-add > .dish-qty {
  grid-area: 1 / 1;
}
.add-btn { background-color: var(--color-primary); background-image: var(--gradient-primary); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-btn); display: inline-flex; align-items: center; gap: 6px; transition: transform var(--t), box-shadow var(--t); box-shadow: var(--shadow-primary-md); white-space: nowrap; }
.add-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary-lg); }
.add-btn[hidden] { display: none !important; }

/* Кнопка/счётчик на карточке — как активная вкладка: плоский primary, без градиента */
#menu .dish-add .add-btn {
  background-color: var(--color-primary);
  background-image: none;
  box-shadow: none;
}
#menu .dish-add .add-btn:hover {
  background-color: var(--color-secondary);
  background-image: none;
  box-shadow: none;
}
#menu .dish-add .dish-qty {
  background: var(--color-primary);
  background-image: none;
  box-shadow: none;
}

.dish-qty {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-btn);
  overflow: hidden;
  box-shadow: var(--shadow-btn);
  background: var(--gradient-primary);
}
.dish-qty[hidden] { display: none !important; }
.dish-qty__btn {
  width: 36px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--t);
}
.dish-qty__btn:hover { background: rgba(255, 255, 255, 0.12); }
.dish-qty__btn:active { background: rgba(0, 0, 0, 0.08); }
.dish-qty__val {
  min-width: 2.35em;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
}
.dish-qty__val.bump { animation: bump .35s ease; }

/* Модалка дополнений */
.dish-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.dish-modal.is-open {
  display: block;
}

.dish-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 20, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.dish-modal__panel {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: var(--nav-bottom-radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  outline: none;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dish-modal.is-open .dish-modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dish-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 22px 16px;
}

.dish-modal__dock {
  flex-shrink: 0;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: #0c0c0c;
}

.dish-modal__dock-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.dish-modal__dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dish-modal__dock-sum {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dish-modal__dock-sum-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.dish-modal__dock-sum-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.dish-modal__dock-sum-meta {
  min-height: 17px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.dish-modal__dock-sum-meta.is-empty {
  visibility: hidden;
}

.dish-modal__dock-sum-meta[hidden] {
  display: block !important;
  visibility: hidden;
}

.dish-modal__dock-cancel {
  flex-shrink: 0;
  align-self: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.dish-modal__dock-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.dish-modal__dock-cancel:active {
  transform: scale(0.97);
}

.dish-modal__dock-cancel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Общий стиль кнопок дока модалки (как «Отмена») */
.dish-modal__dock-add,
.dish-modal__dock-qty {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.dish-modal__dock .dish-add.dish-modal__add {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
  align-self: stretch;
}

.dish-modal__dock .dish-add.dish-modal__add > .add-btn,
.dish-modal__dock .dish-add.dish-modal__add > .dish-qty {
  grid-area: 1 / 1;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dish-modal__dock-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: none;
  white-space: nowrap;
}

.dish-modal__dock-add:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.dish-modal__dock-add:active {
  transform: scale(0.99);
}

.dish-modal__dock-add:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.dish-modal__dock-add-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0.92;
}

.dish-modal__dock-add-price:empty {
  display: none;
}

.dish-modal__dock-add-price::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.75;
  font-weight: 600;
}

.dish-modal__dock .dish-add.dish-modal__add > .dish-qty.dish-modal__dock-qty {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-image: none;
}

.dish-modal__dock .dish-qty__val.bump {
  animation: none;
}

.dish-modal__dock-qty:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.dish-modal__dock-qty .dish-qty__btn {
  flex: 0 0 52px;
  min-height: 48px;
  width: 52px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.dish-modal__dock-qty .dish-qty__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dish-modal__dock-qty .dish-qty__btn:active {
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.dish-modal__dock-qty .dish-qty__val {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.dish-modal__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.35px;
  line-height: 1.25;
  margin-bottom: 6px;
  padding-right: 8px;
}

.dish-modal__lead {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dish-modal__extras {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.dish-modal__extras li + li {
  margin-top: 0;
}

.dish-modal__check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1.5px solid #ebe8e3;
  background: #fafaf9;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.dish-modal__check-text {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
}

.dish-modal__check-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #15803d;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.dish-modal__check-price--free {
  color: #6b7280;
  font-weight: 600;
  background: #f4f4f5;
  border-color: #e5e7eb;
}

.dish-modal__check:hover {
  border-color: #d4d1cb;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dish-modal__check:has(input:checked) {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.dish-modal__check:has(input:checked) .dish-modal__check-price:not(.dish-modal__check-price--free) {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.dish-modal__check:has(input:focus-visible) {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.dish-modal__check input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 7px;
  border: 2px solid #d1cdc6;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.dish-modal__check input:hover {
  border-color: #22c55e;
}

.dish-modal__check input:checked {
  border-color: #16a34a;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px #fff;
}

.dish-modal__check input:active {
  transform: scale(0.92);
}

@media (max-width: 520px) {
  .dish-modal__panel {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    top: max(10px, env(safe-area-inset-top, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: none;
    height: auto;
    transform: translateY(100%);
  }

  .dish-modal.is-open .dish-modal__panel {
    transform: translateY(0);
  }

  .dish-modal__scroll {
    padding: 20px 18px 12px;
  }

  .dish-modal__dock {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom, 0px));
  }

  .dish-modal__dock-sum-val {
    font-size: 24px;
  }
}

/* STEPS */
#how {
  overflow-x: clip;
}

#how .container {
  min-width: 0;
  max-width: 100%;
}

ol.steps,
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  min-width: 0;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
}
.steps li {
  list-style: none;
  list-style-type: none;
  min-width: 0;
}
.steps li::marker {
  content: none;
  font-size: 0;
}
.step {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 26px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -56px auto 18px;
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
  flex-shrink: 0;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.2px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: break-word;
}

#how .section-head .subtitle {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 1025px) {
  #how .steps {
    padding-top: 0;
  }

  #how .step-num {
    margin-top: 0;
  }
}

/* PROMO */
.promo {
  max-width: 900px; margin: 0 auto;
  background: var(--gradient-primary); border-radius: var(--radius-lg);
  padding: 48px 56px; color: #fff;
  display: flex; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(255,107,0,.45);
}
.promo::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); top: -80px; right: -60px; }
.promo::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -60px; left: 30%; }
.promo-text { flex: 1; position: relative; z-index: 1; }
.promo-text h3 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.15; color: #fff; }
.promo-text p { font-size: 16px; font-weight: 500; opacity: .92; }
.promo-text code { background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 6px; font-family: var(--font-main); font-weight: 700; letter-spacing: .5px; }
.promo .btn-white { position: relative; z-index: 1; flex-shrink: 0; }

/* REVIEWS */
.rating-top { text-align: center; margin-bottom: 44px; }
.rating-top .big { font-size: clamp(48px, 6vw, 72px); font-weight: 800; color: var(--color-primary); letter-spacing: -2px; line-height: 1; }
.rating-top .small { font-size: 16px; font-weight: 500; color: var(--color-text-muted); margin-top: 8px; }
.rating-top .stars-row { font-size: 22px; letter-spacing: 4px; margin: 6px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--color-bg-warm); border-radius: var(--radius-card); padding: 28px; border-left: 4px solid var(--color-primary); transition: transform var(--t-slow), box-shadow var(--t-slow); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.review .stars { color: #FFB800; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-size: 15px; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 16px; }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.review .name { font-size: 15px; font-weight: 700; }

/* DELIVERY */
.delivery-card { background: #fff; border-radius: var(--radius-card); padding: 40px; box-shadow: var(--shadow-soft); max-width: 1000px; margin: 0 auto; }
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.zone { background: var(--color-bg-hover); color: var(--color-primary); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 50px; transition: background var(--t), color var(--t), transform var(--t); }
.zone:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.delivery-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.delivery-info .info { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--color-bg-warm); }
.delivery-info .info .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--color-bg-hover); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.delivery-info .info h3,
.delivery-info .info h4 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.delivery-info .info p { font-size: 13px; color: var(--color-text-muted); }

/* CTA */
.cta-section { padding: var(--section-pad) 0; background: var(--gradient-primary); position: relative; overflow: hidden; }
.cta-section::before, .cta-section::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.cta-section::before { width: 460px; height: 460px; top: -160px; left: -100px; }
.cta-section::after { width: 360px; height: 360px; bottom: -120px; right: -80px; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cta-text { color: #fff; }
.cta-text .h2 { color: #fff; margin-bottom: 14px; }
.cta-text p { font-size: 17px; font-weight: 500; opacity: .92; margin-bottom: 26px; line-height: 1.55; }
.alt-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.order-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); }
.order-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.order-card .lead { font-size: 14px; color: var(--color-text-muted); margin-bottom: 22px; }
.field { display: block; width: 100%; border: 2px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font-main); font-size: 16px; color: var(--color-text); margin-bottom: 12px; background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.field::placeholder { color: #B0B0B0; }
.field:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,107,0,.10); }
.order-card .submit { width: 100%; margin-top: 8px; font-size: 15px; padding: 16px; }
.order-card .submit[role="button"] { cursor: pointer; box-sizing: border-box; }
.order-card .submit[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }
.order-card .agree { font-size: 12px; color: var(--color-text-muted); margin-top: 12px; text-align: center; }

.bus-landing-feedback { position: relative; }
.bus-order-form-errors { color: #c62828; font-size: 14px; margin-bottom: 12px; font-weight: 600; line-height: 1.4; }
.bus-order-form-done {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px 0 20px;
}
.bus-landing-feedback.is-sent .bus-order-form-fields { display: none !important; }
.bus-landing-feedback.is-sent .bus-order-form-done { display: flex; }
.bus-order-form-done__check { color: var(--color-primary); display: flex; line-height: 0; }
.bus-order-form-done__text { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-text); max-width: 320px; line-height: 1.45; }

/* FOOTER */
.footer { background: var(--color-dark); color: #fff; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #2E2E2E; }
.footer .logo .logo-1,
.footer .logo .logo-2 { color: #fff; }
.footer .slogan { margin-top: 14px; color: #9A9A9A; font-size: 14px; line-height: 1.55; max-width: 300px; }
.footer h5,
.footer .footer-col__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li, .footer a { font-size: 14px; font-weight: 500; color: #fff; }
.footer a:hover { color: var(--color-primary); }
.footer .muted { color: #9A9A9A; font-weight: 400; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-size: 13px; color: #9A9A9A; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-socials a.footer-socials__link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-socials a.footer-socials__link .footer-socials__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}
.footer-socials a.footer-socials__link .footer-socials__icon path,
.footer-socials a.footer-socials__link .footer-socials__icon rect {
  vector-effect: non-scaling-stroke;
}
.footer-socials a.footer-socials__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 107, 0, 0.42);
  transform: translateY(-2px);
}
.footer-socials a.footer-socials__link:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.footer .footer-socials a.footer-socials__link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .footer-socials a.footer-socials__link,
  .footer-socials a.footer-socials__link:hover,
  .footer-socials a.footer-socials__link:active {
    transition: none;
    transform: none;
  }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
/* Блоки разделов меню не анимируем сдвигом — только карточки внутри .menu-catalog */
#menu .menu-category.reveal,
#menu .menu-category {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid .col-hours { display: none; }
  .hero-grid { gap: 32px; }
  .cta-grid { gap: 36px; }

  /* Шаги «Как заказать» — строго вертикально */
  #how ol.steps,
  #how .steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }

  #how .steps > li.step {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  #how .step {
    padding: 22px 20px 20px;
    text-align: left;
  }

  #how .step:hover {
    transform: none;
  }

  #how .step-num {
    margin: 0 0 14px;
    width: 52px;
    height: 52px;
    font-size: 20px;
    border-width: 3px;
  }

  #how .step h3 {
    font-size: 17px;
  }
}

@media (max-width: 820px) {
  :root { --section-pad: 72px; }

  #nav {
    display: none !important;
  }

  .hero {
    padding-top: max(40px, calc(20px + env(safe-area-inset-top, 0px)));
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { margin: 0 auto; max-width: 420px; }
  .cta-grid { grid-template-columns: 1fr; }

  #how .section-head {
    margin-bottom: 32px;
  }

  #how .section-head .subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .reviews-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }

  /* Узкая сетка 2×: цена над кнопкой, без переноса «320» / «₽» */
  .dish-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dish-add {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .dish-add > .add-btn {
    width: 100%;
    justify-content: center;
  }

  .dish-add > .dish-qty {
    width: 100%;
    justify-content: center;
  }

  /* Меню: вкладки — горизонтальный «слайдер» со свайпом */
  .tabs {
    top: env(safe-area-inset-top, 0px);
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .tab.active {
    scroll-snap-align: center;
  }

  .promo { flex-direction: column; align-items: flex-start; padding: 36px 28px; gap: 20px; }
  .delivery-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 18px; }

  #how .section-head {
    margin-bottom: 28px;
  }

  #how .section-head .h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  #how .steps {
    gap: 12px;
  }

  #how .step {
    padding: 18px 16px 18px;
    border-radius: 16px;
  }

  #how .step-num {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  #how .step h3 {
    font-size: 16px;
  }

  .tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
  .feat-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }

  /* Одна колонка — снова цена и кнопка в одну строку */
  .dish-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dish-add {
    width: auto;
    min-width: 8.25rem;
    justify-items: end;
  }

  .dish-add > .add-btn {
    width: auto;
  }

  .dish-add > .dish-qty {
    width: auto;
  }

  .delivery-card { padding: 28px 20px; }
  .order-card { padding: 26px 20px; }
  .promo { padding: 28px 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-right .btn-primary { display: none; }
}

/* --- Страница корзины (cart.html) --- */
.cart-page {
  padding: 32px 0 80px;
  min-height: 50vh;
}
.cart-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.cart-page__head .h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}
.cart-page__lead {
  width: 100%;
  margin: 0;
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.cart-page__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-page__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px 20px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.cart-line__thumb {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-line__body { min-width: 0; }
.cart-line__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.cart-line__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.45;
}
/* Добавки / вариант позиции: две одинаковые шаурмы с разным составом читаются по чипам */
.cart-line__variant {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-line__variant-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cart-line__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cart-line__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  background: linear-gradient(180deg, #fafbfc 0%, #eef1f5 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 2px rgba(15, 23, 42, 0.04);
}
.cart-line__chip--empty {
  color: var(--color-text-muted);
  font-weight: 500;
  background: rgba(248, 250, 252, 0.9);
  border-style: dashed;
  border-color: var(--color-border);
  box-shadow: none;
}
.cart-line__chip-label {
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-line__chip-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Карточка блюда с несколькими комплектациями (варианты в виде списка) */
.cart-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px 22px;
  align-items: start;
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.cart-card__thumb {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-card__thumb--photo,
.cart-line__thumb--photo {
  padding: 0;
  font-size: 0;
}
.cart-card__thumb-img,
.cart-line__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-card__body {
  min-width: 0;
}
.cart-card__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.25px;
}
.cart-card__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 14px;
  line-height: 1.4;
}
.cart-card__variants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-card__variant {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(165deg, #fbfbfc 0%, #f1f3f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}
.cart-card__variant-main {
  min-width: 0;
}
.cart-card__variant-line {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}
.cart-card__variant-num {
  display: inline-block;
  min-width: 1.25em;
  font-weight: 800;
  color: var(--color-primary);
}
.cart-card__variant-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}
.cart-card__variant-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-card__qty {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fafafa;
}
.cart-card__qty button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  transition: background 0.2s;
}
.cart-card__qty button:hover {
  background: var(--color-bg-hover);
}
.cart-card__qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.cart-card__remove {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
}
.cart-card__remove:hover {
  color: #c62828;
}

.cart-line__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cart-line__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-line__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}
.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fafafa;
}
.cart-line__qty button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  transition: background 0.2s;
}
.cart-line__qty button:hover {
  background: var(--color-bg-hover);
}
.cart-line__qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.cart-line__remove {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
}
.cart-line__remove:hover {
  color: #c62828;
}
.cart-empty {
  text-align: center;
  padding: 56px 28px;
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}
.cart-empty__ico {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}
.cart-empty__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
}
.cart-empty__text {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.cart-aside {
  position: sticky;
  top: 96px;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.cart-aside__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}
.cart-aside__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  margin-bottom: 10px;
}
.cart-aside__row[hidden] {
  display: none !important;
}
.cart-aside__row--total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 18px;
  font-weight: 800;
}
.cart-aside__note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 16px 0 0;
  line-height: 1.5;
}
.cart-aside .cart-aside__checkout {
  width: 100%;
  margin-top: 20px;
}

/* Промокод (корзина и checkout) */
.bus-promo {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.cart-aside .bus-promo {
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.bus-promo__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.bus-promo__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}
.bus-promo__row .field,
.bus-promo__row .fi {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-bottom: 0;
  padding: 12px 14px;
  font-size: 15px;
  box-sizing: border-box;
}
.bus-promo__row .btn {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-top: 0;
  white-space: nowrap;
}
.bus-promo__msg {
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0 0;
  line-height: 1.4;
}
.bus-promo__msg--err { color: #c62828; }
.bus-promo__msg--ok { color: var(--color-success, #22c55e); }
.bus-promo__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success, #22c55e);
}
.bus-promo__applied[hidden] {
  display: none !important;
}
.bus-promo__remove {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.bus-promo__remove:hover { color: var(--color-primary); }
.bus-promo__remove[hidden] {
  display: none !important;
}
.cart-aside__row--discount span:last-child {
  color: var(--color-success, #22c55e);
  font-weight: 700;
}
.sum-card .bus-promo {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.cart-page__flash {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 16px;
}
.cart-page__flash--err {
  color: #c62828;
}

@media (max-width: 900px) {
  .cart-page__grid {
    grid-template-columns: 1fr;
  }
  .cart-aside {
    position: static;
  }
  .bus-promo__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .bus-promo__row .field,
  .bus-promo__row .fi {
    flex: none;
    width: 100%;
  }
  .bus-promo__row .btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .cart-card {
    grid-template-columns: 72px 1fr;
  }
  .cart-card__thumb {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }
  .cart-card__variant {
    grid-template-columns: 1fr;
  }
  .cart-card__variant-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .cart-line {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-line__thumb {
    width: 72px;
    height: 72px;
    font-size: 36px;
    grid-row: 1 / span 2;
  }
  .cart-line__side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .cart-line__chip-label {
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-arrow-icon { animation: none !important; }
  .hero-card .card-emoji { animation: none !important; }
  .cart-count.bump { animation: none !important; }
}
