/* ============================================================
   Дзиро суши — site.css
   Фирменные цвета и изображения сохранены. Обновлены типографика,
   глубина, движение и микровзаимодействия. Разметка/функционал — без изменений.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Acrom';
  src: url('/static/fonts/Acrom-Regular.woff2') format('woff2'),
       url('/static/fonts/Acrom-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acrom';
  src: url('/static/fonts/Acrom-Medium.woff2') format('woff2'),
       url('/static/fonts/Acrom-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Acrom';
  src: url('/static/fonts/Acrom-Bold.woff2') format('woff2'),
       url('/static/fonts/Acrom-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Oswald — дисплейный шрифт только для заголовков. Латиница + кириллица, веса 500/700. */
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-500-cyrillic.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+20BD,U+2116;
}
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/Oswald-700-cyrillic.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+20BD,U+2116;
}

:root {
  --bg: #101010;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --footer-bg: #343434;
  --red: #fc0000;
  --red-dark: #a4121b;
  --red-border: #cd000f;
  --text: #ffffff;
  --text-muted: #a8a8a8;
  --border: #2a2a2a;
  --radius: 10px;
  --radius-lg: 20px;
  --header-height: 76px;

  /* Шрифтовые переменные — единые точки замены */
  --font-body: 'Acrom', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Acrom', 'Arial Narrow', Arial, sans-serif;

  /* Плавная типографическая шкала */
  --fs-display-1: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-display-2: clamp(1.5rem, 1.28rem + 1vw, 2rem);
  --fs-headline: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  --fs-tile: clamp(1.1rem, 0.95rem + 0.6vw, 1.375rem);
  --fs-price: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-card-title: clamp(1rem, 0.98rem + 0.1vw, 1.08rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --lh-tight: 1.14;
  --lh-base: 1.5;
  --tracking-tight: -0.02em;
  --tracking-caps: 0.08em;

  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Тени под тёмный UI (слоистые) */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.28);
  --shadow-2: 0 4px 10px rgba(0,0,0,.4), 0 10px 24px rgba(0,0,0,.32);
  --shadow-3: 0 8px 18px rgba(0,0,0,.44), 0 22px 48px rgba(0,0,0,.4);
  --shadow-4: 0 24px 60px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.4);
  --shadow-red: 0 6px 18px rgba(252,0,0,.28);
  --shadow-red-strong: 0 10px 28px rgba(252,0,0,.4);

  /* Движение */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-slower: 480ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --reveal-shift: 16px;

  --accent: var(--red);
  --header-height-condensed: 60px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: var(--lh-base);
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { margin: 0 0 12px; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-display-1); }
h2 { font-size: var(--fs-display-2); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 10px; color: var(--text-muted); }

.kicker {
  display: inline-block;
  color: var(--red);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  font-weight: 500;
  text-transform: uppercase;
  margin: 10px 0 8px;
}

.breadcrumbs {
  padding: 18px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); transition: color var(--dur-base); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .current { color: var(--red); }

/* ---------- Scroll-reveal (прогрессивное улучшение, класс навешивает ui-enhance.js) ---------- */
html.js-reveal .dz-reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
html.js-reveal .dz-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background: rgba(16, 16, 16, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: height var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .site-header { background: var(--bg); }
}
.site-header.is-condensed {
  height: var(--header-height-condensed);
  background: rgba(16, 16, 16, .9);
  box-shadow: var(--shadow-2);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; transition: height var(--dur-base) var(--ease-out); }
.site-header.is-condensed .logo img { height: 32px; }

