/* ============================================================
   Pompeii Grill — QR Menu · pure HTML/CSS/Alpine
   Brand: Red #C13030 / White #FFFFFF / Black #1A1410 / Gold (logo only)
   v4.0 — White-bg fast-food brand (по баннеру клиента + Hoja-плотность)
   ============================================================ */

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

:root {
  /* ── PRIMARY (помпейский красный по баннеру) ── */
  --y-red:   #C13030;
  --y-red-d: #8B1818;
  --y-red-l: #A82828;

  /* ── BRAND GOLD (ТОЛЬКО лого) ── */
  --p-gold:   #D49419;
  --p-gold-l: #E5B447;
  --p-gold-d: #B8800F;

  /* ── BASE — белая фирменка (как баннер) ── */
  --y-cream:    #FFFFFF;
  --y-cream-d:  #F7F7F7;
  --y-coal:     #1A1410;
  --y-coal-d:   #000000;
  --y-white:    #FFFFFF;
  --y-muted:    #6E6E6E;
  --y-line:     #ECECEC;

  /* ── SHADOWS — холодные ── */
  --y-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --y-shadow-md: 0 8px 22px -8px rgba(0,0,0,.10);
  --y-shadow-lg: 0 16px 40px -12px rgba(0,0,0,.14);
  --y-shadow-red: 0 10px 22px -10px rgba(193,48,48,.40);

  /* ── RADIUS / METRICS — Hoja-density ── */
  --y-radius: 12px;
  --y-radius-lg: 18px;
  --y-header-h: 56px;
  --y-search-h: 52px;
  --y-bottom-nav-h: 64px;
  --y-ease: cubic-bezier(.32,.72,0,1);

  /* ── FONTS — только Inter (как баннер) ── */
  --p-font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --p-font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Заголовки — жирный sans uppercase (как «ЛЮБИМЫЕ БЛЮДА») ── */
h1, h2 {
  font-family: var(--p-font-display);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--y-coal);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--y-white);
  color: var(--y-coal);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* ============================================================
   APP FRAME — единый контейнер для всех 4-х элементов (page+header+search+nav)
   На mobile = full-width, на desktop = 480px центрированный
   ============================================================ */
.app-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--y-cream);
}
@media (min-width: 768px) {
  body { background: var(--y-coal-d); padding: 0; }
  .app-frame {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0,0,0,.55);
    overflow: hidden;
  }
}

button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

[x-cloak] { display: none !important; }

/* a11y — скрытый текст для screen readers + SEO h1 */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   ANTI-FOUC: до того как Alpine инициализируется, body=cloak.
   Когда Alpine готов — cloak снимается, splash виден сверху.
   Ниже splash скрыт background coal, чтобы не было cream-полос
   ============================================================ */
body[x-cloak]::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(180deg, var(--y-red) 0%, var(--y-red-d) 100%);
}

/* ============================================================
   SPLASH — 3-stage animation
   t=0     drops fall + rays expand
   t=400   logo letters materialize (scale 0.6→1.04→1, blur 8→0)
   t=900   tagline letter-spacing 0→3px + fade-in
   t=1400  loader bar fills
   t=2400  whole splash fade-out
   ============================================================ */
#splash {
  position: fixed; inset: 0; z-index: 10000;
  background:
    radial-gradient(ellipse at center, #FFF6E5 0%, var(--y-cream) 55%, var(--y-cream-d) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  overflow: hidden;
}
/* food-pattern backdrop как Ionic v1 welcome */
#splash::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none'><g opacity='0.14' fill='%23D4151C'><path d='M40 30c0-7 5-13 11-13s11 6 11 13c0 9-11 22-11 22S40 39 40 30z'/><path d='M250 60c0-6 4-10 9-10s9 4 9 10c0 7-9 18-9 18s-9-11-9-18z'/><path d='M120 110c0-5 4-10 9-10s9 5 9 10c0 8-9 19-9 19s-9-11-9-19z'/><path d='M280 180c0-7 5-13 11-13s11 6 11 13c0 9-11 22-11 22s-11-13-11-22z'/><path d='M30 220c0-6 4-10 9-10s9 4 9 10c0 7-9 18-9 18s-9-11-9-18z'/><path d='M180 260c0-5 4-10 9-10s9 5 9 10c0 8-9 19-9 19s-9-11-9-19z'/><ellipse cx='200' cy='40' rx='14' ry='6'/><ellipse cx='80' cy='160' rx='16' ry='7'/><ellipse cx='240' cy='280' rx='14' ry='6'/></g></svg>");
  background-repeat: repeat;
  background-size: 320px 320px;
  pointer-events: none;
  opacity: .85;
}
#splash.splash-leave { transition: opacity .55s ease, transform .55s ease; }
#splash.splash-leave-start { opacity: 1; transform: scale(1); }
#splash.splash-leave-end { opacity: 0; transform: scale(1.05); pointer-events: none; }

#splash .splash-stage {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative;
  z-index: 2;
}

/* radial rays — на cream-фоне делаем красные тонкие */
#splash .splash-rays {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(212,21,28,.08) 0deg 8deg,
      transparent 8deg 22deg
    );
  border-radius: 50%;
  opacity: 0;
  animation: rayExpand 2.4s var(--y-ease) forwards;
}
@keyframes rayExpand {
  0%   { transform: translate(-50%,-50%) scale(0)   rotate(0deg); opacity: 0; }
  30%  { opacity: .85; }
  100% { transform: translate(-50%,-50%) scale(1.4) rotate(60deg); opacity: 0; }
}

/* brand wordmark (CSS-only, красный) — materialize: scale .6→1.04→1, blur 10→0 */
#splash .splash-logo {
  opacity: 0;
  transform: scale(.6);
  filter: blur(10px);
  animation: logoIn 0.9s var(--y-ease) 400ms forwards;
}
#splash .splash-wordmark {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 80px;
  color: var(--y-red);
  letter-spacing: -3px;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  text-shadow: 0 14px 36px rgba(212,21,28,.30);
}
#splash .splash-wordmark::after {
  content: '';
  position: absolute;
  left: 22%; right: 22%; bottom: 6px;
  height: 4px;
  background: var(--y-red);
  border-radius: 99px;
  transform: skewX(-18deg);
}
@keyframes logoIn {
  0%   { opacity: 0; transform: scale(.6) translateY(18px); filter: blur(10px); }
  60%  { opacity: 1; transform: scale(1.05) translateY(0); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* tagline — на cream фоне делаем coal с red акцентами */
#splash .splash-tag-wrap { overflow: hidden; height: 22px; margin-top: 14px; }
#splash .splash-tag {
  color: var(--y-red);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: tagIn 1.1s var(--y-ease) 1300ms forwards;
}
@keyframes tagIn {
  0%   { opacity: 0; letter-spacing: 0;   transform: translateY(20px); }
  100% { opacity: 1; letter-spacing: 4px; transform: translateY(0); }
}

/* loader bar — red on cream */
#splash .splash-loader {
  width: 80px; height: 2px;
  background: rgba(212,21,28,.20);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 22px;
  opacity: 0;
  animation: fadeIn .4s ease 1500ms forwards;
}
#splash .splash-loader-bar {
  width: 0%; height: 100%;
  background: var(--y-red);
  border-radius: 99px;
  animation: loaderFill 1s ease 1600ms forwards;
}
@keyframes loaderFill { 0% { width: 0; } 100% { width: 100%; } }
@keyframes fadeIn    { 0% { opacity: 0; } 100% { opacity: 1; } }

/* drops — 5 штук, красные на cream */
#splash .drop {
  position: absolute;
  width: 14px; height: 22px;
  background: rgba(212,21,28,.18);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(.5px);
  pointer-events: none;
}
#splash .drop.d1 { top: -60px; left: -120px; animation: yDrop 1.8s var(--y-ease) 0ms infinite; }
#splash .drop.d2 { top: -60px; right: -130px; animation: yDrop 1.8s var(--y-ease) 250ms infinite; }
#splash .drop.d3 { top: -80px; left: 60px; animation: yDrop 1.8s var(--y-ease) 500ms infinite; }
#splash .drop.d4 { top: -90px; right: 30px; animation: yDrop 1.8s var(--y-ease) 750ms infinite; }
#splash .drop.d5 { top: -70px; left: -40px; animation: yDrop 1.8s var(--y-ease) 1000ms infinite; }
@keyframes yDrop {
  0%   { transform: translateY(0) scale(.8); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: .6; }
  100% { transform: translateY(220px) scale(1.1); opacity: 0; }
}

/* ============================================================
   WELCOME (one-time greeting, sequential stagger 0.1s)
   Background: cream + scattered food pattern (как Ionic v1)
   ============================================================ */
#welcome {
  position: fixed; inset: 0; z-index: 9000;
  background:
    radial-gradient(ellipse at top, #FFF6E5 0%, var(--y-cream) 60%, var(--y-cream-d) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
  opacity: 1; transition: opacity .55s ease;
  overflow: hidden;
}
/* SVG food-pattern scattered (drops/burger silhouettes) — соответствует Ionic v1 */
#welcome::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none'><g opacity='0.14' fill='%23D4151C'><path d='M40 30c0-7 5-13 11-13s11 6 11 13c0 9-11 22-11 22S40 39 40 30z'/><path d='M250 60c0-6 4-10 9-10s9 4 9 10c0 7-9 18-9 18s-9-11-9-18z'/><path d='M120 110c0-5 4-10 9-10s9 5 9 10c0 8-9 19-9 19s-9-11-9-19z'/><path d='M280 180c0-7 5-13 11-13s11 6 11 13c0 9-11 22-11 22s-11-13-11-22z'/><path d='M30 220c0-6 4-10 9-10s9 4 9 10c0 7-9 18-9 18s-9-11-9-18z'/><path d='M180 260c0-5 4-10 9-10s9 5 9 10c0 8-9 19-9 19s-9-11-9-19z'/><ellipse cx='200' cy='40' rx='14' ry='6'/><ellipse cx='80' cy='160' rx='16' ry='7'/><ellipse cx='240' cy='280' rx='14' ry='6'/></g></svg>");
  background-repeat: repeat;
  background-size: 320px 320px;
  pointer-events: none;
  opacity: .85;
  animation: patternFloat 28s linear infinite;
}
@keyframes patternFloat {
  from { background-position: 0 0; }
  to   { background-position: 320px 320px; }
}
#welcome.gone { opacity: 0; pointer-events: none; }
#welcome .welcome-stage {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 420px; width: 100%; text-align: center;
  position: relative;
  z-index: 2;
}
#welcome .welcome-stage::before {
  content: ''; position: absolute;
  top: -6%; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(212,21,28,.10) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
#welcome .welcome-stage > * { position: relative; z-index: 1; }

/* stagger items */
#welcome .stg {
  opacity: 0;
  transform: translateY(14px);
}
#welcome.is-open .stg {
  animation: stgIn .55s var(--y-ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes stgIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

#welcome .welcome-logo {
  margin-bottom: 8px;
}
#welcome .welcome-wordmark {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 72px;
  color: var(--y-red);
  letter-spacing: -3px;
  line-height: 1;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
  text-shadow: 0 12px 30px rgba(212,21,28,.28);
}
#welcome .welcome-wordmark::after {
  content: '';
  position: absolute;
  left: 22%; right: 22%; bottom: 6px;
  height: 4px;
  background: var(--y-red);
  border-radius: 99px;
  transform: skewX(-18deg);
}
#welcome .welcome-greet-kz {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 38px; color: var(--y-coal);
  letter-spacing: -.5px;
  margin-top: 14px;
}
#welcome .welcome-greet-ru {
  color: var(--y-muted);
  font-size: 13px; font-weight: 500;
}
#welcome .welcome-divider {
  width: 64px; height: 1.5px;
  background: var(--y-red);
  opacity: .55;
  border-radius: 99px;
  margin: 8px auto;
}
#welcome .welcome-acc {
  font-size: 12px; font-weight: 800; letter-spacing: 3.6px;
  text-transform: uppercase; color: var(--y-red);
  margin-bottom: 4px;
}
#welcome .welcome-pills {
  display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center;
  margin: 4px 0;
}
#welcome .welcome-pills span {
  background: #fff; padding: 10px 18px;
  border-radius: 99px;
  font-size: 14px; font-weight: 600;
  color: var(--y-coal);
  border: 1px solid var(--y-line);
  box-shadow: 0 6px 16px -8px rgba(27,18,11,.20);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
