/* Vertel House — эталон VH-STYLE-CANON (не белая тема) */
:root {
  --vh-cobalt: #044bd8;
  --vh-dark: #000d23;
  --vh-navy: #002b71;
  --vh-cream: #f5f0e6;
  --vh-cream-card: #e8e0d8;
  --vh-bright: #0857fd;
  --vh-gold: #d4af5f;
  --vh-white: #ffffff;

  --mb-brown: var(--vh-cobalt);
  --mb-brown-mid: var(--vh-bright);
  --mb-brown-dark: var(--vh-navy);
  --mb-red: var(--vh-bright);
  --mb-red-dark: var(--vh-cobalt);
  --mb-orange: var(--vh-bright);
  --mb-orange-light: #3d7dff;
  --mb-gold: var(--vh-gold);
  --mb-cream: var(--vh-cream);
  --mb-cream-2: #efe8df;
  --mb-card: var(--vh-white);
  --mb-green: var(--vh-cobalt);
  --mb-ink: var(--vh-dark);
  --mb-muted: #2f3b4d;
  --mb-white: var(--vh-white);

  --bk-brown: var(--mb-brown);
  --bk-brown-dark: var(--mb-brown-dark);
  --bk-red: var(--mb-red);
  --bk-red-dark: var(--mb-red-dark);
  --bk-orange: var(--mb-orange);
  --bk-yellow: var(--mb-gold);
  --bk-cream: var(--mb-cream);
  --bk-cream-2: var(--mb-cream-2);
  --bk-card: var(--mb-card);
  --bk-green: var(--mb-green);
  --bk-ink: var(--mb-ink);
  --bk-muted: var(--mb-muted);
  --bk-white: var(--mb-white);

  --font-head: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --shadow: 0 2px 14px rgba(0, 13, 35, 0.08);

  --header-utility-h: 0px;
  --header-main-h: 64px;
  --header-h: calc(var(--header-utility-h) + var(--header-main-h));
  --sticky-stack: var(--header-h);
}

.header__utility {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.header__main {
  padding-top: 8px;
  padding-bottom: 8px;
  min-height: var(--header-main-h);
  box-sizing: border-box;
}

/* Фон зафиксирован слоем — не едет и не мылится при скролле */
body {
  padding-top: var(--sticky-stack) !important;
  color: var(--vh-dark) !important;
  background-color: var(--vh-cream) !important;
  background-image: none !important;
  overflow-x: clip;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--vh-cream);
  background-image:
    linear-gradient(
      180deg,
      rgba(245, 240, 230, 0.4) 0%,
      rgba(245, 240, 230, 0.58) 30%,
      rgba(245, 240, 230, 0.86) 68%,
      var(--vh-cream) 100%
    ),
    url("../assets/brand/VH-003-APPROVED-BACKGROUND.webp");
  background-size: cover, cover;
  background-position: center top, center 32%;
  background-repeat: no-repeat;
}

/* ШАПКА: тёмно-синяя полупрозрачная, FIXED — меню всегда в шапке */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100 !important;
  background: linear-gradient(180deg, rgba(0, 13, 35, 0.88) 0%, rgba(0, 43, 113, 0.82) 55%, rgba(4, 75, 216, 0.78) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 22px rgba(0, 13, 35, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.header__logo img,
.header__logo-mark {
  height: 48px;
  width: auto;
  max-width: min(280px, 46vw);
  object-fit: contain;
  display: block;
}

@media (max-width: 720px) {
  .header__logo img,
  .header__logo-mark {
    height: 40px;
    max-width: min(220px, 58vw);
  }
}

/* Мобильная шапка: лого + Поиск → Акции → Корзина → Профиль */
@media (max-width: 768px) {
  .header__main {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .header__nav-compact,
  .header__loc,
  .header__app,
  .header__right {
    display: none !important;
  }

  .header__actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
    gap: 2px !important;
  }

  .header__tool {
    min-width: 44px !important;
    padding: 4px 5px !important;
  }

  .header__tool-label {
    font-size: 0.58rem;
  }

  .header__tool.header__cart {
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: auto !important;
    display: inline-flex !important;
    place-items: unset;
  }
}

/* Пилюли навигации — кобальт на тёмной шапке */
.header__nav-compact a {
  color: #fff !important;
  background: var(--vh-cobalt) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
}

.header__nav-compact a:hover {
  background: var(--vh-bright) !important;
}

.header__loc,
.header__search,
.header__account,
.mode-toggle {
  color: #fff !important;
}

.header__loc {
  background: rgba(255, 255, 255, 0.12) !important;
}

.header__search {
  background: rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header__search input,
.header__search input::placeholder {
  color: #fff !important;
}

.header__search input::placeholder {
  opacity: 0.6;
}

.mode-toggle {
  background: rgba(0, 0, 0, 0.2) !important;
}

.mode-toggle__btn {
  color: rgba(255, 255, 255, 0.85) !important;
}

.mode-toggle__btn.is-active {
  background: var(--vh-cobalt) !important;
  color: #fff !important;
}

.header__app {
  background: rgba(8, 87, 253, 0.35) !important;
  color: #ffffff !important;
  border-color: rgba(212, 175, 95, 0.65) !important;
}

.header__app:hover {
  background: var(--vh-bright) !important;
  color: #ffffff !important;
}

#vh-conveyor .vh-belt-island {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  gap: 0.4rem !important;
  margin: 0 !important;
  padding: 0.55rem 1rem !important;
  border: 1px solid rgba(0, 43, 113, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(245, 240, 230, 0.94) !important;
  box-shadow: 0 6px 18px rgba(0, 13, 35, 0.12) !important;
  white-space: nowrap !important;
  color: #000d23 !important;
  position: relative !important;
  z-index: 9 !important;
}

#vh-conveyor .vh-belt-island__label {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #002b71 !important;
}

#vh-conveyor .vh-belt-island__value {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  color: #044bd8 !important;
}

#vh-conveyor .vh-belt-island__qty {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #2f3b4d !important;
}