.menu-btn {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-red);
  transition: filter var(--dur-base), box-shadow var(--dur-base),
              transform var(--dur-fast) var(--ease-out);
}
.menu-btn:hover { filter: brightness(1.06); box-shadow: var(--shadow-red-strong); }
.menu-btn:active { transform: translateY(1px) scale(.985); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.main-nav a,
.main-nav .sep {
  line-height: 1;
}
.main-nav a {
  color: var(--text);
  padding: 4px 2px;
  position: relative;
  transition: color var(--dur-base);
}
.main-nav a.accent { color: var(--red); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .sep { color: var(--border); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.phone-pill {
  border: 1.5px solid var(--red-border);
  color: var(--red-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.phone-pill:hover { background: var(--red-border); color: #fff; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 180px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.search-form:focus-within { border-color: var(--red-border); box-shadow: 0 0 0 3px rgba(252,0,0,.18); }
.search-form img { height: 15px; width: 15px; opacity: 0.5; filter: invert(1); }
.search-form input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  color: var(--text);
  background: transparent;
}
.search-form input::placeholder { color: var(--text-muted); }

.icon-circle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base),
              transform var(--dur-base) var(--ease-out);
}
.icon-circle:hover { background: var(--surface-2); border-color: #3a3a3a; transform: translateY(-1px); }
.icon-circle:active { transform: translateY(0) scale(.95); }
.icon-circle img { height: 18px; width: 18px; filter: invert(1); }
.icon-circle .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(252,0,0,.4);
}
.badge-count.is-pop { animation: dz-pop var(--dur-slow) var(--ease-spring); transform-origin: center; }

.burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.header-inner:has(.main-nav.open) .burger { color: var(--red); transform: rotate(90deg); }

/* ---------- Hero ---------- */
.hero-section { padding: 28px 0; }
/* колонки в пропорциях макетов — фон не обрезается:
   ряд 1 = 880×280 + 280×280, ряд 2 = два 580×280 */
.hero-row-1 { display: grid; grid-template-columns: 880fr 280fr; gap: 18px; }
.hero-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: var(--bg-d);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;      /* десктоп: кнопка внизу справа */
  padding: 20px;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.hero-row-1 .promo-banner { aspect-ratio: 880 / 280; }
.hero-row-1 .promo-banner:last-child { aspect-ratio: 1 / 1; }
.hero-row-2 .promo-banner { aspect-ratio: 580 / 280; }

.promo-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.promo-banner:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.promo-banner .cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
  transition: background var(--dur-base), box-shadow var(--dur-base),
              transform var(--dur-fast) var(--ease-out);
}
.promo-banner:hover .cta { box-shadow: var(--shadow-red-strong); }
.promo-banner .cta:hover { background: var(--red-dark); }
.promo-banner .cta:active { transform: translateY(1px); }

/* ---------- Mega menu (category overlay, opened via header "+ МЕНЮ") ---------- */
.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  background: var(--bg);
  z-index: 250;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out), top var(--dur-base) var(--ease-out);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.mega-menu > .container { max-width: 1560px; }
.mega-menu::-webkit-scrollbar { width: 10px; }
.mega-menu::-webkit-scrollbar-track { background: transparent; }
.mega-menu::-webkit-scrollbar-thumb { background: var(--surface-2); border: 2px solid var(--bg); border-radius: 999px; }
.site-header.is-condensed ~ .mega-menu {
  top: var(--header-height-condensed);
  max-height: calc(100vh - var(--header-height-condensed));
}
.mega-menu.open { transform: translateX(0); }
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.mega-menu.open .mega-menu-grid { opacity: 1; transition-delay: 80ms; }
.mega-menu-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: var(--surface) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: clamp(16px, 1.5vw, 24px);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.mega-menu-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 65%);
  transition: background var(--dur-slow) var(--ease-out);
}
.mega-menu-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.mega-menu-tile:hover::before { background: linear-gradient(0deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.25) 70%); }
.mega-menu-tile:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mega-menu-tile .tile-name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-tile);
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* ---------- Catalog ---------- */
.catalog-section { padding: 36px 0; scroll-margin-top: calc(var(--header-height-condensed) + 20px); }
.category-block { margin-bottom: 44px; scroll-margin-top: calc(var(--header-height-condensed) + 20px); }
.scroll-anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-height-condensed) + 20px); }
.category-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #8f8f8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .category-block h2 { color: #fff; background: none; }
}
.category-desc { margin-bottom: 18px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card.hidden { display: none; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-base);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: #3a3a3a;
}