#welcome .welcome-addr {
  color: var(--y-muted);
  font-size: 14px;
  margin: 8px 0 4px;
  line-height: 1.7;
}
#welcome .welcome-addr b { color: var(--y-coal); font-weight: 700; }
#welcome .welcome-addr b:last-of-type { color: var(--y-coal); }
#welcome .welcome-addr .sep { display: inline-block; width: 5px; height: 5px; background: var(--y-red); border-radius: 50%; margin: 0 10px; vertical-align: middle; }
#welcome .welcome-cta {
  background: linear-gradient(135deg, var(--y-red-l) 0%, var(--y-red-d) 100%);
  color: #fff;
  padding: 18px 50px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 17px;
  border: 0;
  margin-top: 14px;
  box-shadow: 0 22px 40px -16px rgba(212,21,28,.70), 0 6px 14px -4px rgba(212,21,28,.40);
  transition: transform .15s ease, box-shadow .25s ease;
}
#welcome .welcome-cta:hover { box-shadow: 0 26px 50px -18px rgba(212,21,28,.85); }
#welcome .welcome-cta:active { transform: scale(.97); }
#welcome .welcome-tap {
  color: var(--y-muted);
  font-size: 11px; letter-spacing: 2px;
  margin-top: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   HEADER (red, fixed)
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--y-header-h);
  background: linear-gradient(180deg, var(--y-red) 0%, var(--y-red-d) 100%);
  z-index: 80;
  display: flex; align-items: center;
  padding: 0 12px;
  box-shadow: 0 6px 22px -10px rgba(0,0,0,.35), 0 2px 6px -2px rgba(0,0,0,.15);
  padding-top: env(safe-area-inset-top, 0);
  transition: box-shadow .25s ease, backdrop-filter .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45), 0 4px 10px -2px rgba(0,0,0,.20);
}
.header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.header-burger, .header-icon-btn {
  width: 42px; height: 42px;
  background: transparent; border: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.header-burger:hover, .header-icon-btn:hover { background: rgba(255,255,255,.10); }
.header-burger:active, .header-icon-btn:active {
  background: rgba(255,255,255,.14);
  transform: scale(.92);
}
.header-burger svg { width: 26px; height: 26px; stroke: #fff; }
.header-logo {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.header-wordmark {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  color: #fff;
  font-size: 28px;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
}
.header-wordmark::after {
  content: '';
  position: absolute;
  left: 22%; right: 22%; bottom: 1px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 99px;
  transform: skewX(-18deg);
}
.header-actions { display: flex; gap: 4px; }
.header-icon-btn {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header-icon-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* ============================================================
   SEARCH bar (тёмный, под хедером, вплотную)
   ============================================================ */
.search-bar {
  position: fixed;
  top: var(--y-header-h);
  left: 0; right: 0;
  height: var(--y-search-h);
  background: var(--y-coal-d);
  padding: 8px 16px;
  z-index: 70;
  display: flex; align-items: center;
  box-shadow: 0 6px 14px -10px rgba(0,0,0,.35);
}
.search-bar input {
  flex: 1; height: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: #fff;
  padding: 0 16px 0 42px;
  font-size: 14px;
  font-family: inherit;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
.search-bar input:focus {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.10);
}
.search-bar input::placeholder { color: rgba(255,255,255,.55); font-weight: 500; }
.search-bar .search-icon {
  position: absolute;
  left: 30px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,.65); fill: none; stroke-width: 2;
  pointer-events: none;
}

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.page {
  min-height: 100vh;
  padding-top: 0;          /* Pompeii: header sticky → main без отступа сверху */
  padding-bottom: calc(var(--y-bottom-nav-h) + 16px);
  background: var(--y-cream);
}
.page.no-search { padding-top: 0; }

/* page transitions (Alpine x-transition between views) */
.page-enter { transition: opacity .35s ease, transform .45s var(--y-ease); }
.page-enter-start { opacity: 0; transform: translateY(8px); }
.page-enter-end   { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO BANNER (HTML overlay, no baked text dependency)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--y-coal);
  margin: 0;
  cursor: pointer;
  display: block;
  line-height: 0;
}
.hero-bg {
  width: 100%;
  height: auto;
  display: block;
  /* НИКАКОГО filter / opacity / mix-blend — баннер во всей своей яркости */
  filter: none !important;
  opacity: 1 !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-logo-mini {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 8px;
  display: inline-flex; align-self: flex-start;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: var(--y-shadow-red);
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.hero-tag {
  font-size: 10px; font-weight: 800;
  letter-spacing: 2.4px;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-style: normal; font-weight: 800;
  color: #fff;
  font-size: 18px; line-height: 1.1;
  letter-spacing: -.6px;
  text-shadow: 0 4px 14px rgba(0,0,0,.55);
  margin-bottom: 14px;
  max-width: 100%;
  word-break: keep-all;
}
.hero-title span {
  display: block;
}
.hero-title .ht-l1 { color: #fff; }
.hero-title .ht-l2 { color: #fff; }
.hero-title .ht-l3 { color: var(--y-red-l); }

.hero-cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .2px;
  border: 0;
  box-shadow: var(--y-shadow-red);
  transition: transform .15s ease, box-shadow .25s ease;
  white-space: nowrap;
  max-width: calc(100% - 8px);
}
.hero-cta:hover { box-shadow: 0 22px 40px -14px rgba(212,21,28,.7); }
.hero-cta:active { transform: scale(.96); }
.hero-cta svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }

.hero-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
}
.hero-meta svg { stroke: currentColor; }

/* ============================================================
   SECTIONS — Common (no white gaps)
   ============================================================ */
.section { padding: 24px 16px 8px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-style: normal; font-weight: 800;
  font-size: 22px; color: var(--y-coal);
  letter-spacing: -.4px;
  position: relative;
  padding-left: 16px;
  line-height: 1.1;
}
.section-title::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--y-red-l), var(--y-red-d));
  border-radius: 99px;
  box-shadow: 0 4px 12px -4px rgba(212,21,28,.6);
}
.section-more {
  font-size: 12px; font-weight: 600;
  color: var(--y-muted);
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.section-more:hover { background: rgba(27,18,11,.05); color: var(--y-coal); }
.new-pill {
  background: linear-gradient(180deg, var(--y-red-l) 0%, var(--y-red-d) 100%);
  color: #fff;
  font-weight: 800; font-size: 11px;
  letter-spacing: 1.6px;
  padding: 7px 16px;
  border-radius: 99px;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -4px rgba(212,21,28,.55);
  display: inline-block;
}

/* ============================================================
   POPULAR slider (вплотную к hero, без cream-зазора)
   ============================================================ */
.popular {
  background: var(--y-coal);
  padding: 22px 0 22px;
  margin: 0;
}
.popular .section-head { padding: 0 16px 14px; margin-bottom: 0; }
.popular .section-title { color: #fff; }
.popular .section-title::before {
  background: linear-gradient(180deg, var(--y-red-l), var(--y-red-d));
}
.popular .section-more { color: rgba(255,255,255,.65); }
.popular .section-more:hover { background: rgba(255,255,255,.08); color: #fff; }

.popular-row {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding-left: 16px;
  scroll-behavior: smooth;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.popular-row::-webkit-scrollbar { display: none; }
.pop-card {
  flex: 0 0 220px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  scroll-snap-align: start;
  height: 200px;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--y-ease), box-shadow .25s ease;
  box-shadow: 0 14px 32px -14px rgba(0,0,0,.55);
}
.pop-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(212,21,28,.5); }
.pop-card:active { transform: translateY(-2px) scale(.97); }
.pop-card > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  transition: transform .55s var(--y-ease);
}
.pop-card:hover > img { transform: scale(1.04); }
.pop-card::after {
  content: ''; position: absolute; inset: 0;
  /* gradient только нижняя половина — для читаемости text */
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
  z-index: 0;
}
.pop-card-meta {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
}
.pop-card-name {
  color: #fff;
  font-size: 13px; font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 4px;
  display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  line-height: 1.2;
}
.pop-card-price {
  color: var(--y-red-l);
  font-weight: 800;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  letter-spacing: -.2px;
  white-space: nowrap;
}
/* .pop-card-arrow удалён — на фото уже есть встроенная красная стрелка,
   карточка целиком кликабельна */

/* ============================================================
   CATEGORIES grid (4 cols) — без cream-зазора
   ============================================================ */
.categories {
  background: var(--y-cream);
  padding: 24px 16px 12px;
  margin: 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px;
  cursor: pointer;
  transition: transform .15s ease;
}
.cat-card:hover .cat-card-img { transform: translateY(-3px); box-shadow: var(--y-shadow-md); }
.cat-card:active { transform: scale(.95); }
.cat-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--y-shadow-sm);
  border: 1px solid var(--y-line);
  transition: transform .25s var(--y-ease), box-shadow .25s ease;
}
.cat-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.cat-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--y-coal);
  line-height: 1.2;
}

/* ============================================================
   PRODUCTS list (catalog page)
   ============================================================ */
.catalog {
  padding: 14px 14px 100px;
}
.chips {
  position: sticky;
  top: calc(var(--y-header-h) + var(--y-search-h));
  z-index: 60;
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 12px;
  margin: 0;
  background: linear-gradient(180deg, var(--y-cream) 0%, var(--y-cream) 70%, rgba(249,240,225,.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--y-line);
  box-shadow: 0 8px 18px -14px rgba(27,18,11,.25);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  font-size: 13px; font-weight: 600;
  color: var(--y-coal);
  border: 1px solid var(--y-line);
  box-shadow: var(--y-shadow-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  scroll-snap-align: start;
}
.cat-chip:hover { transform: translateY(-1px); box-shadow: var(--y-shadow-md); }
.cat-chip:active { transform: scale(.96); }
.cat-chip-img {
  width: 28px; height: 28px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--y-shadow-red);
}
.cat-chip.active .cat-chip-img {
  border: 2px solid rgba(255,255,255,.5);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--y-shadow-sm);
  border: 1px solid var(--y-line);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s var(--y-ease), box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--y-shadow-md); }
.product-card:active { transform: scale(.97); }
.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--y-cream-d);
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--y-ease);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-info {
  padding: 10px 12px 4px;
  flex: 1;
}
.product-card-name {
  font-size: 14px; font-weight: 700;
  color: var(--y-coal);
  line-height: 1.25;
  margin-bottom: 4px;
  display: block;
}
.product-card-weight {
  font-size: 11px;
  color: var(--y-muted);
  font-weight: 500;
}
.product-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 12px 12px;
}
.product-card-price {
  font-size: 15px; font-weight: 800;
  color: var(--y-red);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.product-card-add {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  border: 0; border-radius: 10px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  box-shadow: var(--y-shadow-red);
  transition: transform .15s ease, box-shadow .25s ease;
}
.product-card-add:hover { box-shadow: 0 18px 32px -10px rgba(212,21,28,.7); }
.product-card-add:active { transform: scale(.88); }

/* ============================================================
   ЖАҢА новинки — slider как в Calista (маленькие аккуратные превью)
   ============================================================ */
.new-section { padding: 22px 0 14px; }
.new-section .section-head { padding: 0 16px 14px; margin-bottom: 0; }
.new-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;          /* каждый swipe snap'ит на следующую card */
  scroll-padding-left: 16px;          /* первая card snap к 16px от края, не «нулю» */
  scroll-behavior: smooth;
  padding: 4px 16px 8px;              /* + 4px top чтобы тень card не обрезалась */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;     /* не перехватывает body scroll */
}
.new-row::-webkit-scrollbar { display: none; }
.new-card {
  flex: 0 0 calc((100% - 24px) / 2.5); /* 2.5 cards в viewport: 2 целых + hint */
  min-width: 140px;                    /* не меньше 140 на узких экранах */
  max-width: 200px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--y-shadow-sm);
  border: 1px solid var(--y-line);
  display: flex; flex-direction: column;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform .25s var(--y-ease), box-shadow .25s ease;
}
.new-card:hover { transform: translateY(-3px); box-shadow: var(--y-shadow-md); }
.new-card:active { transform: scale(.97); }
.new-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--y-cream-d);
  overflow: hidden;
}
.new-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
/* hover scale убран — мигание на mobile/touch */
.new-card-name {
  font-size: 12px; font-weight: 700;
  color: var(--y-coal);
  padding: 8px 10px 2px;
  line-height: 1.25;
  min-height: 32px;
}
.new-card-foot {
  padding: 4px 10px 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.new-card-price {
  font-size: 13px; font-weight: 800;
  color: var(--y-red);
  letter-spacing: -.2px;
  white-space: nowrap;
}
.new-card-add {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  border: 0; border-radius: 8px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  box-shadow: var(--y-shadow-red);
  flex-shrink: 0;
}
.new-card-add:active { transform: scale(.88); }

/* loading skeleton */
.product-card.loading { opacity: .55; pointer-events: none; }
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.10), rgba(0,0,0,.05));
  background-size: 200% 100%;
  animation: ySkel 1.4s linear infinite;
  border-radius: 8px;
}
@keyframes ySkel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* empty state на catalog */
.empty {
  text-align: center;
  padding: 60px 22px;
  color: var(--y-muted);
}
.empty-emoji { font-size: 38px; margin-bottom: 8px; }

/* ============================================================
   PRODUCT MODAL (bottom sheet, slide-up)
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,7,4,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 11000;
  animation: bdIn .25s ease forwards;
}
@keyframes bdIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 11001;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 48px -12px rgba(0,0,0,.40);
  max-height: 92vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: modalUp .35s var(--y-ease) forwards;
}
@keyframes modalUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.96);
  border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1;
  color: var(--y-coal);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-img {
  width: 100%; aspect-ratio: 16 / 11;
  background: var(--y-coal);
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 22px 22px 28px; }
.modal-name {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 26px; line-height: 1.15;
  color: var(--y-coal);
  margin-bottom: 6px;
  letter-spacing: -.4px;
}
.modal-meta { display: flex; gap: 8px; margin-bottom: 14px; }
.modal-weight {
  background: var(--y-cream-d);
  color: #6B4914;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
}
.modal-desc {
  color: #4A3F33;
  font-size: 14px; line-height: 1.55;
  margin-bottom: 18px;
}
.modal-qty-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  margin: 8px 0;
  border-top: 1px solid var(--y-line);
  border-bottom: 1px solid var(--y-line);
}
.modal-qty-label {
  font-size: 13px; font-weight: 700;
  color: var(--y-coal);
  letter-spacing: -.1px;
}
.modal-qty-controls {
  display: inline-flex; align-items: center;
  background: var(--y-cream);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--y-line);
}
.modal-qty-btn {
  width: 32px; height: 32px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 18px; font-weight: 800; line-height: 1;
  color: var(--y-coal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--y-shadow-sm);
  transition: transform .12s ease;
}
.modal-qty-btn:active { transform: scale(.88); }
.modal-qty-btn[disabled] { opacity: .4; pointer-events: none; }
.modal-qty-val {
  min-width: 26px; text-align: center;
  font-size: 16px; font-weight: 800;
  color: var(--y-coal);
  font-family: 'Inter', sans-serif;
  letter-spacing: -.2px;
}
.modal-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 12px;
}
.modal-add {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ============================================================
   CHECKOUT FLOW
   ============================================================ */
.checkout-wrap {
  padding: 12px 14px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.checkout-header {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0 6px;
}
.checkout-back {
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--y-line);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--y-coal);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.checkout-back:hover { background: var(--y-cream); }
.checkout-back:active { transform: scale(.92); }
.checkout-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--y-coal);
  letter-spacing: -.5px;
}
.checkout-section {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--y-line);
  box-shadow: var(--y-shadow-sm);
}
.checkout-label {
  display: block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--y-muted);
  margin-bottom: 10px;
}
.checkout-input {
  width: 100%;
  background: var(--y-cream);
  border: 1px solid var(--y-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--y-coal);
  font-family: inherit;
  resize: vertical;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
.checkout-input:focus {
  border-color: var(--y-red);
  background: #fff;
}
.checkout-input::placeholder { color: rgba(27,18,11,.40); }

/* Способы оплаты */
.checkout-pay {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pay-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  background: var(--y-cream);
  border: 1.5px solid var(--y-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.pay-opt:hover { background: var(--y-cream-d); }
.pay-opt.active {
  background: linear-gradient(135deg, rgba(212,21,28,.08), rgba(212,21,28,.03));
  border-color: var(--y-red);
  box-shadow: 0 8px 18px -8px rgba(212,21,28,.30);
}
.pay-opt input[type=radio] { display: none; }
.pay-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--y-coal);
}
.pay-opt.active .pay-icon {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  box-shadow: var(--y-shadow-red);
}
.pay-icon svg { width: 18px; height: 18px; }
.pay-label {
  font-size: 11px; font-weight: 700;
  color: var(--y-coal);
  letter-spacing: -.1px;
}

/* Бонус toggle */
.checkout-bonus {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.bonus-toggle { display: block; cursor: pointer; }
.bonus-toggle input { display: none; }
.bonus-toggle-inner {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1.5px solid var(--y-line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all .15s ease;
}
.checkout-bonus.active .bonus-toggle-inner {
  background: linear-gradient(135deg, rgba(212,21,28,.06), rgba(212,21,28,.02));
  border-color: var(--y-red);
  box-shadow: 0 12px 24px -10px rgba(212,21,28,.30);
}
.bonus-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--y-cream);
  color: var(--y-red);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.checkout-bonus.active .bonus-icon {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
}
.bonus-body { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.bonus-body b { font-size: 14px; font-weight: 700; color: var(--y-coal); }
.bonus-body em { font-style: normal; font-size: 12px; color: var(--y-muted); margin-top: 2px; }
.bonus-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--y-cream);
  border: 1.5px solid var(--y-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0;
}
.checkout-bonus.active .bonus-check {
  background: var(--y-red);
  border-color: var(--y-red);
  color: #fff;
}

/* Summary */
.checkout-summary {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--y-line);
  box-shadow: var(--y-shadow-sm);
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--y-muted);
}
.summary-row.grand {
  border-top: 1px solid var(--y-line);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 18px; font-weight: 800;
  color: var(--y-coal);
}
.summary-bonus-applied { color: var(--y-red); font-weight: 700; }