/* Лента: отступ слева у заголовка / списка заказа */
#vh-conveyor [data-slot="sushi-conveyor-menu"][data-layout="wide"] .vh-belt-sidepanel {
  padding-left: 1.5rem !important;
  box-sizing: border-box !important;
}

#vh-conveyor [data-slot="sushi-conveyor-menu"][data-layout="stack"] > div {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

#vh-conveyor .vh-conveyor--cart[data-layout="stack"] > div > .flex.flex-col,
#vh-conveyor .vh-conveyor--showcase[data-layout="stack"] > div > .flex.flex-col {
  align-items: flex-start !important;
  text-align: left !important;
  width: 100% !important;
}

/* Список позиций заказа слева под «Ваш заказ · Вертел Хаус» */
#vh-conveyor .vh-belt-order {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  width: 100% !important;
  max-width: 22rem !important;
}

#vh-conveyor .vh-belt-order__row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
  font-weight: 700 !important;
  color: #000d23 !important;
  line-height: 1.3 !important;
}

#vh-conveyor .vh-belt-order__name {
  min-width: 0 !important;
  flex: 1 !important;
}

#vh-conveyor .vh-belt-order__var {
  font-weight: 600 !important;
  color: rgba(0, 13, 35, 0.55) !important;
}

#vh-conveyor .vh-belt-order__qty {
  flex-shrink: 0 !important;
  font-variant-numeric: tabular-nums;
  color: #044bd8 !important;
  font-weight: 800 !important;
}

#vh-conveyor .vh-belt-order__row--more {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: rgba(0, 13, 35, 0.55) !important;
}

#vh-conveyor .vh-belt-order__row--total {
  margin-top: 0.35rem !important;
  padding-top: 0.55rem !important;
  border-top: 1px solid rgba(0, 43, 113, 0.14) !important;
  font-size: 1.05rem !important;
}

#vh-conveyor .vh-belt-order__total-label {
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  color: #002b71 !important;
}

#vh-conveyor .vh-belt-order__sum {
  flex-shrink: 0 !important;
  font-variant-numeric: tabular-nums;
  font-weight: 800 !important;
  color: #044bd8 !important;
}

/* Qty badge on a single stacked plate (×N) */
#vh-conveyor .vh-plate-qty {
  position: absolute !important;
  top: 6% !important;
  right: 4% !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  min-width: 1.55rem !important;
  height: 1.55rem !important;
  padding: 0 0.35rem !important;
  border-radius: 999px !important;
  background: #044bd8 !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 12px rgba(0, 13, 35, 0.28) !important;
  pointer-events: none !important;
}

/* Лента CTA — styles.css: button{background:none} ломал Tailwind */
#vh-conveyor .vh-belt-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  background: #0857fd !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 8px 22px rgba(8, 87, 253, 0.35) !important;
}

/* Диалог тарелки порталится в body — вне #vh-conveyor; тот же reset ломал кнопку */
[data-dish-dialog] .vh-dish-dialog__price {
  white-space: nowrap !important;
  color: #000d23 !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

[data-dish-dialog] .vh-dish-dialog__cta,
[data-dish-dialog] [data-add] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  background: #0857fd !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(8, 87, 253, 0.32) !important;
  cursor: pointer !important;
}

[data-dish-dialog] .vh-dish-dialog__cta:hover,
[data-dish-dialog] [data-add]:hover {
  background: #044bd8 !important;
  color: #ffffff !important;
}

[data-dish-dialog] .vh-dish-dialog__qty {
  flex-shrink: 0;
}

/* Старые круглые chip-кнопки — только если НЕ .header__tool */
.header__account:not(.header__tool) {
  background: rgba(255, 255, 255, 0.12) !important;
}

.header__cart:not(.header__tool) {
  background: var(--vh-cobalt) !important;
  color: #fff !important;
}

.vh-hero,
.promo-ticker,
.trust-strip {
  display: none !important;
}

/* Постер-слайдер: стрелки СНАРУЖИ по бокам — не на тексте */
.promo-carousel {
  background: transparent !important;
  padding: 0 0 10px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.promo-carousel__wrap,
.promo-carousel__wrap.container,
.promo-carousel .container {
  position: relative;
  width: min(1280px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.promo-carousel__stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.promo-carousel__viewport {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 0 22px 22px !important;
  box-shadow: 0 14px 40px rgba(0, 13, 35, 0.28) !important;
  width: 100% !important;
  min-width: 0;
}

.promo-carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.promo-slide--poster {
  flex: 0 0 100%;
  position: relative;
  /* Компактный кадр: высоту НЕ раздувать. Контент поверх — не увеличивает высоту. */
  height: clamp(200px, 26vw, 320px);
  min-height: clamp(200px, 26vw, 320px);
  max-height: 320px;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  cursor: pointer;
  background: #001a4d !important;
}

.promo-slide--poster::before {
  display: none !important;
}

.promo-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.promo-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  transition: transform 6s ease;
}

.promo-slide--poster:hover .promo-slide__media img {
  transform: scale(1.02);
}

.promo-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 13, 35, 0.78) 0%,
    rgba(0, 43, 113, 0.45) 42%,
    rgba(0, 13, 35, 0.15) 72%,
    rgba(0, 13, 35, 0.05) 100%
  );
  pointer-events: none;
}