.product-card .thumb {
  height: 280px;
  position: relative;
  background: #262626 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
  transition: transform var(--dur-slower) var(--ease-out);
}
.product-card:hover .thumb { transform: scale(1.06); }
.product-card .thumb img { height: 100%; width: 100%; object-fit: cover; }
.product-card .thumb .qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20,20,20,0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.3;
}

.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .name {
  font-weight: 700;
  font-size: var(--fs-card-title);
  color: var(--text);
}
.product-card .composition-label { font-weight: 700; font-size: 0.82rem; margin-top: 4px; }
.product-card .desc { font-size: 0.82rem; color: var(--text-muted); flex: 1; }
.product-card .price {
  color: var(--red);
  font-weight: 700;
  font-size: var(--fs-price);
  margin-top: 8px;
}

.badge-set {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  width: fit-content;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base),
              filter var(--dur-base),
              background var(--dur-base),
              opacity var(--dur-base),
              color var(--dur-base);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--shadow-red-strong); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; filter: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 0.78rem; }

/* «Добавлено ✓» — 800-мс успешное состояние add-to-cart (catalog.js тогглит disabled) */
.add-to-cart-btn:disabled {
  background: linear-gradient(180deg, #1a7f37 0%, #12602a 100%);
  color: #fff;
  opacity: 1;
}

/* ---------- Qty stepper ---------- */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-2);
}
.qty-stepper button {
  border: none;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  width: 26px;
  height: 26px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast),
              transform var(--dur-fast) var(--ease-out);
}
.qty-stepper button:hover { background: var(--red); color: #fff; }
.qty-stepper button:active { transform: scale(.88); }
.qty-stepper .qty-value { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(0,0,0,0.55);
  z-index: 301;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header .back-link { font-weight: 700; cursor: pointer; transition: color var(--dur-base); }
.cart-drawer-header .back-link:hover { color: var(--red); }
.cart-drawer-header .clear-btn {
  background: var(--surface-2);
  color: var(--text-muted);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--dur-base), color var(--dur-base);
}
.cart-drawer-header .clear-btn:hover { background: var(--red-dark); color: #fff; }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.cart-drawer-body::-webkit-scrollbar { width: 10px; }
.cart-drawer-body::-webkit-scrollbar-track { background: transparent; }
.cart-drawer-body::-webkit-scrollbar-thumb { background: var(--surface-2); border: 2px solid var(--bg); border-radius: 999px; }
.cart-drawer-footer { padding: 18px 20px; border-top: 1px solid var(--border); }

/* ---------- Cart items (shared: drawer + /cart page) ---------- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-body .cart-item {
  margin: 0 -20px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-base);
}
.cart-drawer-body .cart-item:hover { background: var(--surface); }
.cart-item .thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--surface-2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-weight: 700; font-size: 0.9rem; }
.cart-item .price { color: var(--text-muted); font-size: 0.82rem; }
.cart-item .remove {
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), color var(--dur-base),
              transform var(--dur-fast) var(--ease-out);
}
.cart-item .remove:hover { background: var(--red); color: #fff; }
.cart-item .remove:active { transform: scale(.88); }
.cart-summary { margin-top: 10px; }
.cart-summary .row,
#summary-items .row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-muted); font-size: 0.9rem; gap: 12px; }
.cart-summary .row.total { font-weight: 800; font-size: 1.15rem; color: #fff; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }

.cart-page { padding: 40px 0; max-width: 760px; margin: 0 auto; }

/* ---------- Checkout ---------- */
.checkout-page { padding: 40px 0; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.checkout-form, .order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.88rem; }
.form-group input[type=text],
.form-group input[type=tel],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=time],
.form-group input[type=number],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input[type=text]:focus,
.form-group input[type=tel]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group input[type=time]:focus,
.form-group input[type=number]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(252,0,0,.18);
  background: var(--surface);
}
.form-group textarea { resize: vertical; min-height: 70px; }

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }

.checkout-form input[type=radio],
.checkout-form input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.checkout-form input[type=radio] { border-radius: 50%; }
.checkout-form input[type=checkbox] { border-radius: 6px; margin-top: 1px; }
.checkout-form input[type=radio]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform var(--dur-base) var(--ease-spring);
}
.checkout-form input[type=radio]:checked { border-color: var(--red); }
.checkout-form input[type=radio]:checked::before { transform: scale(1); }
.checkout-form input[type=checkbox]::before {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.checkout-form input[type=checkbox]:checked { background: var(--red); border-color: var(--red); }
.checkout-form input[type=checkbox]:checked::before { transform: rotate(-45deg) scale(1); }
.checkout-form input[type=radio]:focus-visible,
.checkout-form input[type=checkbox]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.checkbox-row label { cursor: pointer; }
#promo-message { font-size: 0.85rem; margin-top: 6px; }
#order-error { color: var(--red); font-weight: 600; margin-top: 10px; }
#order-error:not(:empty) {
  background: rgba(252,0,0,.08);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

/* ---------- Confirmation ---------- */
.confirmation-page { padding: 60px 0; text-align: center; max-width: 560px; margin: 0 auto; }
.confirmation-page .icon {
  font-size: clamp(3rem, 2.5rem + 2vw, 3.75rem);
  animation: dz-confirm-pop var(--dur-slower) var(--ease-spring);
}
.confirmation-page .order-number { font-weight: 800; font-size: 1.4rem; color: var(--red); }
.confirmation-status {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 700;
  transition: background var(--dur-base);
}

/* ---------- Static pages ---------- */
/* Width/centering comes from the inner .container (1240px, margin auto) so the
   content's left edge lines up with the header logo. */
.static-page { padding: 48px 0; }
.static-page p { max-width: 68ch; }

/* Delivery page hero (map + text/CTA), matches the live Dziro layout */
.delivery-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 24px 0 8px;
}
.delivery-hero-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.delivery-hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin: 0 0 14px;
}
.delivery-hero-text strong { color: #fff; }
.delivery-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.delivery-cta .btn { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 24px 0; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-base);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #3a3a3a; }
.info-card .label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.info-card .value { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }

.info-rows { margin: 24px 0; max-width: 480px; }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-row .label { font-weight: 700; color: #fff; }
.info-row .value { color: var(--text-muted); text-align: right; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin-top: 20px; }
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  min-height: 320px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-1);
}
.about-text h3 { font-size: 1rem; margin-top: 18px; color: #fff; }
.show-more-link {
  color: var(--red);
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
  transition: opacity var(--dur-base);
}
.show-more-link:hover { text-decoration: underline; }
.about-more {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base);
}
.about-more.open { max-height: 600px; opacity: 1; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin-top: 20px; }
.contacts-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); padding: 0; box-shadow: var(--shadow-1); }
.contacts-map img, .contacts-map iframe { width: 100%; display: block; border: 0; }