/* Done step */
.checkout-done {
  text-align: center;
  padding: 36px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.checkout-done-icon { animation: doneIn .55s var(--y-ease); }
.checkout-done-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--y-coal);
  letter-spacing: -.6px;
}
.checkout-done-id {
  font-size: 13px; font-weight: 700;
  color: var(--y-red);
  letter-spacing: 1px;
}
.checkout-done-info {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid var(--y-line);
  box-shadow: var(--y-shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0 4px;
}
.checkout-done-info .dr {
  display: flex; justify-content: space-between;
  font-size: 14px;
  color: var(--y-muted);
}
.checkout-done-info .dr b {
  color: var(--y-coal);
  font-weight: 700;
}
.checkout-done-msg {
  font-size: 13px; color: var(--y-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 4px 0 14px;
}
.checkout-done .cart-checkout { width: 100%; }
.checkout-done .auth-skip {
  color: var(--y-red);
  font-weight: 700;
  margin-top: 6px;
  padding: 8px;
}

/* ============================================================
   ACHIEVEMENTS (значки в личном кабинете)
   ============================================================ */
.profile-achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ach-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 8px 10px;
  text-align: center;
  position: relative;
  transition: transform .15s ease;
}
.ach-card.earned {
  background: linear-gradient(180deg, rgba(212,21,28,.18), rgba(212,21,28,.06));
  border-color: rgba(212,21,28,.40);
}
.ach-card:hover { transform: translateY(-2px); }
.ach-icon {
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.40);
}
.ach-card.earned .ach-icon {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(212,21,28,.55);
}
.ach-icon svg { width: 22px; height: 22px; }
.ach-name {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.85);
  line-height: 1.2;
  margin-bottom: 2px;
}
.ach-desc {
  font-size: 9px; color: rgba(255,255,255,.45);
  line-height: 1.3;
}
.ach-card.earned .ach-name { color: #fff; }
.ach-card.earned .ach-desc { color: rgba(255,255,255,.65); }
.ach-locked {
  position: absolute;
  top: 8px; right: 8px;
  width: 16px; height: 16px;
  color: rgba(255,255,255,.30);
}
.modal-price {
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--y-red);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.modal-add {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  border: 0; border-radius: 14px;
  padding: 14px 28px;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--y-shadow-red);
  transition: transform .15s ease;
}
.modal-add:active { transform: scale(.95); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-list {
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-item {
  background: #fff;
  border-radius: 16px;
  display: flex; gap: 12px;
  padding: 12px;
  box-shadow: var(--y-shadow-sm);
  border: 1px solid var(--y-line);
}
.cart-item-img {
  width: 86px; height: 86px;
  border-radius: 12px;
  background: var(--y-cream-d);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14px; color: var(--y-coal); margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--y-red); font-family: 'Inter', sans-serif; letter-spacing: -.2px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; background: var(--y-cream); border-radius: 99px; padding: 4px 6px; align-self: flex-start; margin-top: 6px; }
.qty-btn {
  width: 28px; height: 28px;
  background: #fff; border: 0; border-radius: 50%;
  font-size: 18px; line-height: 1;
  color: var(--y-coal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--y-shadow-sm);
  transition: transform .15s ease;
}
.qty-btn:active { transform: scale(.88); }
.qty-val { font-weight: 800; min-width: 18px; text-align: center; font-size: 14px; }

.cart-total {
  position: sticky;
  bottom: var(--y-bottom-nav-h);
  margin: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 -10px 30px -10px rgba(0,0,0,.12);
}
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--y-muted); }
.cart-total-row.grand { font-weight: 800; color: var(--y-coal); font-size: 18px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--y-line); }
.cart-checkout {
  width: 100%; margin-top: 12px;
  padding: 16px; height: 56px;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff; border: 0; border-radius: 16px;
  font-size: 16px; font-weight: 800; letter-spacing: .3px;
  box-shadow: var(--y-shadow-red);
  transition: transform .15s ease;
}
.cart-checkout:active { transform: scale(.97); }

.cart-empty {
  padding: 80px 22px 40px;
  text-align: center;
}
.cart-empty-emoji { font-size: 56px; margin-bottom: 12px; }
.cart-empty-title { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; font-size: 24px; color: var(--y-coal); margin-bottom: 8px; }
.cart-empty-desc { color: var(--y-muted); font-size: 14px; margin-bottom: 22px; }
.cart-empty-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff; border: 0; border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--y-shadow-red);
}

/* ============================================================
   ACCOUNT / AUTH (ЧЁРНАЯ премиум)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--y-coal-d) 0%, var(--y-coal) 100%);
  color: #fff;
  padding: 24px 24px 100px;
  position: relative;
  text-align: center;
  display: flex; flex-direction: column;
  padding-top: calc(24px + env(safe-area-inset-top, 0));
}
.auth-page::before {
  content: ''; position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212,21,28,.20) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page > * { position: relative; z-index: 1; }
.auth-back {
  align-self: flex-start;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.auth-back:hover { background: rgba(255,255,255,.16); }
.auth-back:active { transform: scale(.92); }
.auth-logo {
  margin: 36px auto 16px;
  height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.auth-wordmark {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 52px;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
  text-shadow: 0 6px 24px rgba(212,21,28,.55);
}
.auth-wordmark::after {
  content: '';
  position: absolute;
  left: 22%; right: 22%; bottom: 1px;
  height: 3px;
  background: rgba(255,255,255,.92);
  border-radius: 99px;
  transform: skewX(-18deg);
}
.auth-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 700;
  font-size: 22px; color: #fff;
  line-height: 1.3;
  margin: 16px 0 8px;
  padding: 0 16px;
}
.auth-tagline .accent { color: var(--y-red-l); }
.auth-brand {
  color: rgba(255,255,255,.55);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-top: 6px;
}
.auth-brand .dot { display: inline-block; width: 5px; height: 5px; background: var(--y-red); border-radius: 50%; margin: 0 8px; vertical-align: middle; }

/* TABS Login/Register */
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 4px;
  margin: 26px 8px 14px;
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.55);
  font-size: 14px; font-weight: 700;
  letter-spacing: .2px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(212,21,28,.55);
}
.auth-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: -4px;
  padding-left: 4px;
}
.auth-policy {
  font-size: 11px; color: rgba(255,255,255,.45);
  text-align: center; line-height: 1.5;
  margin-top: 6px;
  padding: 0 12px;
}

/* OTP step */
.auth-otp { gap: 14px !important; align-items: center; }
.auth-otp-title {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 26px; color: #fff;
  letter-spacing: -.4px;
  margin-top: 8px;
}
.auth-otp-sub {
  font-size: 13px; color: rgba(255,255,255,.65);
  text-align: center; line-height: 1.5;
}
.auth-otp-sub b { color: #fff; font-weight: 700; }
.auth-otp-row {
  display: flex; gap: 12px; justify-content: center;
  margin: 8px 0;
}
.auth-otp-input {
  width: 60px; height: 68px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: var(--y-red-l);                  /* код — красный */
  font-size: 30px; font-weight: 800;
  text-align: center;
  outline: 0;
  caret-color: var(--y-red);
  transition: border-color .15s ease, transform .12s ease, box-shadow .25s ease;
}
.auth-otp-input:focus {
  border-color: var(--y-red);
  box-shadow: 0 0 0 4px rgba(212,21,28,.18);
  transform: translateY(-2px);
}
.auth-otp-input:not(:placeholder-shown) {
  border-color: var(--y-red);
}
.auth-otp-resend {
  font-size: 11px; color: rgba(255,255,255,.45);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

/* DONE step */
.auth-done { align-items: center; gap: 10px !important; }
.auth-done-icon { margin-top: 12px; animation: doneIn .55s var(--y-ease); }
@keyframes doneIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.auth-done-title {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 28px; color: #fff;
}
.auth-done-name {
  color: var(--y-red-l);
  font-size: 16px; font-weight: 700;
  margin-bottom: 12px;
}

.auth-form {
  display: flex; flex-direction: column; gap: 12px;
  margin: 18px 0 24px;
  padding: 0 8px;
}
.auth-input {
  width: 100%; height: 56px;
  background: #000;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: #fff;
  padding: 0 18px;
  font-size: 16px; font-weight: 600;
  letter-spacing: .2px;
  font-family: inherit;
  outline: 0;
  transition: border-color .15s ease, box-shadow .25s ease;
}
.auth-input::placeholder { color: rgba(255,255,255,.32); font-weight: 500; }
.auth-input:focus {
  border-color: var(--y-red);
  box-shadow: 0 0 0 4px rgba(212,21,28,.15);
}
.auth-btn {
  width: 100%; height: 56px;
  border: 0; border-radius: 16px;
  font-size: 15px; font-weight: 700;
  letter-spacing: .3px;
  margin-top: 4px;
  transition: transform .15s ease, box-shadow .25s ease;
}
.auth-btn:active { transform: scale(.97); }
.auth-btn-primary {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  box-shadow: var(--y-shadow-red);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
}
.auth-btn[disabled] { opacity: .45; pointer-events: none; }
.auth-btn-primary:hover { box-shadow: 0 22px 40px -14px rgba(212,21,28,.7); }
.auth-btn-secondary {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.auth-btn-secondary:hover { background: rgba(255,255,255,.10); }
.auth-skip {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin-top: 16px;
  text-decoration: underline;
  background: transparent;
  border: 0;
}
.auth-socials {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 22px;
}
.auth-social {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212,21,28,.10);
  border: 1px solid rgba(212,21,28,.30);
  color: var(--y-red-l);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, color .15s ease, box-shadow .25s ease;
}
.auth-social:hover {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -10px rgba(212,21,28,.55);
}
.auth-social svg { width: 20px; height: 20px; }
.auth-socials { gap: 12px; }
.auth-footer {
  color: rgba(255,255,255,.40);
  font-size: 11px;
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
}
.auth-skip-link {
  background: transparent;
  border: 0;
  color: var(--y-red-l);
  font-size: 13px; font-weight: 700;
  margin-top: 4px;
  cursor: pointer;
}
.auth-skip-link:hover { color: var(--y-red); }
.auth-skip-link[disabled] { color: rgba(255,255,255,.30); cursor: not-allowed; }
.auth-ttl {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
  letter-spacing: .3px;
}
.auth-ttl b {
  color: var(--y-red-l);
  font-weight: 800;
  margin-left: 6px;
  font-feature-settings: 'tnum';
}

/* ============================================================
   PROFILE / Личный кабинет (когда user авторизован)
   ============================================================ */
.profile-wrap {
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative; z-index: 1;
  padding-top: 8px;
}
.profile-header {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 4px 6px;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 800;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(212,21,28,.55);
  flex-shrink: 0;
}
.profile-info { display: flex; flex-direction: column; }
.profile-name { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.profile-phone { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 2px; }

/* Бонусы card — gradient red */
.profile-bonus {
  background: linear-gradient(135deg, var(--y-red) 0%, var(--y-red-d) 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px -14px rgba(212,21,28,.45);
}
.profile-bonus::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 70%);
  pointer-events: none;
}
.profile-bonus-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.profile-bonus-amt {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1;
  margin: 8px 0 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.profile-bonus-amt em {
  font-style: normal;
  font-size: 13px; font-weight: 600;
  letter-spacing: .8px;
  text-transform: lowercase;
  color: rgba(255,255,255,.75);
}
.profile-bonus-hint {
  font-size: 11px; color: rgba(255,255,255,.78);
  letter-spacing: .2px;
}

/* Sections */
.profile-section { display: flex; flex-direction: column; gap: 6px; }
.profile-section-title {
  font-size: 11px; font-weight: 800;
  color: var(--y-red-l);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding-left: 4px;
  margin-bottom: 4px;
}

/* Orders */
.profile-orders { display: flex; flex-direction: column; gap: 6px; }
.profile-order {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: background .15s ease, transform .12s ease;
  cursor: pointer;
}
.profile-order:hover { background: rgba(255,255,255,.08); }
.profile-order:active { transform: scale(.98); }
.profile-order-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(212,21,28,.14);
  color: var(--y-red-l);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-order-icon svg { width: 18px; height: 18px; }
.profile-order-body { flex: 1; min-width: 0; text-align: left; }
.profile-order-id { color: #fff; font-size: 14px; font-weight: 700; }
.profile-order-meta {
  font-size: 11px; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.profile-order-meta .dot {
  display: inline-block; width: 3px; height: 3px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
}
.profile-order-total {
  color: var(--y-red-l);
  font-weight: 800; font-size: 15px;
  letter-spacing: -.2px;
  white-space: nowrap;
}

/* Profile links */
.profile-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.profile-link:hover { background: rgba(255,255,255,.08); }
.profile-link-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  flex-shrink: 0;
}
.profile-link-icon svg { width: 18px; height: 18px; }
.profile-link-label { flex: 1; font-size: 14px; font-weight: 600; }
.profile-link-arrow { color: rgba(255,255,255,.30); font-size: 22px; line-height: 1; }

.profile-logout {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .3px;
  margin-top: 6px;
  transition: background .15s ease, color .15s ease;
}
.profile-logout:hover { background: rgba(212,21,28,.12); color: #fff; border-color: rgba(212,21,28,.30); }

/* Sidebar sublabel for profile (имя авторизованного user'a) */
.sb-sublabel {
  display: block;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.50);
  font-style: normal;
  margin-top: 2px;
  letter-spacing: .2px;
}

/* ============================================================
   SKELETON loaders (image placeholder shimmer пока не загружено)
   ============================================================ */
/* Universal skeleton ::before on image containers */
.product-card-img,
.new-card-img,
.cat-card-img,
.cart-item-img,
.modal-img,
.pop-card,
.hero {
  position: relative;
}
.product-card-img::before,
.new-card-img::before,
.cat-card-img::before,
.cart-item-img::before,
.modal-img::before,
.pop-card::before,
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--y-cream-d) 0%, #efe2cb 50%, var(--y-cream-d) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s linear infinite;
  z-index: 0;
}
/* dark skeleton для popular cards и hero (на тёмном фоне) */
.pop-card::before,
.hero::before {
  background: linear-gradient(90deg, #1f1611 0%, #2a1c12 50%, #1f1611 100%);
  background-size: 200% 100%;
}
/* модалка skeleton — тёмный */
.modal-img::before {
  background: linear-gradient(90deg, #1a1108 0%, #2a1c12 50%, #1a1108 100%);
  background-size: 200% 100%;
}
.product-card-img img,
.new-card-img img,
.cat-card-img img,
.cart-item-img img,
.modal-img img,
.pop-card > img,
.hero-bg {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity .35s ease;
}
.product-card-img img.loaded,
.new-card-img img.loaded,
.cat-card-img img.loaded,
.cart-item-img img.loaded,
.modal-img img.loaded,
.pop-card > img.loaded,
.hero-bg.loaded {
  opacity: 1;
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* skeleton-cards в catalog когда products ещё загружаются */
.skeleton-card {
  background: var(--y-cream-d);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--y-line);
}
.skeleton-card .sk-img {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(90deg, #e8d9bd 0%, #f0e4cb 50%, #e8d9bd 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s linear infinite;
}
.skeleton-card .sk-line {
  height: 12px;
  margin: 12px 12px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8d9bd 0%, #f0e4cb 50%, #e8d9bd 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s linear infinite;
}
.skeleton-card .sk-line.short { width: 50%; }
.skeleton-card .sk-foot {
  height: 28px;
  margin: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8d9bd 0%, #f0e4cb 50%, #e8d9bd 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s linear infinite;
}

/* ============================================================
   BOTTOM NAV (fixed, dark, увеличенный gap текста)
   ============================================================ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--y-bottom-nav-h);
  background: rgba(14,10,6,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: stretch; justify-content: space-around;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -10px 30px -8px rgba(0,0,0,.55);
}
.bn-item {
  flex: 1 1 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  color: rgba(255,255,255,.55);
  font-size: 10px; font-weight: 700;
  letter-spacing: .8px;
  text-decoration: none;
  background: transparent;
  border: 0;
  position: relative;
  padding: 8px 4px 4px;
  transition: color .15s ease, transform .15s ease;
}
.bn-item:active { transform: scale(.94); }
.bn-item.active { color: #fff; }
.bn-item.active::before {
  content: '';
  position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--y-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--y-red);
}
.bn-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bn-cart-badge {
  position: absolute;
  top: 4px; right: calc(50% - 22px);
  background: var(--y-red);
  color: #fff;
  border: 2px solid rgba(14,10,6,1);
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(212,21,28,.40);
}

/* ============================================================
   SIDEBAR (slide left)
   ============================================================ */
.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,7,4,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 12000;
  animation: bdIn .25s ease forwards;
}
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 86vw;
  background: linear-gradient(180deg, var(--y-red) 0%, var(--y-red-d) 100%);
  color: #fff;
  z-index: 12001;
  padding: 0 0 env(safe-area-inset-bottom, 22px);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.15);
  box-shadow: 22px 0 60px -14px rgba(0,0,0,.35);
  animation: sidebarIn .38s var(--y-ease) forwards;
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: -10%; right: -30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,193,7,.18) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}
@keyframes sidebarIn { from { transform: translateX(-105%); } to { transform: translateX(0); } }

.sidebar-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  color: #fff; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .2s ease;
  z-index: 2;
}
.sidebar-close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.sidebar-close svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