.promo-slide--poster .promo-slide__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: min(520px, 92%);
  padding: clamp(20px, 3vw, 40px) clamp(22px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  background: transparent !important;
  box-sizing: border-box;
}

.promo-slide__badge {
  background: rgba(212, 175, 95, 0.22) !important;
  border: 1px solid rgba(212, 175, 95, 0.55);
  color: #fff7e0 !important;
  margin-bottom: 0 !important;
}

.promo-slide__title {
  color: #fff !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  margin: 0 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.promo-slide__subtitle {
  color: rgba(255, 255, 255, 0.92) !important;
  font-style: italic;
  margin: 0 0 8px !important;
  max-width: 36ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.promo-slide__cta {
  background: var(--vh-bright) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(8, 87, 253, 0.4) !important;
  margin-top: 4px;
}

/* Точки под постером; стрелки — колонки слева/справа от постера */
.promo-carousel__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  padding: 0 56px;
}

.promo-carousel__arrow {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 2 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--vh-cobalt) !important;
  box-shadow: 0 6px 20px rgba(0, 13, 35, 0.22) !important;
  display: grid !important;
  place-items: center;
  border: none;
  cursor: pointer;
  justify-self: center;
}

.promo-carousel__arrow:hover {
  background: var(--vh-cobalt) !important;
  color: #fff !important;
  transform: scale(1.05) !important;
}

.promo-carousel__arrow--prev,
.promo-carousel__arrow--next {
  left: auto !important;
  right: auto !important;
}

.promo-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.promo-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0, 43, 113, 0.2);
  border: none;
  padding: 0;
  transition: 0.25s ease;
}

.promo-carousel__dot.is-active {
  width: 28px;
  background: var(--vh-cobalt) !important;
  border-color: var(--vh-cobalt) !important;
}

.promo-carousel__progress {
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(0, 43, 113, 0.12);
  overflow: hidden;
}

.promo-carousel__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--vh-cobalt), var(--vh-bright));
  border-radius: inherit;
}

@media (max-width: 720px) {
  .promo-slide--poster {
    aspect-ratio: auto;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .promo-slide--poster .promo-slide__content {
    padding: 16px 18px;
    max-width: 100%;
  }

  .promo-slide__title {
    font-size: 2.1rem !important;
  }
}

/* Лента: под слайдером, в колонке справа от сайдбара (перед сеткой меню) */
.vh-conveyor {
  width: 100%;
  margin: 0 0 20px;
  min-height: 300px;
  order: -1;
}

/*
  Зона меню (.page): без второго фото — иначе cover тянет Неву на всю высоту сетки.
  Виден только fixed body::before + лёгкий крем-wash для читаемости.
*/
.page {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  overflow: visible;
  min-height: 70vh;
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 0 !important;
  padding: 0 16px !important;
  box-sizing: border-box;
  gap: 16px !important;
}

@media (min-width: 961px) {
  .page {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    padding: 0 12px 0 8px !important;
  }

  .sidebar {
    margin-left: 0 !important;
  }
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(245, 240, 230, 0.55) 0%,
    rgba(245, 240, 230, 0.72) 40%,
    rgba(245, 240, 230, 0.88) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.page > * {
  position: relative;
  z-index: 1;
}

/* Сайдбар категорий — sticky под фиксированной шапкой */
.sidebar {
  position: sticky !important;
  top: calc(var(--sticky-stack) + 12px) !important;
  background: transparent !important;
}

/* Левое меню — каркас как у 3332222: квадрат-фото + подпись, sticky */
.sidebar__nav,
.site-fx .sidebar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-radius: 16px;
  padding: 10px 8px !important;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 13, 35, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(4, 75, 216, 0.08);
}

.sidebar__nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  max-height: calc(100vh - var(--sticky-stack) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar__item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: none !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--vh-navy) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-align: left !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.sidebar__item:last-child {
  border-bottom: none !important;
}

.sidebar__item:hover {
  background: rgba(4, 75, 216, 0.07) !important;
  transform: none !important;
}

.sidebar__item.is-active {
  background: rgba(4, 75, 216, 0.1) !important;
  color: var(--vh-cobalt) !important;
  box-shadow: none !important;
}

.sidebar__thumb-wrap {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f0f4fa !important;
}

.sidebar__thumb {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  display: block !important;
  filter: none;
}

.sidebar__label {
  flex: 1 !important;
  line-height: 1.25 !important;
}

.sidebar__icon {
  display: none !important;
}

/* База для desktop (если pill где-то ещё); мобилка — ниже, full-bleed */

.page__content {
  background: transparent !important;
}

.card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 22px rgba(0, 13, 35, 0.1) !important;
}

.menu-block__head h2 {
  color: var(--vh-navy) !important;
}

.sidebar__item {
  color: var(--vh-navy) !important;
  font-weight: 650;
}

.menu-search-mobile__inner,
.menu-search-mobile input,
.menu-search-mobile input::placeholder {
  color: var(--vh-navy) !important;
}

.menu-search-mobile input::placeholder {
  opacity: 0.72;
  color: #3a4658 !important;
}

.menu-block__count,
.card__name {
  color: var(--vh-dark) !important;
}