/* ---------- Auth modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.auth-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-4);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 380px;
  max-width: 92vw;
  position: relative;
  text-align: center;
}
.modal-overlay.open .auth-modal { animation: dz-modal-in var(--dur-slow) var(--ease-out); }
.auth-modal .close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), color var(--dur-base), transform var(--dur-fast) var(--ease-out);
}
.auth-modal .close-btn:hover { background: var(--surface-2); color: var(--text); }
.auth-modal .close-btn:active { transform: scale(.9); }
.auth-modal h2 { color: var(--text); margin-bottom: 20px; font-family: var(--font-display); }
.auth-modal .form-group { text-align: left; }
.auth-modal .form-group input {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.auth-modal .form-group input::placeholder { color: var(--text-muted); }
.auth-modal .form-group input:focus {
  outline: none;
  border-color: var(--red-border);
  box-shadow: 0 0 0 3px rgba(252,0,0,.18);
}
.auth-modal .links-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.82rem; }
.auth-modal .links-row a { color: var(--red); font-weight: 600; cursor: pointer; transition: opacity var(--dur-base); }
.auth-modal .links-row a:hover { opacity: 0.8; }
.auth-modal .switch-mode { margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.auth-modal .switch-mode a { color: var(--red); font-weight: 700; cursor: pointer; }
.auth-modal .form-error { color: var(--red); font-size: 0.85rem; margin-bottom: 10px; }
.auth-modal .form-success { color: #1a7f37; font-size: 0.85rem; margin-bottom: 10px; }

/* ---------- Promo «Подробнее» modal (баннеры акций на главной) ---------- */
.promo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.promo-modal-overlay.open { display: flex; }
.promo-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-4);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 460px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.promo-modal-overlay.open .promo-modal { animation: dz-modal-in var(--dur-slow) var(--ease-out); }
.promo-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), color var(--dur-base), transform var(--dur-fast) var(--ease-out);
}
.promo-modal-close:hover { background: var(--surface-2); color: var(--text); }
.promo-modal-close:active { transform: scale(.9); }
.promo-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 34px 16px 0;
  color: #fff;
}
.promo-modal-content p { color: var(--text-muted); margin: 0 0 12px; line-height: 1.55; }
.promo-modal-content strong { color: var(--text); }
.promo-modal-list { margin: 0 0 12px; padding: 0; }
.promo-modal-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: var(--text-muted);
  line-height: 1.5;
}
.promo-modal-list li::before { content: "•"; position: absolute; left: 4px; color: var(--red); }
.promo-modal-note { font-size: 0.85rem; }
.promo-modal-action { margin-top: 8px; text-decoration: none; }

/* ---------- Product modal (карточка товара: топпинги + «С этим блюдом заказывают») ---------- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.product-modal-overlay.open { display: flex; }
.product-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-4);
  border-radius: var(--radius-lg);
  width: 900px;
  max-width: 100%;
  padding: 20px 24px 26px;
  position: relative;
}
.product-modal-overlay.open .product-modal { animation: dz-modal-in var(--dur-slow) var(--ease-out); }
.product-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.product-modal-back {
  background: none;
  border: none;
  color: var(--red);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
}
.product-modal-back:hover { text-decoration: underline; }
.product-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base), transform var(--dur-fast) var(--ease-out);
}
.product-modal-close:hover { background: var(--surface-2); }
.product-modal-close:active { transform: scale(.9); }

.product-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.product-modal-thumb {
  border-radius: var(--radius);
  background: #262626 center/cover no-repeat;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 1px solid var(--border);
}
.product-modal-name { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 6px; color: #fff; }
.product-modal-info .price { color: var(--red); font-weight: 700; font-size: var(--fs-price); margin-bottom: 14px; }
.product-modal-subtitle { font-weight: 700; margin: 6px 0 10px; }

.product-modal-toppings { margin-bottom: 16px; }
.product-modal-toppings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pm-topping {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 6px 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-fast) var(--ease-out);
}
.pm-topping:hover { border-color: #3a3a3a; }
.pm-topping:active { transform: scale(.97); }
.pm-topping.is-selected { border-color: var(--red); background: rgba(252,0,0,.10); }
.pm-topping-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #262626 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.pm-topping-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dff5e3;
  color: #12602a;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.pm-topping-name { font-size: 0.74rem; text-align: center; line-height: 1.2; }

.product-modal-order { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.product-modal-order .pm-add-btn { flex: 1; }
.product-modal-composition, .product-modal-meta { margin-bottom: 12px; }
.product-modal-composition .desc, .product-modal-meta .desc { color: var(--text-muted); font-size: 0.9rem; }

.product-modal-cross { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.product-modal-cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-cross-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dur-base), transform var(--dur-slow) var(--ease-out);
}
.pm-cross-card:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.pm-cross-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #262626 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.pm-cross-card .pm-cross-name { font-weight: 700; font-size: 0.9rem; }
.pm-cross-card .price { color: var(--red); font-weight: 700; }
.pm-cross-card .pm-cross-add { margin-top: 4px; }

@media (max-width: 760px) {
  .product-modal-overlay { padding: 0; align-items: stretch; }
  .product-modal { border-radius: 0; min-height: 100%; width: 100%; padding: 16px 16px 24px; }
  .product-modal-body { grid-template-columns: 1fr; gap: 16px; }
  .product-modal-toppings-grid { grid-template-columns: repeat(2, 1fr); }
  .product-modal-cross-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x proximity;
  }
  .product-modal-cross-grid .pm-cross-card { flex: 0 0 60%; scroll-snap-align: start; }
}

/* ---------- Toast (мини-уведомление, создаётся cart.js) ---------- */
.dz-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-3);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.dz-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Ролл дня ---------- */
.roll-of-day-card .rod-note { color: var(--red); font-weight: 600; margin-top: 2px; }