/* BRAND BLOCK — лого Pompeii по центру на красном */
.sidebar-brand {
  padding: 28px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  position: relative; z-index: 1;
  background: transparent;
}
.sidebar-wordmark { display: none; }
.sidebar-tagline {
  font-size: 10px; font-weight: 800;
  letter-spacing: .25em; text-transform: uppercase;
  color: #FFD340;  /* жёлтый акцент */
  margin-top: 8px;
}

/* NAV LINKS — premium aircraft-row style */
.sidebar-nav {
  display: flex; flex-direction: column;
  padding: 14px 12px;
  gap: 2px;
  position: relative; z-index: 1;
}
.sb-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  color: rgba(255,255,255,.85);
  font-weight: 600; font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
  position: relative;
}
.sb-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sb-link:active { transform: scale(.98); }
.sb-link.active {
  background: linear-gradient(135deg, rgba(212,21,28,.22), rgba(212,21,28,.10));
  color: #fff;
}
.sb-link.active .sb-icon {
  background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(212,21,28,.55);
}
.sb-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease, box-shadow .25s ease;
}
.sb-icon svg { width: 18px; height: 18px; }
.sb-label { flex: 1; letter-spacing: -.1px; }
.sb-arrow {
  color: rgba(255,255,255,.30);
  font-size: 22px; line-height: 1;
  transition: transform .18s ease, color .18s ease;
}
.sb-link:hover .sb-arrow { transform: translateX(3px); color: rgba(255,255,255,.65); }
.sb-link.active .sb-arrow { color: var(--y-red-l); }
.sb-badge {
  background: var(--y-red);
  color: #fff;
  font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 4px;
  box-shadow: 0 4px 10px rgba(212,21,28,.45);
}

/* INFO SECTION (адрес, телефон) */
.sidebar-section {
  padding: 14px 16px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative; z-index: 1;
}
.sb-section-title {
  font-size: 10px; font-weight: 800;
  color: var(--y-red-l);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}
.sb-info {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease;
}
.sb-info:hover { background: rgba(255,255,255,.05); }
.sb-info:active { transform: scale(.97); }
.sb-info-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(212,21,28,.12);
  color: var(--y-red-l);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-info-icon svg { width: 18px; height: 18px; }
.sb-info-body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sb-info-body b { font-size: 13px; font-weight: 700; color: #fff; }
.sb-info-body em { font-size: 11px; font-style: normal; color: rgba(255,255,255,.55); margin-top: 2px; }

/* FOOT (lang + socials) */
.sidebar-foot {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.sb-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.sb-social:hover { background: rgba(212,21,28,.18); color: var(--y-red-l); border-color: rgba(212,21,28,.30); transform: translateY(-2px); }
.sb-social svg { width: 18px; height: 18px; }
.sidebar-socials { display: flex; gap: 8px; }

/* ============================================================
   LANG SWITCHER
   ============================================================ */
.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,.10);
  border-radius: 99px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.15);
  align-self: flex-start;
}
.lang-switch button {
  background: transparent; border: 0;
  color: rgba(255,255,255,.6);
  padding: 5px 12px;
  font-size: 11px; font-weight: 800;
  border-radius: 99px;
  letter-spacing: .8px;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button.active {
  background: #fff; color: var(--y-coal);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--y-bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--y-coal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 14px; font-weight: 600;
  z-index: 13000;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,.55);
  animation: toastIn .35s var(--y-ease) forwards;
}
@keyframes toastIn {
  from { transform: translate(-50%, 30px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ============================================================
   SCROLL-REVEAL — default visible, активно ТОЛЬКО когда JS подтянул
   класс .reveal-init на html. Так избегаем «дыр» если IO не сработал.
   ============================================================ */
.reveal-init .reveal > .section-head,
.reveal-init .reveal > .popular-row,
.reveal-init .reveal > .cat-grid,
.reveal-init .reveal > .product-grid,
.reveal-init .reveal > .new-row,
.reveal-init .reveal > .hero-overlay,
.reveal-init .reveal > .hero-bg {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--y-ease), transform .6s var(--y-ease);
  will-change: opacity, transform;
}
.reveal-init .reveal.is-visible > .section-head,
.reveal-init .reveal.is-visible > .popular-row,
.reveal-init .reveal.is-visible > .cat-grid,
.reveal-init .reveal.is-visible > .product-grid,
.reveal-init .reveal.is-visible > .new-row,
.reveal-init .reveal.is-visible > .hero-overlay,
.reveal-init .reveal.is-visible > .hero-bg {
  opacity: 1;
  transform: translateY(0);
}
/* Дочерний stagger по индексу --i */
.reveal.is-visible .pop-card,
.reveal.is-visible .cat-card,
.reveal.is-visible .product-card {
  animation: childIn .55s var(--y-ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes childIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* prefers-reduced-motion — выключить всё */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible,
  .pop-card, .cat-card, .product-card,
  #splash *, #welcome * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ============================================================
   MEDIA — desktop frame: fixed элементы выровнены по .app-frame
   На desktop fixed бы выпали из 480px frame → меняем на absolute
   и привязываем к .app-frame (relative parent)
   ============================================================ */
@media (min-width: 768px) {
  /* desktop: fixed → sticky-like через absolute внутри frame */
  .header,
  .search-bar,
  .bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    right: auto;
  }
  /* page внутри frame — без max-width, она наследует от frame */
  .page, .auth-page { max-width: none; box-shadow: none; }
}

/* hide scrollbar globally */
::-webkit-scrollbar { width: 0; background: transparent; }

/* ============================================================
   DESKTOP TOP-BAR / FOOTER (СКРЫТЫ на mobile)
   ============================================================ */
.dt-header,
.dt-footer { display: none; }

/* ============================================================
   ============= DESKTOP LAYER (>= 1024px) =====================
   ============================================================ */
@media (min-width: 1024px) {
  body { background: var(--y-cream); }
  /* На desktop content на полную ширину viewport — не зажимаем 1320px */
  .app-frame { max-width: none; box-shadow: none; background: var(--y-cream); }

  /* === Hide mobile chrome === */
  .header,
  .search-bar,
  .bottom-nav { display: none !important; }

  /* === Show desktop header === */
  .dt-header {
    display: block;
    position: sticky; top: 0; z-index: 90;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(27,18,11,.08);
    box-shadow: 0 4px 18px -10px rgba(27,18,11,.08);
  }
  .dt-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr minmax(180px, 320px) auto;
    align-items: center;
    gap: 18px;
  }
  /* compact lang switch на 1024-1280 (показывать только active flag) */
  .dt-actions { gap: 8px; }
  .dt-icon-btn { width: 40px; height: 40px; }

  /* Logo + tagline */
  .dt-logo {
    display: flex; flex-direction: column; gap: 2px;
    cursor: pointer;
    user-select: none;
  }
  .dt-wordmark {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-weight: 800;
    font-size: 38px;
    color: var(--y-red);
    letter-spacing: -1.5px;
    line-height: 1;
    position: relative;
    padding-bottom: 4px;
    text-shadow: 0 4px 14px rgba(212,21,28,.20);
  }
  .dt-wordmark::after {
    content: '';
    position: absolute;
    left: 18%; right: 18%; bottom: 1px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--y-red-l), var(--y-red));
    border-radius: 99px;
    transform: skewX(-18deg);
  }
  .dt-tagline {
    font-size: 9px; font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--y-muted);
  }

  /* Nav inline */
  .dt-nav {
    display: flex; gap: 4px;
    justify-content: center;
  }
  .dt-nav-item {
    padding: 10px 18px;
    border-radius: 99px;
    font-size: 14px; font-weight: 600;
    color: var(--y-coal);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
  }
  .dt-nav-item:hover { background: rgba(27,18,11,.06); }
  .dt-nav-item.active {
    background: linear-gradient(135deg, var(--y-red-l), var(--y-red-d));
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(212,21,28,.55);
  }

  /* Search inline */
  .dt-search {
    position: relative;
    background: var(--y-cream-d);
    border-radius: 99px;
    border: 1px solid rgba(27,18,11,.08);
    height: 44px;
    display: flex; align-items: center;
    padding: 0 20px;
    gap: 12px;
    transition: background .15s ease, border-color .15s ease, box-shadow .25s ease;
  }
  .dt-search:focus-within {
    background: #fff;
    border-color: var(--y-red);
    box-shadow: 0 0 0 4px rgba(212,21,28,.10);
  }
  .dt-search svg { color: var(--y-muted); flex-shrink: 0; }
  .dt-search input {
    border: 0; outline: 0;
    background: transparent;
    color: var(--y-coal);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
  }
  .dt-search input::placeholder { color: var(--y-muted); }

  /* Actions: lang + icons */
  .dt-actions {
    display: flex; align-items: center; gap: 10px;
  }
  .dt-lang {
    display: inline-flex;
    background: var(--y-cream-d);
    border: 1px solid rgba(27,18,11,.08);
    border-radius: 99px;
    padding: 3px;
    margin-right: 6px;
  }
  .dt-lang button {
    background: transparent; border: 0;
    padding: 5px 12px;
    border-radius: 99px;
    color: var(--y-muted);
    font-size: 11px; font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .dt-lang button.active {
    background: var(--y-coal); color: #fff;
  }
  .dt-icon-btn {
    width: 42px; height: 42px;
    background: var(--y-cream-d);
    border: 1px solid rgba(27,18,11,.08);
    border-radius: 12px;
    color: var(--y-coal);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: background .15s ease, transform .15s ease, color .15s ease;
  }
  .dt-icon-btn:hover {
    background: var(--y-red);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
  }
  .dt-icon-btn svg { width: 18px; height: 18px; }
  .dt-cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--y-red);
    color: #fff;
    font-size: 10px; font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(212,21,28,.40);
  }

  /* === PAGE container — wider, no fixed paddings === */
  .page {
    min-height: 60vh;
    padding-top: 0;
    padding-bottom: 60px;
  }
  .page.no-search { padding-top: 0; }

  /* === HERO desktop — full banner full-width screen === */
  .hero {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 21 / 9;
    max-height: 640px;
  }
  .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* === SECTIONS — full-width на desktop, inner content max-width 1320 centered === */
  .section,
  .categories,
  .new-section { padding: 48px 0 16px; width: 100%; }
  .section > *:not(.popular-row):not(.cat-grid):not(.product-grid):not(.new-row),
  .categories > *,
  .new-section > * { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
  .section-head { padding: 0 4px; margin-bottom: 24px; }
  .section-title { font-size: 32px; padding-left: 20px; }
  .section-title::before { width: 5px; height: 32px; }

  /* === POPULAR — full-width dark band === */
  .popular {
    padding: 48px 0 56px;
    margin: 0;
    border-radius: 0;
    background: var(--y-coal);
  }
  .popular .section-head { max-width: 1320px; margin: 0 auto 24px; padding: 0 32px; }
  .popular-row { max-width: 1320px; margin: 0 auto; padding: 4px 32px 8px; gap: 20px; }
  .pop-card { flex: 0 0 300px; height: 260px; }
  @media (min-width: 1280px) {
    .popular-row { justify-content: center; }
  }

  /* === CATEGORIES — full-width band, inner grid centered === */
  .categories { background: var(--y-cream); padding: 48px 0 32px; }
  .categories .section-head { max-width: 1320px; margin: 0 auto 24px; padding: 0 32px; }
  .cat-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* === NEW slider — centered содержимое === */
  .new-section { padding: 48px 0; background: var(--y-cream-d); }
  .new-section .section-head { max-width: 1320px; margin: 0 auto 24px; padding: 0 32px; }
  .new-row {
    gap: 20px;
    padding: 4px 32px 8px;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
  }
  .new-card { flex: 0 0 240px; max-width: 240px; }
  @media (min-width: 1280px) {
    .new-row { justify-content: center; }
  }

  /* === CATALOG — full-width chips bar, centered grid === */
  .chips {
    top: 76px;
    padding: 16px 32px;
    background: linear-gradient(180deg, var(--y-cream) 0%, var(--y-cream) 70%, rgba(249,240,225,.95) 100%);
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .catalog { padding: 16px 0 80px; }
  .product-card-img { aspect-ratio: 4 / 3; }
  .product-card-name { font-size: 15px; }

  /* === MODAL — center modal вместо bottom-sheet === */
  .modal {
    position: fixed;
    left: 50%; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 760px;
    border-radius: 22px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: modalCenterIn .35s var(--y-ease) forwards;
  }
  @keyframes modalCenterIn {
    from { transform: translate(-50%, -45%) scale(.96); opacity: 0; }
    to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  }
  .modal-img { aspect-ratio: auto; height: 100%; min-height: 480px; }
  .modal-body { padding: 36px 36px 32px; overflow-y: auto; }
  .modal-name { font-size: 32px; }

  /* === SIDEBAR в modal — на desktop тоже работает (slide-left) — оставляем как есть === */
  .sidebar { width: 360px; max-width: 360px; }

  /* === CART page — center column === */
  .cart-list, .cart-total, .cart-empty,
  .checkout-wrap, .checkout-done {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  .cart-total { position: static; margin-top: 24px; }

  /* === AUTH page desktop — внутри узкая карточка (auth) ИЛИ широкая (profile) === */
  .auth-page {
    margin: 40px auto 80px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    min-height: auto;
    max-width: 1080px;
  }
  .auth-page::before { display: none; }
  .auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--y-coal-d) 0%, var(--y-coal) 100%);
    border-radius: 24px;
    padding: 32px 32px 56px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.55);
    position: relative;
    text-align: center;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .auth-wrap::before {
    content: ''; position: absolute;
    top: 4%; left: 50%; transform: translateX(-50%);
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(212,21,28,.20) 0%, transparent 70%);
    pointer-events: none;
  }
  .auth-wrap > * { position: relative; z-index: 1; }

  /* PROFILE desktop — широкая карточка */
  .profile-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    background: linear-gradient(180deg, var(--y-coal-d) 0%, var(--y-coal) 100%);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.55);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
  }
  .profile-header { grid-column: 1 / -1; padding: 0 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
  .profile-bonus { grid-row: 2; grid-column: 1; margin-top: 0; }
  .profile-section:nth-of-type(1) { grid-column: 2; grid-row: 2 / span 2; }
  .profile-section:nth-of-type(2) { grid-column: 1; grid-row: 3; }
  .profile-logout { grid-column: 1; grid-row: 4; }
  .auth-footer { grid-column: 1 / -1; }
  .profile-achievements { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* === FOOTER === */
  .dt-footer {
    display: block;
    background: linear-gradient(180deg, var(--y-coal) 0%, var(--y-coal-d) 100%);
    color: rgba(255,255,255,.85);
    margin-top: 60px;
    padding: 60px 0 28px;
    position: relative;
  }
  .dt-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
  .dt-footer-col { display: flex; flex-direction: column; gap: 8px; }
  .dt-footer-brand .dt-wordmark-lg {
    font-size: 56px;
    color: #fff;
    text-shadow: 0 6px 24px rgba(212,21,28,.55);
    margin-bottom: 6px;
  }
  .dt-footer-brand .dt-wordmark-lg::after {
    background: linear-gradient(90deg, var(--y-red-l), var(--y-red));
  }
  .dt-footer-tagline { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; max-width: 320px; margin-bottom: 12px; }
  .dt-footer-socials { display: flex; gap: 8px; }
  .dt-footer-socials a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.78);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
  }
  .dt-footer-socials a:hover { background: var(--y-red); color: #fff; border-color: transparent; transform: translateY(-3px); }
  .dt-footer-socials a svg { width: 18px; height: 18px; }
  .dt-footer-title {
    font-size: 11px; font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--y-red-l);
    margin-bottom: 8px;
  }
  .dt-footer-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: color .15s ease, padding .15s ease;
  }
  .dt-footer-link:hover { color: #fff; padding-left: 4px; }
  .dt-footer-bottom {
    max-width: 1320px;
    margin: 40px auto 0;
    padding: 18px 32px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,.40);
    font-size: 12px;
  }
  .dt-footer-built { letter-spacing: .8px; font-weight: 600; }

  /* === Welcome / Splash overlays — сужаем на desktop === */
  #welcome .welcome-stage,
  #splash .splash-stage { max-width: 460px; }
}