.page__content {
  color: var(--vh-dark);
}

.btn--primary,
.card__order,
.footer__cta-btn {
  background: var(--vh-bright) !important;
  color: #fff !important;
}

/* Правая колонка: Поиск → Акции → Корзина → Профиль (иконка + подпись) */
.header__actions {
  display: flex !important;
  align-items: flex-end !important;
  gap: 2px !important;
  margin-left: auto;
}

.header__tool,
button.header__tool,
a.header__tool,
.header__tool.header__cart,
.header__tool.header__account {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: auto !important;
  min-width: 56px !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 8px 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.1;
  place-items: unset !important;
  transform: none !important;
}

.header__tool svg {
  display: block;
  flex-shrink: 0;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
}

.header__tool-label,
.header__tool .header__tool-label,
.header__tool.header__cart .header__tool-label,
.header__tool.header__cart span.header__tool-label {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.15 !important;
  white-space: nowrap;
  text-align: center;
  animation: none !important;
  place-items: unset !important;
}

.header__tool:hover,
.header__tool.header__cart:hover,
.header__tool.header__account:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Счётчик — только #cartCount, не подпись */
.header__tool.header__cart #cartCount,
.header__cart.header__tool > #cartCount {
  position: absolute !important;
  top: 2px !important;
  right: 4px !important;
  left: auto !important;
  z-index: 2;
  display: grid !important;
  place-items: center;
  min-width: 16px !important;
  width: auto !important;
  height: 16px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: var(--vh-cobalt) !important;
  color: #fff !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  animation: none !important;
}

.header__tool.header__cart #cartCount:empty,
.header__tool.header__cart #cartCount[data-empty="1"] {
  display: none !important;
}

.header__tool .header__account-badge {
  top: 2px !important;
  right: 4px !important;
}

.header__tool.header__account.is-logged-in,
.header__tool.header__account.is-admin {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.header__search--panel {
  position: absolute;
  right: 12px;
  top: calc(100% + 8px);
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 13, 35, 0.18);
  border: 1px solid rgba(4, 75, 216, 0.12);
}

.header__search--panel[hidden] {
  display: none !important;
}

.header__search--panel.is-open {
  display: flex !important;
}

.header__search--panel input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  background: transparent;
  color: var(--vh-navy);
}

.header__main {
  position: relative;
}

.scroll-top {
  background: var(--vh-cobalt) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(4, 75, 216, 0.35) !important;
}

.scroll-top:hover {
  background: var(--vh-bright) !important;
}

.btn--primary:hover,
.card__order:hover {
  background: var(--vh-cobalt) !important;
}

.cart-item__variant {
  display: block;
  font-size: 0.78rem;
  color: var(--mb-muted);
  font-weight: 500;
  margin-top: 2px;
}

.vh-coming-soon {
  display: none;
}

.footer {
  background: linear-gradient(180deg, #001a4d 0%, var(--vh-dark) 100%) !important;
}

/* Футер — каркас как у 3332222: бренд/телефон + сетка Меню + о компании */
.footer__grid--mafia {
  grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 1.6fr) minmax(160px, 0.9fr) !important;
  gap: 36px 48px !important;
  align-items: start;
}

.footer__contacts {
  margin-top: 14px;
}

.footer__phone {
  display: inline-block !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}

.footer__phone:empty,
.footer__phone:not([href^="tel"]) {
  pointer-events: none;
}

.footer__call-hint {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vh-gold, #d4af5f);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__hours-line {
  font-size: 0.875rem !important;
  color: rgba(245, 240, 230, 0.78) !important;
  margin: 0 !important;
}

.footer__hours-label {
  display: inline !important;
  color: rgba(245, 240, 230, 0.55) !important;
  margin: 0 !important;
}

.footer__menu-block h4,
.footer__about-block h4 {
  color: #fff !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.02em;
  margin-bottom: 16px !important;
}

.footer__menu-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 28px;
}

.footer__menu-cols a {
  color: rgba(245, 240, 230, 0.72) !important;
  font-size: 0.9rem !important;
  margin-bottom: 4px !important;
}

.footer__menu-cols a:hover {
  color: #fff !important;
}

.footer__about-block a {
  color: rgba(245, 240, 230, 0.72) !important;
}

.footer__about-block a:hover {
  color: #fff !important;
}

@media (max-width: 900px) {
  .footer__grid--mafia {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer__menu-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer__grid--mafia {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .promo-carousel__wrap,
  .promo-carousel__wrap.container,
  .promo-carousel .container {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
  }

  .promo-carousel__stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 4px;
  }

  .promo-carousel__arrow {
    width: 40px !important;
    height: 40px !important;
  }

  .promo-carousel__bar {
    padding: 0 44px;
  }

  .page::before {
    border-radius: 14px;
    background: linear-gradient(
      180deg,
      rgba(245, 240, 230, 0.62) 0%,
      rgba(245, 240, 230, 0.8) 50%,
      rgba(245, 240, 230, 0.92) 100%
    );
  }
}

/* ── Guest UX polish (VH-003 + a11y/touch) — без смены бренда ── */

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--vh-bright);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* guest-order-cue убран по запросу владельца */

.card__order:focus-visible,
.btn--primary:focus-visible,
.cat-pill:focus-visible,
.sidebar__item:focus-visible,
.promo-slide__cta:focus-visible,
.header__cart:focus-visible {
  outline: 3px solid var(--vh-bright);
  outline-offset: 2px;
}