/* ---------- Account / orders ---------- */
.account-page { padding: 40px 0; }
.account-order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-base);
}
.account-order-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #3a3a3a; }
.account-order-card .top-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.account-order-card .order-number { font-weight: 700; }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.status-pill.paid, .status-pill.completed { background: #1a7f37; border-color: rgba(26,127,55,.5); }
.status-pill.failed, .status-pill.cancelled { background: var(--red-dark); border-color: rgba(164,18,27,.6); }
.status-pill.pending, .status-pill.new { background: #7a5b00; border-color: rgba(122,91,0,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); margin-top: 60px; padding: 0 0 20px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 0; }
.footer-app-promo {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 30px 26px;
  border-radius: 0 0 0 var(--radius-lg);
}
.footer-app-promo h3 { font-size: 1.1rem; margin-bottom: 16px; }
.store-badges { display: flex; gap: 10px; }
.store-badge {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.72rem;
  line-height: 1.2;
}
.store-badge .top { display: block; opacity: 0.8; font-size: 0.62rem; }
.store-badge .bottom { display: block; font-weight: 700; }

.footer-col { padding: 30px 24px; }
.footer-col .footer-title { font-weight: 700; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.footer-col .footer-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 8px var(--red); }
.footer-col a, .footer-col p { display: block; color: #cfcfcf; padding: 3px 0; margin: 0; }
.footer-col a { transition: color var(--dur-base); }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 20px; padding-top: 16px; font-size: 0.8rem; color: #9a9a9a; }

/* ---------- Fake payment (dev) ---------- */
.fake-payment-page { padding: 60px 0; text-align: center; }
.fake-payment-box { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1); }
.fake-payment-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Chat widget (💬 → Telegram + почта, выезд снизу вверх) ---------- */
.chat-widget {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 24px;
  z-index: 150;
}
.chat-bubble {
  position: relative;
  display: flex;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), var(--shadow-red);
  animation: dz-chat-pulse 3.2s var(--ease-in-out) 2s infinite;
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(0,0,0,0.5), var(--shadow-red-strong); }
.chat-bubble:active { transform: scale(.94); }
.chat-widget.open .chat-bubble { animation: none; }

/* всплывашка над пузырьком — absolute, места не занимает */
.chat-actions {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring),
              visibility var(--dur-base);
}
.chat-widget.open .chat-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.chat-action {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-base);
}
.chat-action:hover { transform: scale(1.08); filter: brightness(1.08); }
.chat-action:active { transform: scale(.94); }
.chat-action svg { width: 26px; height: 26px; display: block; }
.chat-tg { background: #29a9ea; }
.chat-mail { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); }
.chat-mail svg { width: 24px; height: 24px; }