/* ============================================================
   ULTRA-WIDE polish (>= 1440px)
   ============================================================ */
@media (min-width: 1280px) {
  .dt-header-inner {
    padding: 16px 32px;
    grid-template-columns: auto 1fr 360px auto;
    gap: 28px;
  }
  .dt-icon-btn { width: 44px; height: 44px; }
}

@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-grid { grid-template-columns: repeat(8, 1fr); }
  .pop-card { flex: 0 0 320px; height: 260px; }
}

/* ============================================================

/* ============================================================
   POMPEII v4 — White-bg overrides (по баннеру + Hoja)
   ============================================================ */

/* ── BODY ── */
body { background: var(--y-white); color: var(--y-coal); font-family: var(--p-font-body); }
.app-frame { background: var(--y-white); }
@media (min-width: 768px) {
  body { background: var(--y-cream-d); }
  .app-frame { background: var(--y-white); }
}

/* ── HEADER — CSS Grid (надёжное центрирование лого) ── */
.header {
  background: var(--y-white) !important;
  color: var(--y-coal) !important;
  border-bottom: 1px solid var(--y-line) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
  padding: 0 10px !important;
  height: 64px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr 90px !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
}
.header.is-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08) !important; }
.header-burger {
  background: transparent !important;
  color: var(--y-coal) !important;
  border: none !important;
  padding: 6px !important;
  width: 40px !important; height: 40px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  grid-column: 1 !important;
}
.header-burger svg { width: 22px !important; height: 22px !important; }
.header-burger svg line, .header-burger svg path { stroke: var(--y-coal) !important; }
.header-logo {
  grid-column: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  width: 100% !important;
}
.header-logo-img {
  height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  max-width: 100% !important;
}
.header-actions {
  grid-column: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}
.header-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--y-cream-d);
  border: 1px solid var(--y-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--y-coal);
  padding: 0;
}
.header-icon-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--y-coal); stroke-width: 2;
}

/* ── SEARCH bar — hide on home; будет показан в catalog view только ── */
.search-bar {
  background: var(--y-white) !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid var(--y-line) !important;
  position: relative !important;       /* НЕ sticky — не заезжает на header */
  top: auto !important;
  z-index: 10 !important;
}
.search-bar input {
  background: var(--y-cream-d) !important;
  border: 1px solid var(--y-line) !important;
  border-radius: 999px !important;
  padding: 10px 14px 10px 36px !important;
  font-size: 13px !important;
  color: var(--y-coal) !important;
  width: 100% !important;
}
.search-bar input::placeholder { color: var(--y-muted); }
.search-bar .search-icon { stroke: var(--y-muted); }
/* hide search on home (он не используется без products view) */
body .search-bar[x-show="view === 'home' || view === 'catalog'"] {
  display: none;
}