/* Еда — центр карточки */
.menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;
}

.card {
  border: 1px solid rgba(0, 43, 113, 0.08) !important;
  overflow: hidden;
}

.card::after {
  background: linear-gradient(90deg, var(--vh-cobalt), var(--vh-bright)) !important;
}

.card__media {
  aspect-ratio: 4 / 3 !important;
  padding: 0 !important;
  background: #ebe4d8 !important;
}

.card__media img {
  object-fit: cover !important;
  object-position: center !important;
  filter: none !important;
}

.card:hover .card__media img {
  transform: scale(1.04) !important;
}

.card__body {
  padding: 14px 14px 14px !important;
  gap: 4px;
}

.card__title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--vh-dark) !important;
  line-height: 1.2 !important;
  text-wrap: balance;
  margin-bottom: 2px !important;
}

.card__meta {
  font-size: 0.78rem !important;
  color: var(--mb-muted) !important;
  margin-bottom: 2px !important;
}

.card__desc {
  font-size: 0.82rem !important;
  color: #2f3b4d !important;
  margin-bottom: 10px !important;
  -webkit-line-clamp: 2;
}

.card__foot {
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.card__price {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem) !important;
  font-weight: 800 !important;
  color: var(--vh-navy) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(4, 75, 216, 0.08);
  border: 1px solid rgba(4, 75, 216, 0.14);
}

.qty-stepper__btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff !important;
  color: var(--vh-cobalt) !important;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 13, 35, 0.08);
}

.qty-stepper__btn[data-q="+"] {
  background: var(--vh-bright) !important;
  color: #fff !important;
}

.qty-stepper__val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--vh-navy);
  font-size: 1rem;
}

.card__order {
  min-height: 44px !important;
  min-width: 44px;
  padding: 10px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(8, 87, 253, 0.28);
}

.card__fav {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
}

.badge--hot {
  background: var(--vh-bright) !important;
}

.badge--spicy {
  background: var(--vh-navy) !important;
}

.menu-block__head h2::after {
  background: var(--vh-cobalt) !important;
}

/* Модалка: цена и CTA для пальца */
.modal {
  z-index: 1205 !important;
}

.modal-overlay.is-open {
  z-index: 1200 !important;
}

.modal__body h2 {
  color: var(--vh-dark) !important;
  text-wrap: balance;
}

.modal__desc {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  color: #2a3545 !important;
}

.modal__foot {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: center;
  margin-top: 20px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 43, 113, 0.1);
}

.modal__foot .qty-stepper {
  padding: 4px;
}

.modal__foot-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal__foot-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mb-muted);
}

.modal__foot .card__price {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem) !important;
  color: var(--vh-navy) !important;
  white-space: nowrap !important;
}

.modal__foot .btn--primary,
#modalAdd {
  min-height: 48px !important;
  min-width: 148px;
  padding: 12px 22px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 20px rgba(8, 87, 253, 0.3);
}

.vh-mod {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border-radius: 12px;
  border: 1px solid rgba(0, 43, 113, 0.12);
  cursor: pointer;
}

.vh-mod:has(input:checked) {
  border-color: var(--vh-bright);
  background: rgba(8, 87, 253, 0.08);
}

@media (max-width: 900px) {
  .vh-conveyor {
    display: none !important;
  }

  :root {
    --mobile-cats-h: 64px;
  }

  .card__foot {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .card__price {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
  }

  .card__order {
    flex-shrink: 0;
    justify-content: center;
  }

  .card__foot .qty-stepper {
    margin-left: auto;
  }

  .modal__foot {
    grid-template-columns: 1fr 1fr !important;
  }

  .modal__foot .qty-stepper {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .modal__foot .btn--primary,
  #modalAdd {
    width: 100%;
  }

  /* mobile cats: full-bleed ниже @media 960 */

  .float-cart {
    min-height: 52px;
    min-width: 52px;
    padding: 0 18px !important;
    font-weight: 800;
  }
}

.cookie-bar {
  padding: 10px 16px !important;
}

.cookie-bar .btn {
  min-height: 44px;
  padding: 10px 18px !important;
}

/* Тост не перехватывает клик по «Оформить заказ» */
.toast,
.toast.is-visible {
  pointer-events: none !important;
  z-index: 3200 !important;
  background: var(--vh-navy) !important;
  color: #fff !important;
  max-width: min(92vw, 420px);
  text-align: center;
}

body:has(#cartPanel.is-open) .toast.is-visible {
  bottom: auto !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  max-width: min(92vw, 360px);
  box-shadow: 0 10px 28px rgba(0, 13, 35, 0.28);
}

.float-cart {
  background: var(--vh-bright) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(8, 87, 253, 0.4) !important;
  min-height: 48px;
}

/* ── Корзина: читаемо + пальцем ── */
.cart-panel {
  background: var(--vh-cream) !important;
  z-index: 1210 !important;
}

.cart-overlay.is-open {
  z-index: 1208 !important;
}

.cart-panel__head {
  background: linear-gradient(135deg, var(--vh-navy), var(--vh-cobalt)) !important;
  color: #fff !important;
  padding: 16px 18px !important;
}

.cart-panel__head h2 {
  color: #fff !important;
}

.cart-panel__head button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.4rem !important;
}

.cart-panel__total {
  color: var(--vh-navy) !important;
  font-variant-numeric: tabular-nums;
}

.cart-panel__foot .btn--primary,
#checkoutBtn {
  min-height: 52px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px rgba(8, 87, 253, 0.32);
}