/* ---------- Scroll-to-top (создаётся ui-enhance.js) ---------- */
.scroll-top {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base),
              background var(--dur-base),
              border-color var(--dur-base);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--red); border-color: var(--red); }
.scroll-top:active { transform: scale(.92); }
.scroll-top svg { display: block; }

/* ---------- Motion keyframes ---------- */
@keyframes dz-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes dz-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
@keyframes dz-chat-pulse {
  0%   { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 0 rgba(252,0,0,.45); }
  70%  { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 16px rgba(252,0,0,0); }
  100% { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 0 rgba(252,0,0,0); }
}
@keyframes dz-confirm-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .order-summary { position: sticky; top: calc(var(--header-height) + 16px); }
}

@media (max-width: 980px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 8px 20px 16px;
    font-size: 1rem;
    background: rgba(16, 16, 16, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    z-index: 190;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-of-type { border-bottom: none; }
  .main-nav a::after { display: none; }
  .main-nav .sep { display: none; }
  .site-header.is-condensed .main-nav { top: var(--header-height-condensed); }

  .header-inner { gap: 14px; }
  .phone-pill { display: none; }
  .search-form { display: none; }
  .burger { display: block; }
  .checkout-grid, .about-grid, .contacts-grid, .delivery-hero { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-app-promo { border-radius: 0; grid-column: 1 / -1; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  /* мобильные макеты квадратные (320×320 / 280×280) */
  .promo-banner { background-image: var(--bg-m); justify-content: flex-start; }  /* мобайл: кнопка внизу слева */

  /* --- Горизонтальная прокрутка баннеров акций (задача 11) --- */
  .hero-section {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    padding: 24px 14px;
    scroll-snap-type: x proximity;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
  }
  /* строки-обёртки убираем из потока — 4 баннера становятся flex-элементами .hero-section */
  .hero-row-1, .hero-row-2 { display: contents; }
  .hero-row-1 .promo-banner,
  .hero-row-2 .promo-banner {
    flex: 0 0 82%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
  }

  /* --- Горизонтальная прокрутка товаров в категориях (задача 11) --- */
  .product-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .product-grid > .product-card {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: start;
  }

  .container { padding: 0 14px; }

  /* --- Крупные кнопки в шапке, бургер оставлен (задача 12) --- */
  .header-inner { gap: 6px; justify-content: space-between; }
  .header-actions { gap: 7px; }
  /* логотип скрыт на мобиле — как на макете (МЕНЮ / телефон / корзина / профиль) */
  .logo { display: none; }
  .menu-btn { padding: 10px 14px; font-size: 0.88rem; letter-spacing: 0.3px; }
  .phone-pill {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 0.74rem;
  }
  .icon-circle { width: 44px; height: 44px; border-radius: 12px; }
  .icon-circle img { height: 20px; width: 20px; }
  .icon-circle .badge-count { min-width: 20px; height: 20px; font-size: 0.72rem; }
  .burger { font-size: 1.5rem; padding: 2px; }
}

@media (max-width: 380px) {
  .phone-pill { padding: 7px 8px; font-size: 0.68rem; }
  .menu-btn { padding: 9px 11px; font-size: 0.8rem; }
  .icon-circle { width: 40px; height: 40px; }
}

@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: var(--shadow-1); border-color: var(--border); }
  .product-card:hover .thumb { transform: none; }
  .promo-banner:hover { transform: none; box-shadow: var(--shadow-2); }
  .mega-menu-tile:hover { transform: none; box-shadow: var(--shadow-1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-reveal .dz-reveal { opacity: 1 !important; transform: none !important; }
  .chat-bubble { animation: none !important; }
}