/* ── HERO — edge-to-edge, без margins ── */
.hero {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  background: var(--y-white);
}
.hero img.hero-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── RED STRIPE — 3 features под hero (как банер «🚚🎁🔥») ── */
.p-redstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  background: var(--y-red);
  color: #fff;
}
.p-redstrip-item {
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.p-redstrip-item:last-child { border-right: none; }
.p-redstrip-icon {
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--y-red);
}
.p-redstrip-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* ── Section title — «Наше меню» bold чёрный 18px ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 14px;
  margin: 18px 0 10px;
}
.section-title {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--y-coal);
  letter-spacing: 0;
  text-transform: none;
}
.section-more {
  background: transparent;
  border: none;
  color: var(--y-red);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

/* ── CATEGORIES — Hoja-style grid 4×N, фото СВЕРХУ + текст ПОД ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px 4px;
}
.cat-card {
  background: var(--y-white);
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius);
  padding: 8px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--y-ease), box-shadow .25s var(--y-ease), border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  aspect-ratio: unset;
  overflow: visible;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--y-shadow-sm); border-color: rgba(193,48,48,.35); }
.cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.cat-card .cat-name {
  position: static;
  background: none;
  color: var(--y-coal);
  font-family: var(--p-font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  padding: 0 2px;
  line-height: 1.2;
  text-align: center;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── POPULAR — компактный horizontal scroll ~140×210 ── */
.popular-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 14px 8px;
  scrollbar-width: none;
}
.popular-row::-webkit-scrollbar { display: none; }
.pop-card {
  flex: 0 0 144px;
  height: auto;
  background: var(--y-white);
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s var(--y-ease), box-shadow .25s var(--y-ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pop-card:hover { transform: translateY(-2px); box-shadow: var(--y-shadow-md); }
.pop-card img {
  width: 100%;
  height: 144px;
  object-fit: cover;
  display: block;
}
.pop-card-meta {
  position: static;
  padding: 8px 10px 10px;
  background: var(--y-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pop-card-name {
  font-family: var(--p-font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--y-coal);
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: none;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.pop-card-price {
  display: inline-block;
  background: none;
  color: var(--y-red);
  font-weight: 800;
  font-size: 14px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ── HIT-ribbon — компактная красная плашка (без burned text в фото) ── */
.pop-card .p-hit-ribbon {
  position: absolute;
  top: 8px; left: -2px;
  background: var(--y-red);
  color: #fff;
  font-family: var(--p-font-body);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: .04em;
  padding: 4px 10px;
  transform: none;
  box-shadow: 0 3px 8px -2px rgba(193,48,48,.45);
  border-radius: 0 999px 999px 0;
  text-transform: uppercase;
  z-index: 3;
}
.pop-card .p-hit-ribbon::after { display: none; }

/* gold-badge — отключён в v4 (золото только в лого) */
.pop-card .p-badge-popular { display: none !important; }

/* ── CTA — большая красная пилюля (как «ЗАКАЗАТЬ» на баннере) ── */
.cta-primary,
.welcome-cta,
.checkout-btn {
  background: var(--y-red);
  color: #fff;
  font-family: var(--p-font-body);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: var(--y-shadow-red);
  cursor: pointer;
  transition: transform .15s var(--y-ease), box-shadow .25s var(--y-ease), background .15s;
}
.cta-primary:hover,
.welcome-cta:hover,
.checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(193,48,48,.55); background: var(--y-red-l); }
.cta-primary:active,
.welcome-cta:active,
.checkout-btn:active { transform: translateY(0); background: var(--y-red-d); }

/* ── BOTTOM NAV — cream/beige (как Hoja) ── */
.bottom-nav {
  background: var(--y-cream-d);
  border-top: 1px solid var(--y-line);
  height: var(--y-bottom-nav-h);
}
.bottom-nav button {
  color: var(--y-muted);
}
.bottom-nav .nav-item.active,
.bottom-nav button.active {
  color: var(--y-red);
}

/* ── ELEMENTS OFF (v4 убираем) ── */
.p-marquee, .p-features-row, .p-slogan-ribbon, .p-meander, .p-vesuvius-bg,
.p-cta::before, .p-cta::after, .p-cta > .p-spark {
  display: none !important;
}

/* product-card ember-glow OFF */
.product-card::before, .pop-card::before { display: none !important; }

/* ── Bottom-pad для контента (под bottom-nav) ── */
.page { padding-bottom: calc(var(--y-bottom-nav-h) + 12px); }

/* ============================================================
   POMPEII v4 — SKELETON loaders (показываем пока image грузится)
   ============================================================ */
.hero img.hero-bg:not(.loaded),
.cat-card img:not(.loaded),
.pop-card img:not(.loaded),
.product-card img:not(.loaded),
.new-card-img img:not(.loaded) {
  background: linear-gradient(90deg, #F0F0F0 0%, #E0E0E0 50%, #F0F0F0 100%);
  background-size: 200% 100%;
  animation: p-skeleton-shimmer 1.4s ease-in-out infinite;
  opacity: 0;
}
.hero img.hero-bg.loaded,
.cat-card img.loaded,
.pop-card img.loaded,
.product-card img.loaded,
.new-card-img img.loaded {
  animation: none;
  background: transparent;
  opacity: 1;
  transition: opacity .25s ease;
}
@keyframes p-skeleton-shimmer {
  0%   { background-position: 200% 0; opacity: 1; }
  100% { background-position: -200% 0; opacity: 1; }
}

/* Skeleton placeholder для cat-card до загрузки img — показывает квадрат */
.cat-card img {
  min-height: 70px;
  background: #F0F0F0;
}

/* Hero: фиксированная aspect-ratio чтобы layout не прыгал при загрузке */
.hero {
  aspect-ratio: 1692 / 929;     /* новый баннер 1692×929 — компактнее по высоте */
  background: linear-gradient(90deg, #F0F0F0 0%, #E0E0E0 50%, #F0F0F0 100%);
  background-size: 200% 100%;
  animation: p-skeleton-shimmer 1.4s ease-in-out infinite;
  overflow: hidden;
}
.hero img.hero-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;     /* теперь cover — отношение совпадает, обрезки нет */
  display: block;
}
.hero img.hero-bg.loaded ~ * { background: none; }
.hero:has(img.loaded) {
  background: transparent;
  animation: none;
}

/* ============================================================
   POMPEII v5 — sec-title red bar + yellow accents
   ============================================================ */
/* Красная полоска слева у заголовка как у Hoja */
.section-title {
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 4px;
  background: var(--y-red);
  border-radius: 2px;
}

/* Sidebar nav — белые ссылки + жёлтый акцент на active */
.sb-link { color: rgba(255,255,255,.95) !important; }
.sb-link:hover { background: rgba(255,255,255,.10) !important; color: #fff !important; }
.sb-link.active {
  background: rgba(0,0,0,.18) !important;
  color: #FFD340 !important;
}
.sb-link.active .sb-icon {
  background: #FFD340 !important;
  color: var(--y-red-d) !important;
  box-shadow: 0 4px 12px -2px rgba(255,211,64,.55) !important;
}
.sb-icon {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.sb-arrow { color: rgba(255,255,255,.45) !important; }
.sb-link.active .sb-arrow { color: #FFD340 !important; }
.sb-section-title { color: #FFD340 !important; }
.sb-info-icon { background: rgba(255,255,255,.15) !important; color: #FFD340 !important; }
.sb-info-body em { color: rgba(255,255,255,.65) !important; }
.sidebar-section, .sidebar-foot { border-top-color: rgba(255,255,255,.12) !important; }
.sb-social {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.sb-social:hover { background: #FFD340 !important; color: var(--y-red-d) !important; border-color: #FFD340 !important; }
.lang-switch { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.20) !important; }
.lang-switch button.active { background: #FFD340 !important; color: var(--y-red-d) !important; }

/* "Сидебар брэнд" — лого выведу через CSS чтоб не лезть в HTML */
.sidebar-brand::before {
  content: '';
  display: block;
  width: 200px; height: 80px;
  background: url('assets/images/logo-trans-small.png') center/contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(255,211,64,.35)) brightness(1.15);
}

/* ============================================================
   POMPEII v5 — Категории как круги с emoji внутри (как баннер)
   ============================================================ */
.cat-card { padding: 12px 6px !important; }
.cat-card .cat-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--y-red-l) 0%, var(--y-red) 100%);
  box-shadow: 0 6px 14px -6px rgba(193,48,48,.45), inset 0 1px 0 rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cat-card .cat-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.cat-card .cat-icon img {
  width: 60%; height: 60%; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.cat-card .cat-icon .cat-emoji {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.20));
}
.cat-card:hover .cat-icon { transform: scale(1.06); transition: transform .25s var(--y-ease); }
.cat-card .cat-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

/* ============================================================
   POMPEII v5 — NEW section (Hoja-style 140×210)
   ============================================================ */
.new-section {
  padding: 14px 0 18px !important;
  background: var(--y-white) !important;
}
.new-section .section-head {
  padding: 0 14px !important;
  margin: 0 0 10px !important;
}
.new-row {
  display: flex !important;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 14px 4px !important;
  scrollbar-width: none;
}
.new-row::-webkit-scrollbar { display: none; }
.new-card {
  flex: 0 0 144px;
  width: 144px;
  background: var(--y-white);
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s var(--y-ease), box-shadow .25s var(--y-ease);
  display: flex; flex-direction: column;
}
.new-card:hover { transform: translateY(-2px); box-shadow: var(--y-shadow-md); }
.new-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--y-cream-d);
  overflow: hidden;
}
.new-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.new-card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.new-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--y-coal);
  line-height: 1.25;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.new-card-foot {
  display: flex; align-items: center; justify-content: space-between;
}
.new-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--y-red);
}
.new-card-add {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--y-red);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px -3px rgba(193,48,48,.45);
  transition: transform .15s var(--y-ease), background .15s;
  padding: 0; padding-bottom: 3px;
}
.new-card-add:hover { transform: scale(1.08); background: var(--y-red-l); }
.new-card-add:active { transform: scale(.95); background: var(--y-red-d); }

/* ── Если есть iconUrl (готовая иконка от клиента) — НЕ показываем красный фон ── */
.cat-card .cat-icon:has(img) {
  background: transparent !important;
  box-shadow: none !important;
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
}
.cat-card .cat-icon:has(img)::after { display: none !important; }
.cat-card .cat-icon img {
  width: 100% !important;
  height: 100% !important;
  filter: none !important;
  object-fit: cover;
}

/* ============================================================
   POMPEII v5.5 — fix: cat-grid размер чтобы 4 в ряд влезали на mobile
   ============================================================ */
.cat-grid { gap: 6px !important; padding: 0 10px 4px !important; }
.cat-card { padding: 8px 4px !important; }
.cat-card .cat-icon {
  width: 64px !important;
  height: 64px !important;
}
.cat-card .cat-icon:has(img) {
  width: 76px !important;
  height: 76px !important;
  border-radius: 14px !important;
}
.cat-card .cat-icon .cat-emoji { font-size: 30px !important; }
.cat-card .cat-name { font-size: 11px !important; margin-top: 6px !important; line-height: 1.2 !important; }

/* На больших экранах больше воздуха */
@media (min-width: 480px) {
  .cat-card .cat-icon { width: 72px !important; height: 72px !important; }
  .cat-card .cat-icon:has(img) { width: 86px !important; height: 86px !important; }
}

/* ============================================================
   POMPEII v6 — финальная полировка (animations + interactions)
   ============================================================ */

/* ── Reveal: видимо по умолчанию, плавная анимация на is-visible ── */
.reveal { transition: opacity .55s var(--y-ease), transform .55s var(--y-ease); }
/* Стаггер для дочерних */
.cat-grid .cat-card { opacity: 0; transform: translateY(8px); animation: p-fadeup .45s var(--y-ease) calc(var(--i, 0) * 50ms) forwards; }
.new-row .new-card  { opacity: 0; transform: translateY(10px); animation: p-fadeup .50s var(--y-ease) calc(var(--i, 0) * 70ms) forwards; }
@keyframes p-fadeup {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Press-feedback на любых кликабельных карточках ── */
.cat-card:active,
.pop-card:active,
.new-card:active,
.product-card:active { transform: scale(0.97); transition: transform .12s var(--y-ease); }

/* ── Hover lift категорий + новинок ── */
.cat-card { transition: transform .25s var(--y-ease), box-shadow .25s var(--y-ease), border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px -8px rgba(0,0,0,.10); border-color: rgba(193,48,48,.18); }

/* ── Cart-badge на bottom-nav (количество товаров) ── */
.bottom-nav button { position: relative; }
.p-cart-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--y-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px -1px rgba(193,48,48,.55);
  border: 1.5px solid var(--y-cream-d);
  animation: p-cart-pop .35s var(--y-ease);
}
@keyframes p-cart-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ── Header — фикс stylesh:.headerlogo iPhone Safari ── */
@supports not (display: grid) {
  .header { display: flex; justify-content: space-between; }
}

/* ── Smooth-scroll body ── */
html { scroll-behavior: smooth; }

/* ── Section padding ровный ── */
.popular, .categories, .new-section, .p-redstrip { width: 100%; }
.section-head { margin: 18px 0 12px !important; }

/* ── Empty-state корзины ── */
.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--y-muted);
}
.cart-empty .ce-icon { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.cart-empty .ce-title { font-size: 16px; font-weight: 700; color: var(--y-coal); margin-bottom: 6px; }
.cart-empty .ce-desc { font-size: 13px; }

/* ── Modal-add — красная кнопка в product modal ── */
.modal-add, .modal-btn, .modal-cta {
  background: var(--y-red) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 14px 28px !important;
  box-shadow: var(--y-shadow-red) !important;
}

/* ── Toast ── */
.toast {
  background: var(--y-coal) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.30) !important;
}

/* ── Active tab — красный текст + жёлтая точка над ── */
.bottom-nav button.active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--y-red);
}

/* ── Search-bar visibility управляется Alpine x-show (не CSS) ── */

/* ============================================================
   POMPEII v7 — Iвan фидбек:
   1) Sidebar logo белый
   2) Red stripe компактнее
   3) Catalog chips мини-иконки клиента
   4) Product cards БЕЗ фото — text-only с «Нет фото» плашкой
   5) Auth page → белый бренд, не чёрный
   ============================================================ */

/* ── 1) Sidebar logo белым ── */
.sidebar-brand::before {
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(255,211,64,.45)) !important;
}

/* ── 2) Red stripe компактнее (с 12px на 8-9px) ── */
.p-redstrip-item {
  padding: 8px 6px !important;
  gap: 3px !important;
}
.p-redstrip-icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}
.p-redstrip-label {
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  line-height: 1.15 !important;
}

/* ── 3) Catalog chips — мини-иконки клиента ── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px !important;
  scrollbar-width: none;
  background: var(--y-white);
  border-bottom: 1px solid var(--y-line);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: var(--y-cream-d) !important;
  border: 1px solid var(--y-line) !important;
  border-radius: 999px !important;
  padding: 5px 14px 5px 5px !important;
  color: var(--y-coal) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background .18s, border .18s, color .18s, transform .15s;
  white-space: nowrap;
}
.cat-chip:hover { transform: translateY(-1px); border-color: rgba(193,48,48,.35) !important; }
.cat-chip.active {
  background: var(--y-red) !important;
  color: #fff !important;
  border-color: var(--y-red) !important;
  box-shadow: 0 4px 10px -3px rgba(193,48,48,.45);
}
.cat-chip-img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--y-white);
  flex-shrink: 0;
  border: 1.5px solid var(--y-white);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.cat-chip.active .cat-chip-img { border-color: #fff; }

/* ── 4) Product card без фото — компактный text-only ── */
.product-card.p-no-img .product-card-img { display: none !important; }
.product-card.p-no-img {
  background: var(--y-white) !important;
  border: 1px solid var(--y-line) !important;
  border-radius: var(--y-radius) !important;
  padding: 14px 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  position: relative;
}
.product-card.p-no-img:hover {
  transform: translateY(-2px);
  box-shadow: var(--y-shadow-md);
  border-color: rgba(193,48,48,.30);
}
.product-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--y-cream-d);
  border: 1px dashed var(--y-line);
  border-radius: 8px;
  padding: 14px;
  color: var(--y-muted);
  font-size: 11px;
  font-weight: 600;
  height: 80px;
}
.product-card-noimg svg { stroke: var(--y-muted); }
.product-card-info { padding: 0 !important; flex: 1; }
.product-card-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--y-coal) !important;
  margin: 0 0 4px !important;
  line-height: 1.25 !important;
}
.product-card-weight {
  font-size: 11px !important;
  color: var(--y-muted) !important;
  margin-bottom: 6px !important;
}
.product-card-desc {
  font-size: 12px !important;
  color: var(--y-muted) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin-top: auto !important;
}
.product-card-price {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--y-red) !important;
}
.product-card-add {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--y-red) !important;
  color: #fff !important;
  border: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 4px 10px -3px rgba(193,48,48,.45);
  transition: transform .15s, background .15s;
  padding: 0 !important;
}
.product-card-add:hover { transform: scale(1.08); background: var(--y-red-l) !important; }
.product-card-add:active { transform: scale(.92); background: var(--y-red-d) !important; }

.product-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 12px 14px !important;
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* ── 5) AUTH page — white brand, не чёрный ── */
.auth-page {
  background: var(--y-white) !important;
  color: var(--y-coal) !important;
  min-height: 100vh;
  padding: 30px 22px env(safe-area-inset-bottom, 22px);
}
.auth-page * { color: inherit; }
.auth-page .auth-back {
  background: var(--y-cream-d) !important;
  color: var(--y-coal) !important;
  border: 1px solid var(--y-line) !important;
}
.auth-page .auth-back svg { stroke: var(--y-coal) !important; }
.auth-page .auth-wordmark,
.auth-page .welcome-wordmark {
  color: var(--y-coal) !important;
  font-family: var(--p-font-display);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: none !important;
}
.auth-page .auth-wordmark::after { display: none !important; }
.auth-page .auth-tag {
  color: var(--y-red) !important;
  font-weight: 700;
}
.auth-page .auth-greeting {
  color: var(--y-coal) !important;
}
.auth-page .auth-greeting::before { display: none; }
.auth-page .auth-segmented {
  background: var(--y-cream-d) !important;
  border: 1px solid var(--y-line) !important;
}
.auth-page .auth-segmented button {
  color: var(--y-muted) !important;
}
.auth-page .auth-segmented button.active {
  background: var(--y-white) !important;
  color: var(--y-coal) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.auth-page .auth-segmented button.is-login.active { background: var(--y-red) !important; color: #fff !important; }
.auth-page .auth-label {
  color: var(--y-muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}
.auth-page .auth-input {
  background: var(--y-cream-d) !important;
  border: 1px solid var(--y-line) !important;
  color: var(--y-coal) !important;
}
.auth-page .auth-input:focus { border-color: var(--y-red) !important; background: var(--y-white) !important; }
.auth-page .auth-input::placeholder { color: var(--y-muted) !important; }
.auth-page .auth-submit,
.auth-page .auth-btn {
  background: var(--y-red) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 14px 24px !important;
  box-shadow: var(--y-shadow-red) !important;
}
.auth-page .auth-hint,
.auth-page .auth-footer { color: var(--y-muted) !important; }
.auth-page .auth-guest {
  background: transparent !important;
  color: var(--y-coal) !important;
  text-decoration: underline;
  text-decoration-color: var(--y-red);
}
.auth-page .auth-socials a {
  background: var(--y-cream-d) !important;
  color: var(--y-red) !important;
  border: 1px solid var(--y-line) !important;
}
.auth-page .auth-socials a:hover {
  background: var(--y-red) !important;
  color: #fff !important;
  border-color: var(--y-red) !important;
}
.auth-page .otp-input {
  background: var(--y-cream-d) !important;
  border: 2px solid var(--y-line) !important;
  color: var(--y-coal) !important;
}
.auth-page .otp-input:focus { border-color: var(--y-red) !important; background: var(--y-white) !important; }
.auth-page .auth-divider { color: var(--y-muted) !important; }
.auth-page .auth-divider::before,
.auth-page .auth-divider::after { background: var(--y-line) !important; }

/* search-bar — Alpine x-show управляет display */

/* ============================================================
   POMPEII v8 — Kaspi Pay flow + cart polish
   ============================================================ */

/* ── Уничтожаем italic везде (Inter normal/bold) ── */
.cart-empty-title, .cart-empty .ce-title,
.modal-name, .checkout-done-title,
.kaspi-pay-title,
.welcome-wordmark, .sidebar-wordmark, .dt-wordmark, .auth-wordmark {
  font-style: normal !important;
  font-family: var(--p-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* ── Cart-item без фото (Иван попросил БЕЗ фото) ── */
.cart-item.p-cart-no-img { padding: 14px 16px !important; }
.cart-item.p-cart-no-img .cart-item-img { display: none !important; }
.cart-item-body { padding: 0 !important; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--y-coal) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.cart-item-meta {
  font-size: 11px !important;
  color: var(--y-muted) !important;
  margin-bottom: 4px !important;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.cart-item-price {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--y-red) !important;
  margin: 0 !important;
}
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--y-cream-d);
  border: 1px solid var(--y-line);
  color: var(--y-coal);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0 0 2px;
  transition: background .15s, transform .12s;
}
.qty-btn:hover { background: var(--y-line); }
.qty-btn:active { transform: scale(.92); }
.qty-btn-plus {
  background: var(--y-red) !important;
  color: #fff !important;
  border-color: var(--y-red) !important;
}
.qty-btn-plus:hover { background: var(--y-red-l) !important; }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--y-coal);
}

/* ── KASPI PAY экран ── */
.kaspi-pay-wrap {
  padding: 24px 18px 100px;
  background: var(--y-white);
  min-height: calc(100vh - var(--y-bottom-nav-h));
}
.kaspi-pay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.checkout-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--y-cream-d);
  border: 1px solid var(--y-line);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.checkout-back svg { stroke: var(--y-coal); }