.cart-panel__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--mb-muted);
  text-align: center;
}

.cart-item {
  gap: 14px !important;
  padding: 14px 0 !important;
  align-items: flex-start;
}

.cart-item img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  background: #ebe4d8 !important;
  flex-shrink: 0;
}

.cart-item__name {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: var(--vh-dark) !important;
  line-height: 1.25;
}

.cart-item__price {
  color: var(--vh-navy) !important;
  font-size: 1.05rem !important;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.cart-item__ctrl {
  gap: 10px !important;
  margin-top: 10px !important;
  flex-wrap: wrap;
}

.cart-item__ctrl button.is-round,
.cart-item__ctrl button[data-a="+"],
.cart-item__ctrl button[data-a="-"] {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 43, 113, 0.16) !important;
  background: #fff !important;
  font-size: 1.25rem !important;
  color: var(--vh-navy) !important;
}

.cart-item__ctrl span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--vh-dark);
}

.cart-item__remove {
  min-height: 44px;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--vh-cobalt) !important;
  text-decoration: underline;
}

.cart-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: rgba(4, 75, 216, 0.08);
  color: var(--vh-cobalt);
  font-size: 0;
}

.cart-empty__title {
  color: var(--vh-navy) !important;
}

.cart-empty__btn {
  min-height: 48px;
  padding: 12px 22px !important;
  background: var(--vh-bright) !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 800;
}

.float-cart {
  bottom: calc(20px + env(safe-area-inset-bottom));
  gap: 8px;
  letter-spacing: 0.01em;
}

.float-cart svg {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  :root {
    --mobile-cats-h: 108px;
  }

  .float-cart {
    bottom: calc(16px + env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 0 20px !important;
    font-size: 1rem;
  }

  /* Категории: от края до края, крупные квадраты + подпись */
  .mobile-cats,
  .mobile-cats.is-docked {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 10px 0 12px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(4, 75, 216, 0.12) !important;
    box-shadow: 0 8px 20px rgba(0, 13, 35, 0.08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-cats.is-docked {
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .mobile-cats__rail {
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    padding: 0 !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-cats__rail::-webkit-scrollbar {
    display: none !important;
  }

  .cat-pill {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 22vw !important;
    min-width: 78px !important;
    max-width: 96px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 6px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vh-navy) !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    scroll-snap-align: start;
  }

  .cat-pill__media {
    display: grid !important;
    place-items: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #eef3fb !important;
    border: 2px solid transparent !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .cat-pill__thumb {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .cat-pill__label {
    display: block !important;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-pill.is-active {
    background: transparent !important;
    color: var(--vh-cobalt) !important;
    box-shadow: none !important;
  }

  .cat-pill.is-active .cat-pill__media {
    border-color: var(--vh-cobalt) !important;
    box-shadow: 0 0 0 3px rgba(4, 75, 216, 0.18);
  }

  /* Меню/карточки — почти от края до края */
  .page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
  }

  .page::before {
    border-radius: 0 !important;
  }

  .page__content {
    padding: 0 10px !important;
  }

  .menu-search-mobile {
    margin: 0 0 10px !important;
  }

  .menu-search-mobile__inner {
    border-radius: 14px !important;
  }

  .menu-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .card {
    border-radius: 16px !important;
  }

  .menu-block {
    margin-bottom: 28px !important;
    scroll-margin-top: calc(var(--sticky-stack) + var(--mobile-cats-h) + 8px);
  }

  .menu-block__head {
    padding: 0 2px;
  }
}

/* ── Dish sheet (каркас как 3332222, палитра VH) ── */
#productModal {
  z-index: 1215 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 860px);
  width: min(100vw - 24px, 560px) !important;
  background: #fff !important;
  padding: 0 !important;
}

#productModal.dish-sheet #modalContent {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#productModal .modal__img,
#productModal .dish-page__img {
  height: clamp(220px, 38vh, 340px) !important;
  padding: 0 !important;
  background: #ebe4d8 !important;
  flex-shrink: 0;
  position: relative;
}

#productModal .modal__img img,
#productModal .dish-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  filter: none !important;
}

#productModal > .modal__x,
#productModal .modal__fav,
#productModal .modal__share {
  top: 10px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--vh-navy) !important;
  box-shadow: 0 4px 14px rgba(0, 13, 35, 0.18);
  text-shadow: none !important;
  display: grid !important;
  place-items: center;
  z-index: 3;
}

#productModal > .modal__x {
  right: 10px !important;
  font-size: 1.35rem !important;
}

#productModal .modal__fav {
  right: 62px !important;
  left: auto !important;
}

#productModal .modal__share {
  right: 114px !important;
  left: auto !important;
}

#productModal .modal__badge {
  top: 12px !important;
  left: 12px !important;
  background: var(--vh-bright) !important;
}

#productModal .modal__body,
#productModal .dish-page__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 18px 22px 16px !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch;
}

#productModal .dish-toppings,
#productModal .dish-page__section,
#productModal .dish-page__head,
#productModal .dish-page__composition,
#productModal .dish-kbju,
#productModal .dish-tabs {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#productModal .dish-topping {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#productModal .modal__foot,
#productModal .dish-page__foot,
#productModal .dish-shell__cta {
  position: relative;
  flex-shrink: 0;
  display: block !important;
  grid-template-columns: none !important;
  background: #fff !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(0, 43, 113, 0.1);
  z-index: 3;
  box-sizing: border-box !important;
}