.kaspi-pay-title {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--y-coal);
  flex: 1;
  margin: 0;
}
.kaspi-pay-order {
  font-size: 12px;
  font-weight: 700;
  color: var(--y-muted);
  background: var(--y-cream-d);
  padding: 4px 10px;
  border-radius: 999px;
}

/* HERO сумма */
.kaspi-hero {
  background: linear-gradient(180deg, var(--y-red) 0%, var(--y-red-d) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px 20px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--y-shadow-red);
  margin-bottom: 16px;
  transition: transform .15s var(--y-ease), box-shadow .25s;
  position: relative;
}
.kaspi-hero:active { transform: scale(.98); }
.kaspi-hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 6px;
}
.kaspi-hero-sum {
  font-family: var(--p-font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.kaspi-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--y-red);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.kaspi-copy-pill svg { stroke: var(--y-red); }
.kaspi-hint {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: 10px;
}

/* Код заказа */
.kaspi-code-block {
  background: var(--y-cream-d);
  border: 1px dashed var(--y-line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background .15s, border-color .15s;
}
.kaspi-code-block:hover { background: var(--y-line); border-color: var(--y-red); }
.kaspi-code-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--y-muted);
  margin-bottom: 6px;
}
.kaspi-code-val {
  font-family: var(--p-font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--y-red);
  margin-bottom: 6px;
}
.kaspi-code-block .kaspi-hint { color: var(--y-muted); }