/* Плавающая корзина не должна перекрывать модалку блюда */
.float-cart {
  z-index: 900 !important;
}

body:has(#productModal.is-open) .float-cart {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dish-page__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px 16px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 43, 113, 0.12);
}

.dish-page__head h1,
.dish-page__head h2,
.dish-page__title {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--vh-navy, #000d23) !important;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
}

.dish-page__weight {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(0, 13, 35, 0.5);
  white-space: nowrap;
}

.dish-page__composition {
  margin-bottom: 14px;
}

.dish-page__composition p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(0, 13, 35, 0.78);
}

.dish-page__section {
  margin: 18px 0;
}

.dish-page__section-title {
  margin: 0 0 10px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--vh-navy, #000d23) !important;
}

.dish-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.dish-tabs__btn {
  appearance: none;
  border: 1.5px solid rgba(0, 43, 113, 0.18);
  background: #f5f0e6;
  color: var(--vh-navy, #000d23);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

.dish-tabs__btn.is-active {
  background: var(--vh-cobalt, #044bd8);
  border-color: var(--vh-cobalt, #044bd8);
  color: #fff;
}

.dish-toppings {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dish-topping {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 43, 113, 0.08);
}

.dish-topping__name {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--vh-navy, #000d23);
}

.dish-topping__weight {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: rgba(0, 13, 35, 0.5);
}

.dish-topping__price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vh-navy, #000d23);
  white-space: nowrap;
}

.dish-topping__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dish-topping__btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 43, 113, 0.2);
  background: #fff;
  color: var(--vh-navy, #000d23);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dish-topping.is-active .dish-topping__btn {
  border-color: var(--vh-cobalt, #044bd8);
  color: var(--vh-cobalt, #044bd8);
}

.dish-topping__val {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.dish-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dish-related__card {
  appearance: none;
  border: 1px solid rgba(0, 43, 113, 0.1);
  background: #f5f0e6;
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--vh-navy, #000d23);
}

.dish-related__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #ebe4d8;
  margin-bottom: 4px;
}

.dish-related__name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
}

.dish-related__meta {
  font-size: 0.75rem;
  color: rgba(0, 13, 35, 0.5);
}

.dish-related__price {
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 2px;
}

.dish-page__cta {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  background: var(--vh-cobalt, #044bd8) !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  isolation: isolate;
  padding: 0 20px !important;
}

/* Без «точки» sky-exp: текст «Добавить» всегда белый и виден */
html.vh-sky-exp #productModal #modalAdd,
html.vh-sky-exp #productModal #modalAdd:hover,
html.vh-sky-exp #productModal #modalAdd:focus-visible,
html.vh-sky-exp #dishContent #modalAdd,
html.vh-sky-exp #dishContent #modalAdd:hover,
html.vh-sky-exp #dishContent #modalAdd:focus-visible,
html.vh-sky-exp #productModal .dish-page__cta--done,
html.vh-sky-exp #productModal .dish-page__cta--done:hover,
html.vh-sky-exp #dishContent .dish-page__cta--done,
html.vh-sky-exp #dishContent .dish-page__cta--done:hover {
  color: #fff !important;
  background: var(--vh-cobalt, #044bd8) !important;
  border-color: transparent !important;
  padding: 0 20px !important;
  gap: 0 !important;
}

html.vh-sky-exp #productModal #modalAdd:hover,
html.vh-sky-exp #dishContent #modalAdd:hover,
html.vh-sky-exp #productModal .dish-page__cta--done:hover,
html.vh-sky-exp #dishContent .dish-page__cta--done:hover {
  background: var(--vh-bright, #0857fd) !important;
  color: #fff !important;
}

html.vh-sky-exp #productModal #modalAdd::before,
html.vh-sky-exp #productModal #modalAdd::after,
html.vh-sky-exp #dishContent #modalAdd::before,
html.vh-sky-exp #dishContent #modalAdd::after,
html.vh-sky-exp #productModal .dish-page__cta--done::before,
html.vh-sky-exp #productModal .dish-page__cta--done::after,
html.vh-sky-exp #dishContent .dish-page__cta--done::before,
html.vh-sky-exp #dishContent .dish-page__cta--done::after,
#productModal #modalAdd.dish-page__cta::before,
#productModal #modalAdd.dish-page__cta::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  transform: none !important;
  background: transparent !important;
}

.dish-page__cta:hover,
.dish-page__cta:focus-visible {
  background: var(--vh-bright, #0857fd) !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  #productModal.dish-sheet,
  #productModal.dish-sheet.is-open {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    margin: 0 !important;
  }

  #productModal.dish-sheet .dish-page__img {
    height: clamp(240px, 42vh, 380px) !important;
  }

  #productModal.dish-sheet > .modal__x {
    left: 10px !important;
    right: auto !important;
  }

  #productModal.dish-sheet .modal__fav {
    right: 10px !important;
  }

  #productModal.dish-sheet .modal__share {
    right: 62px !important;
  }
}

/* ── Полноценные страницы блюда / кабинета (не модалки) ── */
.vh-page {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh - var(--vh-header-h, 72px));
  background: transparent; /* небо видно по бокам */
  width: 100%;
  position: relative;
  z-index: 2; /* выше .vh-sky (облака) */
}

.vh-page:not([hidden]) {
  display: flex;
}

body.vh-route-active .vh-page:not([hidden]) {
  display: flex;
}

.vh-page__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #001a4d 0%, #000d23 100%);
  color: #fff;
}

.vh-page__back {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vh-page__bar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vh-page__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}