/* CTA в Kaspi */
.kaspi-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--y-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 16px 24px;
  text-decoration: none;
  box-shadow: var(--y-shadow-red);
  margin-bottom: 12px;
  transition: transform .15s, box-shadow .25s;
}
.kaspi-go-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(193,48,48,.55); }
.kaspi-go-btn:active { transform: translateY(0); }
.kaspi-go-btn svg { stroke: #fff; }

.kaspi-paid-btn {
  display: block;
  width: 100%;
  background: var(--y-white);
  color: var(--y-coal);
  border: 1.5px solid var(--y-coal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background .15s, color .15s;
}
.kaspi-paid-btn:hover { background: var(--y-coal); color: #fff; }
.kaspi-paid-btn:active { transform: scale(.98); }

.kaspi-timer-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--y-muted);
  margin-bottom: 22px;
}
.kaspi-timer-row b { color: var(--y-coal); font-weight: 800; }

.kaspi-flow-info {
  background: var(--y-cream-d);
  border-radius: 14px;
  padding: 18px 16px;
}
.kaspi-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--y-coal);
  line-height: 1.4;
  padding: 8px 0;
}
.kaspi-flow-step + .kaspi-flow-step { border-top: 1px solid rgba(0,0,0,.06); }
.kaspi-flow-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--y-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── PAY OPT — 4 в ряд (Наличные/Kaspi/Halyk/Карта) ── */
.checkout-pay {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
}
.pay-opt {
  cursor: pointer;
  background: var(--y-white);
  border: 1.5px solid var(--y-line);
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .18s, background .18s;
  position: relative;
}
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt.active {
  border-color: var(--y-red);
  background: rgba(193,48,48,.05);
}
.pay-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--y-cream-d);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--y-coal);
}
.pay-icon svg { stroke: var(--y-coal); }
.pay-opt.active .pay-icon { background: var(--y-red); color: #fff; }
.pay-opt.active .pay-icon svg { stroke: #fff; }
.pay-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--y-coal);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ── Modal styling — bigger price, без italic ── */
.modal-name {
  font-family: var(--p-font-display) !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  letter-spacing: 0 !important;
  color: var(--y-coal) !important;
}
.modal-add-btn, .modal-cart-btn, .modal-action {
  background: var(--y-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

/* ── Empty cart polish ── */
.cart-empty-title { font-family: var(--p-font-display); font-weight: 800; font-style: normal !important; }
.cart-empty-cta, .empty-cta {
  background: var(--y-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

/* ── Кнопка чекаута Оформить заказ — финальный полиш ── */
.cart-checkout {
  background: var(--y-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  padding: 16px 24px !important;
  font-size: 14px !important;
  box-shadow: var(--y-shadow-red) !important;
}

/* ============================================================
   POMPEII v9 — уплотняем верх + крупнее chips
   ============================================================ */

/* Главное: убираем все унаследованные padding-top у main */
main.page { padding-top: 0 !important; }
.page.no-search { padding-top: 0 !important; }

/* Hero ровно под header */
.hero { margin-top: 0 !important; }

/* Catalog — search-bar не показывается (Alpine скрыл), chips едут сразу под header */
.chips { padding: 10px 12px 12px !important; top: 64px !important; }

/* CHIPS — крупнее изображения категорий */
.cat-chip {
  padding: 6px 16px 6px 6px !important;
  font-size: 13px !important;
  gap: 8px !important;
}
.cat-chip-img {
  width: 40px !important;
  height: 40px !important;
  border: 2px solid var(--y-white) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.10) !important;
}
.cat-chip.active .cat-chip-img {
  border-color: #fff !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.18) !important;
}

/* ============================================================
   POMPEII v10 — +30% размер cat-icons на home (Иван 22.55)
   ============================================================ */
.cat-grid .cat-card .cat-icon:has(img) {
  width: 96px !important;   /* было 76 → +30% */
  height: 96px !important;
  border-radius: 18px !important;
}
.cat-grid .cat-card .cat-icon:not(:has(img)) {
  width: 84px !important;   /* fallback emoji кружки тоже +30% */
  height: 84px !important;
}
.cat-grid .cat-card .cat-icon:not(:has(img)) .cat-emoji {
  font-size: 38px !important;
}
.cat-grid .cat-card .cat-name {
  font-size: 12px !important;
  margin-top: 8px !important;
}
.cat-grid { gap: 8px !important; padding: 0 10px 4px !important; }

@media (min-width: 480px) {
  .cat-grid .cat-card .cat-icon:has(img) { width: 110px !important; height: 110px !important; }
  .cat-grid .cat-card .cat-icon:not(:has(img)) { width: 96px !important; height: 96px !important; }
}

/* ============================================================
   POMPEII v11 — Новинки без фото (placeholder «Нет фото»)
   ============================================================ */
.new-card.p-new-no-img .new-card-img { display: none !important; }
.new-card.p-new-no-img .new-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--y-cream-d);
  border-bottom: 1px dashed var(--y-line);
  color: var(--y-muted);
  font-size: 10.5px;
  font-weight: 600;
}
.new-card.p-new-no-img .new-card-noimg svg { stroke: var(--y-muted); }

/* ============================================================
   POMPEII v13 — Убираем чёрные углы (body чёрный → белый)
   ============================================================ */
html, body { background: var(--y-white) !important; }
.app-frame { background: var(--y-white) !important; }
@media (min-width: 768px) {
  body { background: var(--y-cream-d) !important; }
  .app-frame { background: var(--y-white) !important; }
}
/* Hero — без border-radius на главной (edge-to-edge) */
.hero { border-radius: 0 !important; margin: 0 !important; }

/* ============================================================
   POMPEII v14 — Bg beige + чисто белый лого в drawer
   ============================================================ */

/* Body bg = beige (как фон самого банера) — нет видимого разрыва */
html, body { background: #F4ECD8 !important; }
.app-frame { background: #F4ECD8 !important; }
main.page { background: var(--y-white) !important; }
@media (min-width: 768px) {
  body { background: var(--y-cream-d) !important; }
}

/* Sidebar logo — ярко-белый (brightness invert + drop-shadow для контраста) */
.sidebar-brand::before {
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 2px rgba(255,255,255,.4))
    drop-shadow(0 4px 12px rgba(0,0,0,.25))
    !important;
}

/* ── Hero обёртка бежевый под цвет банера — гарантия что никаких щелей не видно ── */
.hero {
  background: #F4ECD8 !important;
}
section.hero {
  background-color: #F4ECD8 !important;
}

/* ============================================================
   POMPEII v15 — увеличить фото в рамке категории (не меняя саму рамку)
   ============================================================ */
.cat-grid .cat-card .cat-icon:has(img) img {
  width: 118% !important;
  height: 118% !important;
  margin: -9% !important;          /* центрирование увеличенного фото */
  object-fit: cover !important;
}

/* ============================================================
   POMPEII v16 — Stripe C (White Gold) + Drawer чёрный с жёлтым
   ============================================================ */

/* ── STRIPE C: белая + жёлто-золотые иконки + чёрный текст ── */
.p-redstrip {
  background: #FFFFFF !important;
  padding: 9px 4px !important;
  border-top: 1px solid #ECECEC !important;
  border-bottom: 1px solid #ECECEC !important;
}
.p-redstrip-item {
  color: #1A1410 !important;
  padding: 5px 4px !important;
  border-right: 1px solid #F0F0F0 !important;
  gap: 4px !important;
}
.p-redstrip-item:last-child { border-right: none !important; }
.p-redstrip-icon {
  background: linear-gradient(135deg, #FFE066 0%, #F5C518 100%) !important;
  color: #1A1410 !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  box-shadow: 0 3px 8px -2px rgba(245,197,24,.45),
              0 0 0 2px rgba(0,0,0,.05),
              inset 0 1px 0 rgba(255,255,255,.40) !important;
  border-radius: 50% !important;
}
.p-redstrip-label {
  color: #1A1410 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

/* ── DRAWER: чёрный фон + жёлтое лого + жёлтые акценты ── */
.sidebar {
  background: linear-gradient(180deg, #1A1410 0%, #0A0604 100%) !important;
  border-right: 1px solid rgba(255,211,64,.20) !important;
  box-shadow: 22px 0 60px -14px rgba(0,0,0,.55) !important;
}
.sidebar::before {
  background: radial-gradient(circle, rgba(255,211,64,.22) 0%, transparent 65%) !important;
}
.sidebar-close {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.sidebar-close svg { stroke: #fff !important; }

/* лого — золотой оригинал на чёрном (без brightness/invert!) */
.sidebar-brand::before {
  filter:
    drop-shadow(0 0 4px rgba(255,211,64,.40))
    drop-shadow(0 6px 18px rgba(255,211,64,.18))
    brightness(1.10) saturate(1.15) !important;
}
.sidebar-tagline {
  color: #FFD340 !important;
}

/* Nav links — белые, active жёлтые */
.sb-link { color: rgba(255,255,255,.95) !important; }
.sb-link:hover { background: rgba(255,211,64,.08) !important; color: #FFD340 !important; }
.sb-link.active {
  background: rgba(255,211,64,.12) !important;
  color: #FFD340 !important;
}
.sb-link.active .sb-icon {
  background: linear-gradient(135deg, #FFE066 0%, #FFD340 100%) !important;
  color: #1A1410 !important;
  box-shadow: 0 4px 12px -2px rgba(255,211,64,.55) !important;
}
.sb-icon {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.sb-arrow { color: rgba(255,255,255,.30) !important; }
.sb-link.active .sb-arrow { color: #FFD340 !important; }

/* Info section (адрес/телефон) — иконки жёлтые, текст белый */
.sb-section-title { color: #FFD340 !important; }
.sb-info-icon {
  background: rgba(255,211,64,.12) !important;
  color: #FFD340 !important;
}
.sb-info-body b { color: #fff !important; }
.sb-info-body em { color: rgba(255,255,255,.55) !important; }
.sidebar-section, .sidebar-foot {
  border-top-color: rgba(255,255,255,.10) !important;
}

/* Соцсети — контур белый, hover жёлтый */
.sb-social {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.80) !important;
}
.sb-social:hover {
  background: #FFD340 !important;
  border-color: #FFD340 !important;
  color: #1A1410 !important;
}

/* Lang switcher */
.lang-switch {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.lang-switch button { color: rgba(255,255,255,.65) !important; }
.lang-switch button.active {
  background: #FFD340 !important;
  color: #1A1410 !important;
}

/* ============================================================
   POMPEII v17 — Drawer: оригинальный жёлтый лого (logo-black.jpg)
   на чёрном фоне drawer без CSS-фильтров
   ============================================================ */
.sidebar-brand::before {
  background: url('assets/images/logo-black.jpg') center/contain no-repeat !important;
  filter: none !important;            /* лого уже золотой на чёрном — фильтр не нужен */
  width: 220px !important;
  height: 90px !important;
}

/* ============================================================
   POMPEII v18 — «Наше меню» красная полоска ровно по центру текста
   ============================================================ */
.section-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-left: 0 !important;
  position: relative !important;
  line-height: 1.15 !important;
}
.section-title::before {
  content: '' !important;
  position: static !important;
  display: inline-block !important;
  width: 4px !important;
  height: 18px !important;
  background: var(--y-red) !important;
  border-radius: 2px !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex-shrink: 0;
}

/* ── Bar высотой как высота заглавной буквы — равняемся точно ── */
.section-title::before {
  height: 1em !important;       /* ровно высота шрифта */
  width: 4px !important;
  align-self: center !important;
  margin: 0 !important;
}

/* ============================================================
   POMPEII v19 — bar точно cap-height буквы Н + центр строки
   Inter 800: cap-height ≈ 0.72em; font-size 18px → cap ≈ 13px
   ============================================================ */
.section-title::before {
  height: 0.72em !important;       /* ровно cap-height буквы Н */
  width: 4px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
  transform: translateY(0.04em) !important;  /* микро-выравнивание baseline */
}

/* ============================================================
   POMPEII v20 — категории 3+3+2 центрированно (последний ряд centered)
   ============================================================ */
.cat-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 12px 4px !important;
  grid-template-columns: none !important;
}
.cat-grid .cat-card {
  flex: 0 0 calc((100% - 20px) / 3) !important;   /* 3 в ряд минус 2×gap */
  max-width: calc((100% - 20px) / 3) !important;
  padding: 12px 6px !important;
}
.cat-grid .cat-card .cat-icon:has(img) {
  width: 100px !important;     /* больше за счёт меньшего grid */
  height: 100px !important;
  border-radius: 18px !important;
}
.cat-grid .cat-card .cat-name {
  font-size: 12.5px !important;
  margin-top: 10px !important;
}
@media (min-width: 480px) {
  .cat-grid .cat-card { flex: 0 0 calc((100% - 30px) / 4) !important; max-width: calc((100% - 30px) / 4) !important; }
}

/* ============================================================
   POMPEII SPLASH «Огонь оживает» 1.8s
   ============================================================ */
#p-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 75%, #2A1810 0%, #0A0604 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: psplash-bg-pulse 1.8s ease-in-out 1;
}
.psplash-out {
  animation: psplash-fadeout .4s ease forwards !important;
}
@keyframes psplash-fadeout {
  to { opacity: 0; pointer-events: none; }
}
@keyframes psplash-bg-pulse {
  0%, 100% { background: radial-gradient(ellipse at 50% 75%, #1A0F08 0%, #000 100%); }
  60%      { background: radial-gradient(ellipse at 50% 75%, #3A1A0C 0%, #0E0604 80%, #000 100%); }
}

.psplash-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── ОГОНЬ (5 языков пламени снизу) ── */
.psplash-fire {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  z-index: 1;
  pointer-events: none;
}
.flame {
  width: 50px;
  height: 0;
  background: radial-gradient(circle at 50% 100%,
              #FFE066 0%,
              #FFB733 25%,
              #FF7020 55%,
              #C13030 80%,
              transparent 100%);
  border-radius: 50% 50% 28% 28% / 65% 65% 35% 35%;
  filter: blur(3px);
  transform-origin: bottom center;
  opacity: 0;
  animation: flame-rise 1.4s cubic-bezier(.18,.84,.30,.96) forwards,
             flame-flicker .45s ease-in-out 1.4s infinite alternate;
}
.flame.f1 { animation-delay: 0s, 1.4s;    height: 0; left: -120px; }
.flame.f2 { animation-delay: .08s, 1.5s;  transform: scale(1.18); }
.flame.f3 { animation-delay: .15s, 1.55s; transform: scale(1.35); }
.flame.f4 { animation-delay: .08s, 1.5s;  transform: scale(1.18); }
.flame.f5 { animation-delay: 0s, 1.4s;    height: 0; right: -120px; }
@keyframes flame-rise {
  0%   { height: 0;    opacity: 0; }
  25%  { opacity: .8; }
  60%  { height: 240px; opacity: 1; }
  100% { height: 260px; opacity: .92; }
}
@keyframes flame-flicker {
  0%   { transform: translateY(0)   scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

/* ── ИСКРЫ (золотые точки летят вверх) ── */
.psplash-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ember {
  position: absolute;
  bottom: 30%;
  width: 4px; height: 4px;
  background: #FFD340;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFD340, 0 0 16px rgba(255,180,40,.6);
  opacity: 0;
  animation: ember-fly 2s ease-out forwards;
}
.ember.e1 { left: 42%; animation-delay: .6s; }
.ember.e2 { left: 48%; animation-delay: .8s; --tx: 30px; }
.ember.e3 { left: 52%; animation-delay: 1.0s; --tx: -20px; }
.ember.e4 { left: 56%; animation-delay: .9s; }
.ember.e5 { left: 46%; animation-delay: 1.1s; --tx: -40px; }
.ember.e6 { left: 54%; animation-delay: 1.3s; --tx: 35px; }
@keyframes ember-fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx, 0), -240px) scale(.35); }
}

/* ── ЛОГО Pompeii из пламени ── */
.psplash-logo {
  width: 280px;
  max-width: 75vw;
  height: auto;
  filter: drop-shadow(0 0 0 rgba(255,211,64,0)) blur(8px);
  transform: scale(.72);
  opacity: 0;
  animation: psplash-logo-in .85s cubic-bezier(.20,.85,.30,1) .55s forwards,
             psplash-logo-pulse .9s ease-out 1.4s 1;
}
@keyframes psplash-logo-in {
  0%   { opacity: 0; transform: scale(.72); filter: drop-shadow(0 0 0 rgba(255,211,64,0)) blur(8px); }
  55%  { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(255,211,64,.55)) blur(0); }
  100% { opacity: 1; transform: scale(1);    filter: drop-shadow(0 0 22px rgba(255,211,64,.55)) blur(0); }
}
@keyframes psplash-logo-pulse {
  0%   { filter: drop-shadow(0 0 22px rgba(255,211,64,.55)); transform: scale(1); }
  50%  { filter: drop-shadow(0 0 44px rgba(255,211,64,.95)); transform: scale(1.04); }
  100% { filter: drop-shadow(0 0 22px rgba(255,211,64,.55)); transform: scale(1); }
}

/* ── TAGLINE «КУРЫ · ПЕЧЬ · ОГОНЬ» ── */
.psplash-tag {
  margin-top: 18px;
  color: #FFD340;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255,211,64,.45);
  animation: psplash-tag-in .8s ease-out 1.0s forwards;
}
@keyframes psplash-tag-in {
  0%   { opacity: 0; letter-spacing: 0;     transform: translateY(6px); }
  100% { opacity: 1; letter-spacing: .25em; transform: translateY(0); }
}

/* ============================================================
   POMPEII SPLASH v2 — медленнее + плавнее + эффектнее (3.0s)
   ============================================================ */
#p-splash {
  animation: psplash-bg-pulse 3.0s ease-in-out 1 !important;
}
@keyframes psplash-bg-pulse {
  0%, 100% { background: radial-gradient(ellipse at 50% 75%, #1A0F08 0%, #000 100%); }
  60%      { background: radial-gradient(ellipse at 50% 70%, #4A1E08 0%, #1A0F08 60%, #000 100%); }
}

/* Огонь — медленнее rise + 2 волны вспышек */
.flame {
  filter: blur(4px);
  animation:
    flame-rise 2.0s cubic-bezier(.16,.84,.30,.96) forwards,
    flame-flicker .65s ease-in-out 2.0s infinite alternate !important;
}
.flame.f1 { animation-delay: 0s,    2.0s !important; }
.flame.f2 { animation-delay: .15s,  2.1s !important; }
.flame.f3 { animation-delay: .30s,  2.2s !important; }
.flame.f4 { animation-delay: .15s,  2.1s !important; }
.flame.f5 { animation-delay: 0s,    2.0s !important; }
@keyframes flame-rise {
  0%   { height: 0;    opacity: 0; transform: translateY(20px) scale(.85); }
  25%  { opacity: .75; }
  70%  { height: 250px; opacity: 1;   transform: translateY(0) scale(1); }
  100% { height: 270px; opacity: .92; transform: translateY(0) scale(1); }
}
@keyframes flame-flicker {
  0%   { transform: translateY(0)    scale(1)    skewX(0); }
  50%  { transform: translateY(-6px) scale(1.04) skewX(2deg); }
  100% { transform: translateY(-12px) scale(1.07) skewX(-2deg); }
}

/* Лого — 1.4s медленный fade-in + scale + удвоенный pulse */
.psplash-logo {
  width: 300px !important;
  max-width: 78vw !important;
  border-radius: 14px;
  animation:
    psplash-logo-in 1.4s cubic-bezier(.20,.85,.30,1) .9s forwards,
    psplash-logo-pulse 1.6s ease-in-out 2.2s 1 !important;
}
@keyframes psplash-logo-in {
  0%   { opacity: 0; transform: scale(.65) translateY(20px); filter: brightness(.4) blur(12px); }
  35%  { opacity: .6; }
  65%  { opacity: 1; transform: scale(1.08) translateY(0);   filter: brightness(1.15) blur(0);
         box-shadow: 0 0 40px rgba(255,211,64,.55); }
  100% { opacity: 1; transform: scale(1)    translateY(0);   filter: brightness(1) blur(0);
         box-shadow: 0 0 24px rgba(255,211,64,.40); }
}
@keyframes psplash-logo-pulse {
  0%   { box-shadow: 0 0 24px rgba(255,211,64,.40); transform: scale(1); }
  40%  { box-shadow: 0 0 60px rgba(255,211,64,.95); transform: scale(1.05); }
  100% { box-shadow: 0 0 24px rgba(255,211,64,.40); transform: scale(1); }
}

/* Tagline — медленнее с stagger по буквам */
.psplash-tag {
  margin-top: 24px !important;
  font-size: 13px !important;
  animation: psplash-tag-in 1.2s cubic-bezier(.25,.80,.35,1) 1.7s forwards !important;
}
@keyframes psplash-tag-in {
  0%   { opacity: 0; letter-spacing: -.05em; transform: translateY(10px); filter: blur(4px); }
  50%  { opacity: .8; filter: blur(0); }
  100% { opacity: 1; letter-spacing: .30em;  transform: translateY(0);    filter: blur(0); }
}

/* Искры — больше и дольше */
.ember {
  width: 5px !important;
  height: 5px !important;
  animation: ember-fly 2.4s ease-out forwards !important;
}
.ember.e1 { animation-delay: 1.0s !important; --tx: -10px; }
.ember.e2 { animation-delay: 1.2s !important; --tx: 35px; }
.ember.e3 { animation-delay: 1.4s !important; --tx: -25px; }
.ember.e4 { animation-delay: 1.6s !important; --tx: 20px; }
.ember.e5 { animation-delay: 1.5s !important; --tx: -50px; }
.ember.e6 { animation-delay: 1.8s !important; --tx: 45px; }
@keyframes ember-fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx, 0), -300px) scale(.25); }
}

/* fadeout медленнее */
.psplash-out { animation: psplash-fadeout .65s ease forwards !important; }

/* ============================================================
   POMPEII SPLASH v3 — 2.5s + preloader + smooth home reveal
   ============================================================ */

/* Сжимаем timing v2: всё в 2.5s */
#p-splash {
  animation: psplash-bg-pulse 2.5s ease-in-out 1 !important;
}

/* Огонь — 1.6s rise */
.flame {
  animation:
    flame-rise 1.6s cubic-bezier(.16,.84,.30,.96) forwards,
    flame-flicker .55s ease-in-out 1.6s infinite alternate !important;
}
.flame.f1 { animation-delay: 0s,    1.6s !important; }
.flame.f2 { animation-delay: .10s,  1.7s !important; }
.flame.f3 { animation-delay: .20s,  1.8s !important; }
.flame.f4 { animation-delay: .10s,  1.7s !important; }
.flame.f5 { animation-delay: 0s,    1.6s !important; }

/* Лого — 1.1s appear 0.5s delay + pulse 0.9s */
.psplash-logo {
  animation:
    psplash-logo-in 1.1s cubic-bezier(.20,.85,.30,1) .5s forwards,
    psplash-logo-pulse 1.0s ease-in-out 1.6s 1 !important;
}

/* Tagline 0.9s delay 1.2s */
.psplash-tag {
  animation: psplash-tag-in .9s cubic-bezier(.25,.80,.35,1) 1.2s forwards !important;
}

/* Embers — быстрее */
.ember { animation: ember-fly 1.8s ease-out forwards !important; }
.ember.e1 { animation-delay: .7s !important; --tx: -10px; }
.ember.e2 { animation-delay: .85s !important; --tx: 35px; }
.ember.e3 { animation-delay: 1.0s !important; --tx: -25px; }
.ember.e4 { animation-delay: 1.1s !important; --tx: 20px; }
.ember.e5 { animation-delay: 1.15s !important; --tx: -50px; }
.ember.e6 { animation-delay: 1.3s !important; --tx: 45px; }

/* ── PRELOADER в стиле бренда ── */
.psplash-loader {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: psplash-loader-in .5s ease 1.7s forwards;
}
@keyframes psplash-loader-in {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.psplash-loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,211,64,.18);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.psplash-loader-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #FFD340 0%, #FF7020 50%, #C13030 100%);
  border-radius: 999px;
  animation: psplash-bar-fill .7s cubic-bezier(.4,0,.2,1) 1.75s forwards;
  box-shadow: 0 0 10px rgba(255,211,64,.65);
}
@keyframes psplash-bar-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.psplash-loader-text {
  color: rgba(255,211,64,.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.psplash-dots span {
  display: inline-block;
  margin-left: 1px;
  animation: psplash-dot-blink 1s infinite;
}
.psplash-dots span:nth-child(2) { animation-delay: .2s; }
.psplash-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes psplash-dot-blink {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

/* Smooth fadeout */
.psplash-out { animation: psplash-fadeout .55s cubic-bezier(.25,.80,.35,1) forwards !important; }
@keyframes psplash-fadeout {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* ============================================================
   HOME REVEAL — staggered fade-in после splash
   ============================================================ */
html.p-splash-done .header {
  animation: p-rev-down .55s cubic-bezier(.25,.80,.35,1) both;
}
html.p-splash-done section.hero {
  animation: p-rev-scale .65s cubic-bezier(.25,.80,.35,1) .12s both;
}
html.p-splash-done .categories .section-head,
html.p-splash-done .new-section .section-head {
  animation: p-rev-up .55s cubic-bezier(.25,.80,.35,1) .28s both;
}
html.p-splash-done .cat-grid .cat-card {
  opacity: 0;
  animation: p-rev-up .50s cubic-bezier(.25,.80,.35,1) calc(.35s + var(--i, 0) * 60ms) both;
}
html.p-splash-done .new-row .new-card {
  opacity: 0;
  animation: p-rev-up .50s cubic-bezier(.25,.80,.35,1) calc(.55s + var(--i, 0) * 70ms) both;
}
html.p-splash-done .bottom-nav {
  animation: p-rev-up-nav .55s cubic-bezier(.25,.80,.35,1) .25s both;
}

@keyframes p-rev-down {
  0%   { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes p-rev-up {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes p-rev-scale {
  0%   { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes p-rev-up-nav {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