.vh-page--dish .vh-page__scroll {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 16px 40px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.vh-page--account .vh-page__scroll {
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 40px rgba(0, 13, 35, 0.12);
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 16px 32px;
}

/* —— Dish page (Mafia-like shell, VH colors) —— */
.dish-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 4px 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(0, 13, 35, 0.55);
}

.dish-crumbs a {
  color: var(--vh-cobalt, #044bd8);
  text-decoration: none;
}

.dish-crumbs a:hover {
  text-decoration: underline;
}

.dish-crumbs__sep {
  opacity: 0.45;
}

.dish-crumbs__current {
  color: var(--vh-navy, #000d23);
  font-weight: 700;
}

.dish-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dish-shell__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 13, 35, 0.12);
}

.dish-shell__media {
  position: relative;
  min-height: clamp(220px, 38vh, 360px);
  background: #ebe4d8;
}

.dish-shell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: inherit;
}

.dish-shell__panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.dish-shell__panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 8px;
}

.dish-page__title {
  margin: 0 !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: var(--vh-navy, #000d23) !important;
  line-height: 1.2;
}

.dish-kbju {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  border: 1.5px solid rgba(0, 43, 113, 0.16);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.dish-kbju__item {
  background: transparent;
  border-radius: 0;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(0, 43, 113, 0.12);
}

.dish-kbju__item:last-child {
  border-right: none;
}

.dish-kbju__item strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--vh-navy, #000d23);
}

.dish-kbju__item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0, 13, 35, 0.5);
}

.dish-cta-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.dish-cta-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 4px 6px;
  border-radius: 14px;
  background: var(--vh-cobalt, #044bd8);
  color: #fff;
  box-sizing: border-box;
}

.dish-page__cta--done {
  width: 100% !important;
  margin: 0 !important;
}

.dish-cta-qty__btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dish-cta-qty__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.dish-cta-qty__val {
  min-width: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dish-shell__cta .dish-page__cta[hidden],
.modal__foot .dish-page__cta[hidden],
.dish-cta-bar[hidden],
.dish-cta-qty[hidden] {
  display: none !important;
}

.dish-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.dish-top-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.dish-top-card__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #ebe4d8;
}

.dish-top-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-top-card__plus,
.dish-top-card__minus {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--vh-cobalt, #044bd8);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(4, 75, 216, 0.35);
  z-index: 2;
}

.dish-top-card__plus {
  right: 8px;
  bottom: 8px;
}

.dish-top-card__minus {
  left: 8px;
  bottom: 8px;
  background: #fff;
  color: var(--vh-navy, #000d23);
  box-shadow: 0 2px 8px rgba(0, 13, 35, 0.15);
}

.dish-top-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vh-cobalt, #044bd8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}

.dish-top-card__name {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--vh-navy, #000d23);
}

.dish-top-card__weight {
  font-size: 0.72rem;
  color: rgba(0, 13, 35, 0.5);
}

.dish-top-card__price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--vh-navy, #000d23);
}

.dish-top-card.is-active .dish-top-card__media {
  outline: 2px solid var(--vh-cobalt, #044bd8);
  outline-offset: 1px;
}

.dish-shell__cta {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(0, 43, 113, 0.1);
  z-index: 3;
}

.dish-page__related {
  margin: 0;
}

.dish-buy-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish-buy-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 13, 35, 0.1);
  display: flex;
  flex-direction: column;
}

.dish-buy-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe4d8;
  display: block;
}

.dish-buy-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dish-buy-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--vh-navy, #000d23);
  line-height: 1.25;
}

.dish-buy-card__meta {
  font-size: 0.75rem;
  color: rgba(0, 13, 35, 0.5);
}

.dish-buy-card__price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--vh-navy, #000d23);
  margin-top: auto;
}

.dish-buy-card__btn {
  appearance: none;
  margin-top: 8px;
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--vh-cobalt, #044bd8);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.dish-buy-card__btn:hover {
  background: var(--vh-bright, #0857fd);
}

.vh-page--dish .modal__fav,
.vh-page--dish .modal__share {
  position: absolute;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--vh-navy, #000d23);
  box-shadow: 0 4px 14px rgba(0, 13, 35, 0.18);
  display: grid;
  place-items: center;
  border: none;
  z-index: 2;
  cursor: pointer;
}

.vh-page--dish .modal__fav {
  right: 12px;
}

.vh-page--dish .modal__share {
  left: 12px;
  right: auto;
}

.vh-page--dish .modal__badge {
  position: absolute;
  top: 12px;
  left: 64px;
  z-index: 2;
  background: var(--vh-bright, #0857fd);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
}

@media (min-width: 860px) {
  .vh-page--dish .vh-page__scroll {
    padding: 18px 24px 48px;
  }

  .dish-shell__main {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }

  .dish-shell__media {
    min-height: 100%;
    align-self: stretch;
  }

  .dish-shell__media img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .dish-shell__panel {
    max-height: min(72vh, 680px);
  }

  .dish-shell__panel-body {
    padding: 22px 24px 12px;
  }

  .dish-page__title {
    font-size: 1.6rem !important;
  }

  .dish-shell__cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dish-buy-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dish-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .dish-top-card__media {
    border-radius: 16px;
  }
}

.vh-page--account.vh-page--admin .vh-page__bar {
  background: linear-gradient(180deg, #002b71 0%, #000d23 100%);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__media img,
  .promo-slide__media img {
    animation: none !important;
    transition: none !important;
  }
}
