/* ═══════════════════════════════════════════════════════
   ПРАВДА ВКУСНАЯ ШАУРМА — Кроссплатформенный UI/UX Pro Max для доставки
   Desktop Web · Tablet · Mobile · Telegram Mini App (TMA)
   Fluid Clamp · Modern Grid · Subgrid · Glassmorphism
   ═══════════════════════════════════════════════════════ */
/* Google Fonts are preloaded in HTML <head> for zero render blocking waterfall */
/* ── CSS Custom Properties & Design Tokens ────────── */
:root {
  /* Color Palette — Минимализм: Глубокий графит, Чистый белый и Сочный оранжевый */
  --bg-primary: #0e0e11;
  --bg-secondary: #141418;
  --bg-card: #18181c;
  --bg-card-hover: #222228;
  --bg-input: #1a1a20;
  --bg-modal: #18181c;
  --bg-sidebar: #131316;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent: #ff6b00;
  --accent-hover: #ff7d1a;
  --accent-glow: none;
  --accent-soft: rgba(255, 107, 0, 0.12);
  --accent-gradient: #ff6b00;
  --accent-gradient-hover: #ff5500;

  --green: #22c55e;
  --green-glow: none;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #ff6b00;

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-active: #ff6b00;
  --border-glow: none;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: none;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Safe Area Insets for iOS & Telegram */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Fluid Typography (Utopia.fyi Model: 360px -> 1440px) */
  --font-xs: clamp(0.72rem, 0.68rem + 0.18vw, 0.8rem);
  --font-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --font-base: clamp(0.92rem, 0.88rem + 0.25vw, 1.02rem);
  --font-md: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  --font-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --font-xl: clamp(1.5rem, 1.35rem + 0.8vw, 2.1rem);
  --font-2xl: clamp(1.8rem, 1.55rem + 1.2vw, 2.75rem);

  /* Fluid Spacing */
  --space-2xs: clamp(4px, 0.25rem + 0.1vw, 6px);
  --space-xs: clamp(6px, 0.4rem + 0.15vw, 10px);
  --space-sm: clamp(10px, 0.65rem + 0.25vw, 14px);
  --space-md: clamp(14px, 0.85rem + 0.4vw, 20px);
  --space-lg: clamp(18px, 1.1rem + 0.6vw, 28px);
  --space-xl: clamp(24px, 1.5rem + 1vw, 40px);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  overscroll-behavior-x: none !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.35s ease, color 0.35s ease;
  line-height: 1.5;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overscroll-behavior-x: none !important;
  -webkit-touch-callout: none;
}

/* ── Native Mobile App Polish (iOS & Android) ──────── */
* {
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-touch-callout: default !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

body.keyboard-open .bottom-cart-bar,
body.keyboard-open .bottom-nav,
body.keyboard-open #bottom-nav {
  display: none !important;
}


/* ── Ambient Dynamic Background Mesh & Grain ──────── */
.ambient-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
  display: none !important;
}

/* ── Canvas Живые Угольки и Искры отключены для чистого минимализма ── */
.grill-embers-canvas {
  display: none !important;
}

/* ── Кнопка перехода в админку в шапке ── */
.header-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff9e40;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-admin-link:hover {
  background: linear-gradient(135deg, #ff6b00, #d94800);
  color: #ffffff;
  border-color: #ff6b00;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.45);
  transform: translateY(-1px);
}

@keyframes ambientFloat1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-30px, 40px, 0) scale(1.08); }
  100% { transform: translate3d(20px, -20px, 0) scale(0.95); }
}

@keyframes ambientFloat2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -30px, 0) scale(1.12); }
  100% { transform: translate3d(-20px, 20px, 0) scale(0.92); }
}

@keyframes ambientFloat3 {
  0%   { transform: translate3d(0, 0, 0) scale(0.95); }
  50%  { transform: translate3d(-25px, -35px, 0) scale(1.1); }
  100% { transform: translate3d(35px, 25px, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-glow {
    animation: none !important;
  }
}

/* ── Scrollbars ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
  font-family: inherit;
  font-size: var(--font-base);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
  min-height: 46px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #2a2018;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE CONTAINER & HEADER
   ═══════════════════════════════════════════════════════ */

.app-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding-bottom: calc(84px + var(--safe-bottom));
  overflow-x: clip;
  overflow-y: visible;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  padding: calc(13px + var(--safe-top)) 16px 13px;
  min-height: 64px;
  transition: padding var(--transition-fast);
  width: 100% !important;
  max-width: 100vw !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1.2vw, 14px);
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  overflow: visible;
  min-height: 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: clamp(34px, 4vw, 42px);
  height: clamp(34px, 4vw, 42px);
  border-radius: var(--radius-md);
  background: #ff6b00;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand:hover .brand-logo-wrap {
  background: #ff5500;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.brand-logo svg {
  width: clamp(18px, 2.5vw, 24px);
  height: clamp(18px, 2.5vw, 24px);
}

/* ── Сам значок пламени из живого огня ── */
.brand-flame-icon-host {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flame-body-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flame-rim-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  transition: all 0.25s ease;
}

.brand:hover .flame-rim-svg {
  filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 7px #ff6b00);
}

.flame-sparks-canvas {
  position: absolute;
  top: -12px;
  left: -4px;
  width: 32px;
  height: 40px;
  pointer-events: none;
  z-index: 3;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: clamp(14px, 1.8vw + 8px, 19px);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  display: none;
}

/* Header desktop information (address, eta) */
.header-desktop-info {
  display: none;
  align-items: center;
  gap: 10px;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.info-icon { font-size: 14px; }
.info-text { font-weight: 500; }

/* Delivery/Pickup Toggle */
.delivery-toggle {
  display: flex;
  background: linear-gradient(145deg, rgba(46, 35, 27, 0.9) 0%, rgba(32, 24, 18, 0.95) 100%);
  border: 1px solid rgba(255, 115, 20, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.delivery-toggle-btn {
  padding: clamp(5px, 0.6vw + 2px, 8px) clamp(8px, 1vw + 4px, 16px);
  border-radius: var(--radius-pill);
  font-size: clamp(11px, 0.4vw + 9px, 12.5px);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.delivery-toggle-btn svg {
  width: clamp(12px, 1.2vw + 8px, 14px);
  height: clamp(12px, 1.2vw + 8px, 14px);
  flex-shrink: 0;
}

.delivery-toggle-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.delivery-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  flex-shrink: 0;
  overflow: visible;
  padding: 4px 0;
}

.header-actions button,
.header-actions a {
  box-sizing: border-box;
}

.header-vacancies-btn {
  height: 38px !important;
  width: auto !important;
  padding: 0 14px !important;
  gap: 6px !important;
  border-radius: var(--radius-pill) !important;
  color: #ff9e40 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition: all var(--transition-fast) !important;
  text-decoration: none;
}

.header-vacancies-btn:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  transform: scale(1.04);
  box-shadow: 0 0 14px var(--accent-glow) !important;
}

.header-phone-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--font-xs);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.header-phone-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.header-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-menu-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.header-menu-btn:active {
  transform: scale(0.95);
}

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-fast);
  position: relative;
}

.header-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: scale(1.04);
}

.header-btn:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-spring);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════
   PAGE SYSTEM & ROUTING
   ═══════════════════════════════════════════════════════ */

.page {
  display: none;
  opacity: 0;
  padding: 0 16px;
}

.page.active {
  display: block;
  animation: pageFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 16px;
  max-width: 900px;
  margin: 0 auto;
}

.back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.page-title {
  font-size: var(--font-lg);
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ═══════════════════════════════════════════════════════
   CATALOG LAYOUT (Desktop 2-column Split)
   ═══════════════════════════════════════════════════════ */

.catalog-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 14px;
}

.catalog-main {
  flex: 1;
  min-width: 0;
}

/* SEO Headings */
.seo-heading-block {
  margin-bottom: clamp(8px, 1.5vw, 14px);
}

.seo-title {
  font-size: clamp(16px, 1.4vw + 11px, 22px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 2px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.seo-subtitle {
  font-size: clamp(11.5px, 0.5vw + 9px, 13px);
  color: #8e8e93;
  margin: 0 0 10px 2px;
  line-height: 1.4;
}

/* Categories Bar (Липкая шапка с размытием фона и мягким градиентным затуханием краев) */
.categories-bar-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: calc(64px + var(--safe-top));
  z-index: 95;
  background: rgba(28, 21, 16, 0.94);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  margin: 0 -16px 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 115, 20, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  overflow: visible;
}

/* Мягкие градиенты размытия краев по бокам для защиты от топорного срезания */
.categories-bar-wrapper::before,
.categories-bar-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.25s ease;
}

.categories-bar-wrapper::before {
  left: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(28, 21, 16, 0.98) 0%, rgba(28, 21, 16, 0.6) 40%, transparent 100%);
}

.categories-bar-wrapper::after {
  right: 0;
  width: 48px;
  background: linear-gradient(to left, rgba(28, 21, 16, 0.98) 0%, rgba(28, 21, 16, 0.6) 40%, transparent 100%);
}

.categories-bar {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  padding-right: 48px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 36px), transparent 100%);
}

.categories-bar.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
  user-select: none !important;
}

.categories-bar.is-dragging .cat-tab {
  pointer-events: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: #a1a1aa;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cat-tab .cat-icon {
  font-size: 15px;
  line-height: 1;
}

.cat-tab:hover {
  color: #ffffff;
  background: #222228;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.cat-tab.active {
  background: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

/* Специальная кнопка-пилюля Акций и комбо в едином потоке скролла */
.cat-tab.cat-tab-promo {
  background: rgba(255, 107, 0, 0.10);
  border-color: rgba(255, 107, 0, 0.25);
  color: #ff6b00;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-tab.cat-tab-promo:hover {
  background: #ff6b00;
  color: #ffffff;
  border-color: #ff6b00;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS GRID & CARDS (Минимализм + Крупное фото по рамке)
   ═══════════════════════════════════════════════════════ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
  scroll-margin-top: calc(140px + var(--safe-top));
}

@media (max-width: 599px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.product-card {
  scroll-margin-top: calc(140px + var(--safe-top));
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease,
              border-color 0.25s ease, 
              box-shadow 0.35s ease;
}

.product-card:hover {
  background: #1d1d22;
  border-color: rgba(255, 107, 0, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.product-card:active {
  transform: scale(0.99);
}

.product-card.stopped {
  opacity: 0.5;
  filter: grayscale(0.85);
  cursor: not-allowed;
}

.product-card.stopped:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Image Wrapper — фото строго по рамке контейнера без внутренних отступов */
.product-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 230px !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #111114;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
  .product-img-wrap {
    height: 210px !important;
  }
}

.product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: #111114;
  display: block;
  box-shadow: none !important;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* При наведении картинка блюда увеличивается за границы контейнера */
.product-card:hover .product-img {
  transform: scale(1.10) !important;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT BADGES — ЧИСТЫЙ МИНИМАЛИЗМ (БЕЛЫЙ + ОРАНЖЕВЫЙ)
   ═══════════════════════════════════════════════════════ */

.product-badge,
.combo-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #ff6b00 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
  user-select: none;
  pointer-events: none;
  box-sizing: border-box;
  transform: translateZ(0);
}

.combo-badge {
  background: rgba(18, 18, 20, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
}

.product-badge .badge-icon {
  font-size: 11px;
  line-height: 1;
}

/* Единая палитра: оранжевый или матовый темный */
.badge-color-orange,
.badge-color-fire {
  background: #ff6b00 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.badge-color-dark,
.badge-color-gold,
.badge-color-green,
.badge-color-cyan,
.badge-color-purple {
  background: rgba(18, 18, 20, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
}

/* Отключение неоновых миганий и свечений на карточках */
.product-card:has(.product-badge),
.product-card:has(.badge-effect-tariff-shimmer),
.product-card:has(.badge-effect-fire),
.product-card:has(.badge-effect-pulse-glow) {
  animation: none !important;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Текстовая информация о блюде */
.product-info {
  flex: 1;
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 18px 18px 18px !important;
  min-height: unset !important;
  gap: 12px;
}

.product-name {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Цена и кнопка добавления */
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.product-old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-weight {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.add-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ff6b00;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.add-btn:hover {
  background: #ff5500;
  transform: scale(1.08);
}

.add-btn:active {
  transform: scale(0.92);
}

/* ═══════════════════════════════════════════════════════
   DESKTOP STICKY CART SIDEBAR (Hidden on mobile <1024px)
   ═══════════════════════════════════════════════════════ */

.desktop-cart-sidebar {
  display: none;
}

.desktop-cart-card {
  background: linear-gradient(160deg, rgba(42, 32, 25, 0.95) 0%, rgba(28, 21, 16, 0.98) 100%);
  border: 1px solid rgba(255, 115, 20, 0.25);
  border-radius: var(--radius-xl);
  padding: 22px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 107, 0, 0.10);
  display: flex;
  flex-direction: column;
}

.desktop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.desktop-cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-md);
  font-weight: 800;
}

.desktop-cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.desktop-cart-clear-btn {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.desktop-cart-clear-btn:hover {
  color: var(--red);
}

/* Free Delivery Meter */
.delivery-progress-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-xs);
  margin-bottom: 8px;
}

.progress-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-val {
  color: var(--accent);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* Desktop Cart Items List */
.desktop-cart-items {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -8px 16px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-cart-empty {
  padding: 36px 16px;
  text-align: center;
}

.desktop-cart-empty .empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.desktop-cart-empty .empty-title {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.desktop-cart-empty .empty-text {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* Desktop Cart Footer */
.desktop-cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.desktop-summary {
  margin-bottom: 16px;
}

.desktop-submit-btn {
  width: 100%;
  padding: 15px 20px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: var(--font-base);
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: all var(--transition-fast);
}

.desktop-submit-btn:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.desktop-submit-btn:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   CART PAGE (Mobile View)
   ═══════════════════════════════════════════════════════ */

.cart-page-content {
  max-width: 760px;
  margin: 0 auto;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  transition: background var(--transition-fast);
}

.cart-item:hover {
  background: var(--bg-card-hover);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-mods {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--accent);
  color: #fff;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  font-size: var(--font-sm);
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-item-price {
  font-size: var(--font-md);
  font-weight: 800;
  color: var(--text-primary);
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.15);
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 18px 0;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  padding: 6px 0;
}

.cart-row.total {
  font-size: var(--font-md);
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.cart-row .bonus {
  color: var(--green);
  font-weight: 600;
}

.submit-order-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: var(--font-base);
  font-weight: 800;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px var(--accent-glow);
  text-align: center;
}

.submit-order-btn:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--accent-glow);
}

.submit-order-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT PAGE (Adaptive Grid on Desktop)
   ═══════════════════════════════════════════════════════ */

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-main-col {
  flex: 1.4;
  min-width: 0;
}

.checkout-sidebar-col {
  flex: 1;
  min-width: 0;
}

.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.checkout-section-title {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Terminals */
.terminal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.terminal-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #2b211a;
}

.terminal-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.terminal-name {
  font-size: var(--font-sm);
  font-weight: 700;
  margin-bottom: 4px;
}

.terminal-addr {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.terminal-hours {
  font-size: 11px;
  color: var(--text-muted);
}

/* Payment Options */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 84px;
  justify-content: center;
}

.payment-option:hover {
  background: #2b211a;
  border-color: rgba(255, 255, 255, 0.2);
}

.payment-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.payment-icon {
  font-size: 24px;
}

.payment-label {
  font-size: var(--font-xs);
  font-weight: 600;
}

/* Loyalty Block */
.loyalty-block {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 10, 15, 0.6) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.loyalty-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-sm);
  font-weight: 600;
}

.loyalty-balance {
  color: var(--green);
  font-weight: 800;
}

.loyalty-toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.loyalty-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-spring);
}

.loyalty-toggle.active {
  background: var(--green);
  border-color: var(--green);
}

.loyalty-toggle.active::after {
  transform: translateX(20px);
}

/* ═══════════════════════════════════════════════════════
   MODIFIERS MODAL (Adaptive: Sheet on Mobile -> Dialog on Desktop)
   ═══════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Bottom sheet by default on mobile */
  padding: 0;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-modal);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  position: relative;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-close-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-icon:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Modifiers Content: Полноценная сочная картинка без обрезки и без черной пустоты */
.modal-hero-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px auto;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.modal-hero-img {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.modal-hero-wrap:hover .modal-hero-img,
.modal-hero-img:hover {
  transform: scale(1.05); /* при наведении чуть больше рамки */
}

.modal-body {
  padding-bottom: 10px;
}

.modal-title {
  font-size: var(--font-lg);
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.25;
}

.modal-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.modal-nutrition {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.nutrition-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mod-group {
  margin-bottom: 22px;
}

.mod-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.mod-group-name {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.mod-group-hint {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.mod-group-required {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.mod-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mod-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.mod-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.mod-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mod-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mod-option.selected .mod-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-primary);
}

.mod-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mod-option.selected .mod-check {
  border-color: var(--accent);
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.mod-option-name {
  font-size: var(--font-sm);
  font-weight: 600;
}

.mod-option-price {
  font-size: var(--font-xs);
  color: var(--accent);
  font-weight: 700;
}

/* Modal Footer */
.modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-modal);
  border-top: 1px solid var(--border);
  padding: 16px 0 4px;
  margin-top: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: var(--font-base);
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition-fast);
  text-align: center;
}

.modal-add-btn:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px var(--accent-glow);
}

.modal-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM FLOATING CART BAR (Mobile only)
   ═══════════════════════════════════════════════════════ */

.bottom-cart-bar {
  position: fixed;
  bottom: calc(14px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  z-index: 95;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  box-shadow: 0 10px 30px var(--accent-glow);
  cursor: pointer;
  transform: translateY(140%);
  opacity: 0;
  transition: all var(--transition-spring);
}

.bottom-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.bottom-cart-bar:active {
  transform: scale(0.98);
}

.cart-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-sm);
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-base);
}

.cart-bar-arrow {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.bottom-cart-bar:hover .cart-bar-arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════
   ORDER STATUS PAGE
   ═══════════════════════════════════════════════════════ */

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  text-align: center;
  max-width: 680px;
  margin: 30px auto;
  box-shadow: var(--shadow-lg);
}

.status-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px var(--green-glow);
}

.status-title {
  font-size: var(--font-lg);
  font-weight: 900;
  margin-bottom: 8px;
}

.status-order-id {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.status-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-input);
  transition: all var(--transition-smooth);
}

.status-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.status-dot.done {
  background: var(--green);
}

.status-line {
  width: 38px;
  height: 3px;
  background: var(--bg-input);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.status-line.active { background: var(--accent); }
.status-line.done { background: var(--green); }

.status-eta {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.status-eta-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   TOAST & EMPTY STATES & SKELETONS
   ═══════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: var(--font-sm);
  font-weight: 600;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-spring);
  max-width: 90%;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-icon { font-size: 52px; margin-bottom: 14px; }
.empty-title { font-size: var(--font-base); font-weight: 700; margin-bottom: 6px; }
.empty-text { font-size: var(--font-xs); color: var(--text-secondary); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  height: 124px;
  border-radius: var(--radius-lg);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.35s ease-out both;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Desktop, Ultrawide)
   ═══════════════════════════════════════════════════════ */

/* ── HIDE-MOBILE HELPER ────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ── SMARTPHONES & MOBILE (<= 640px) ───────────────── */
@media (max-width: 640px) {
  .app-header {
    padding: calc(7px + var(--safe-top)) 10px 7px;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }

  .header-inner {
    gap: 6px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Скрываем кнопку «Работа» из шапки на смартфонах — доступна в меню и футере */
  .header-actions button[onclick*="vacancies"] {
    display: none !important;
  }

  .header-admin-link {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    flex-shrink: 0;
  }

  .header-admin-link span {
    display: none !important;
  }

  .header-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .delivery-toggle {
    max-width: 165px;
    flex-shrink: 1;
    min-width: 0;
  }

  .delivery-toggle-btn {
    padding: 4px 7px;
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }

  .categories-bar-wrapper {
    margin: 0 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: visible !important;
  }
}

/* ── NARROW MOBILE (<= 440px) ──────────────────────── */
@media (max-width: 440px) {
  .app-header {
    padding: calc(6px + var(--safe-top)) 8px 6px;
    overflow: visible !important;
  }

  .header-inner {
    gap: 5px;
    overflow: visible !important;
  }

  .brand {
    gap: 5px;
  }

  .brand-logo-wrap {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .delivery-toggle {
    max-width: 140px;
  }

  .delivery-toggle-btn svg {
    display: none; /* Скрываем иконки на узких экранах, оставляя чистый текст */
  }

  .delivery-toggle-btn {
    padding: 4px 6px;
    font-size: 10.5px;
  }

  .categories-bar-wrapper {
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* ── Скрытие элементов на страницах Корзины и Оформления заказа ── */
body.page-is-cart #cart-header-btn,
body.page-is-checkout #cart-header-btn,
body.page-is-status #cart-header-btn,
body.page-is-cart #bottom-cart-bar,
body.page-is-checkout #bottom-cart-bar,
body.page-is-status #bottom-cart-bar,
body.page-is-cart #header-delivery-toggle,
body.page-is-checkout #header-delivery-toggle,
body.page-is-status #header-delivery-toggle {
  display: none !important;
}

/* ── TABLET & FOLDABLES (>= 640px) ─────────────────── */
@media (min-width: 640px) {
  .page {
    padding: 0 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-tagline {
    display: block;
  }

  .terminal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── ADAPTIVE MODALS (>= 768px: Bottom Sheet -> Centered Dialog) ─ */
@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .modal-sheet {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    max-width: 580px;
    max-height: 85vh;
    padding: 28px 24px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .modal-overlay.open .modal-sheet {
    transform: scale(1);
    opacity: 1;
  }

  .sheet-drag-handle {
    display: none; /* No drag handle on desktop modal */
  }
}

@media (max-width: 1240px) {
  .header-phone-btn {
    display: none !important;
  }
}

/* ── DESKTOP & LAPTOPS (>= 1160px: 2-Column Split Layout) ─ */
@media (min-width: 1160px) {
  .app-container {
    padding-bottom: 40px;
  }

  .app-header {
    padding: 14px 32px;
  }

  .page {
    padding: 0 32px;
  }

  .header-desktop-info {
    display: flex;
  }

  .header-phone-btn {
    display: flex;
  }

  /* Catalog Layout Split */
  .catalog-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .catalog-main {
    flex: 1;
    min-width: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  /* Card enhancements for desktop — строго по рамке контейнера */
  .product-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0 !important;
    gap: 0;
  }

  .product-img-wrap {
    width: 100% !important;
    height: 230px !important;
    min-width: 100% !important;
    border-radius: 0 !important;
  }

  .product-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    transform: scale(1);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .product-card:hover .product-img {
    transform: scale(1.10) !important;
  }

  /* Desktop Sticky Cart Sidebar */
  .desktop-cart-sidebar {
    display: block;
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: calc(80px + var(--safe-top));
  }

  /* Hide mobile bottom floating cart bar on desktop */
  .bottom-cart-bar {
    display: none !important;
  }

  /* Checkout Layout Split */
  .checkout-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .checkout-sidebar-col {
    position: sticky;
    top: calc(80px + var(--safe-top));
  }
}

/* ── ULTRAWIDE & LARGE MONITORS (>= 1440px) ────────── */
@media (min-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-cart-sidebar {
    width: 420px;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER: Юридические ссылки & реквизиты (ЗоЗПП)
   ═══════════════════════════════════════════════════════ */

.app-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 22, 17, 0.95) 0%, rgba(20, 15, 12, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255, 115, 20, 0.22);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .brand-logo {
  font-size: 1.6rem;
}

.footer-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.5;
}

.footer-heading {
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-req {
  color: var(--text-muted);
  font-size: var(--font-xs);
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--font-xs);
}

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER (152-ФЗ информирование)
   ═══════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(14, 14, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: center;
  animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.cookie-inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-accept-btn {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: var(--font-sm);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-accept-btn:hover {
  background: var(--accent-gradient-hover);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════
   LEGAL CHECKBOXES (Checkout: раздельные согласия 152-ФЗ / 38-ФЗ)
   ═══════════════════════════════════════════════════════ */

.legal-checkout-group {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.legal-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 4px;
}

.legal-text {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 53, 0.3);
}

.legal-text a:hover {
  text-decoration-color: var(--accent);
}

.legal-receipt-notice {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════════════════
   АДРЕСНЫЕ ПОДСКАЗКИ (Autocomplete Dropdown)
   ═══════════════════════════════════════════════════════ */
.address-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: linear-gradient(160deg, #281f18 0%, #1a1410 100%);
  border: 1px solid rgba(255, 115, 20, 0.38);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
}

.address-suggestion-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
  font-size: 13.5px;
  color: var(--text-primary);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover, .address-suggestion-item.active {
  background: rgba(255, 107, 0, 0.16);
  color: #ff9e40;
}

.suggestion-icon {
  font-size: 15px;
  opacity: 0.7;
}

.suggestion-text-main {
  font-weight: 600;
}

.suggestion-text-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   ИНДИКАТОР ВАЛИДНОСТИ ТЕЛЕФОНА И OTP-БОКСЫ
   ═══════════════════════════════════════════════════════ */
.phone-input-valid {
  border-color: #30d158 !important;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.3) !important;
}

.phone-input-invalid {
  border-color: rgba(255, 107, 0, 0.5) !important;
}

.otp-box {
  width: 48px;
  height: 58px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 107, 0, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  font-family: monospace, sans-serif;
  outline: none;
  transition: all 0.2s ease;
}

.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  background: rgba(255, 107, 0, 0.12);
}

.zone-status-badge {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid;
}

.zone-status-badge.allowed {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.35);
  color: #30d158;
}

.zone-status-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.zone-status-badge.blocked {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

/* ── Web Push Soft-Prompt Banner (iOS/Android PWA) ─── */
#push-prompt-banner {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 84px);
  left: 50%;
  transform: translate(-50%, 40px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 460px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#push-prompt-banner.visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.push-prompt-content {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(46, 36, 28, 0.95) 0%, rgba(32, 24, 18, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px var(--accent-glow);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}

.push-prompt-icon {
  font-size: 26px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: bellRing 3s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 85%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); }
  92% { transform: rotate(14deg); }
  96% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}

.push-prompt-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.push-prompt-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.push-prompt-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: normal;
}

.push-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.push-prompt-accept {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.push-prompt-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.push-prompt-dismiss {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px;
  text-align: center;
  transition: color 0.15s ease;
}

.push-prompt-dismiss:hover {
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  #push-prompt-banner {
    bottom: calc(var(--safe-bottom) + 74px);
    width: calc(100% - 24px);
  }
  .push-prompt-content {
    padding: 12px 14px;
    gap: 10px;
  }
  .push-prompt-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* ── iOS Install Guide Bottom Sheet ───────────────── */
#ios-push-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

#ios-push-guide-modal.visible {
  pointer-events: auto;
  visibility: visible;
}

.ios-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#ios-push-guide-modal.visible .ios-guide-backdrop {
  opacity: 1;
}

.ios-guide-sheet {
  position: relative;
  background: var(--bg-modal);
  border: 1px solid var(--border-active);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 16px 20px calc(var(--safe-bottom) + 20px);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#ios-push-guide-modal.visible .ios-guide-sheet {
  transform: translateY(0);
}

.ios-guide-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.ios-guide-header {
  text-align: center;
  margin-bottom: 20px;
}

.ios-guide-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.ios-guide-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ios-guide-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ios-guide-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-content strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-content span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.ios-guide-close-btn {
  width: 100%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ios-guide-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════
   PROMO CAROUSEL В ШАПКЕ (Горизонтальный скролл с акциями)
   ═══════════════════════════════════════════════════════ */

.promo-carousel-wrapper {
  margin: 10px 0 20px;
  position: relative;
  overflow: visible;
}

/* Мягкие градиенты размытия краев карусели акций по бокам */
.promo-carousel-wrapper::before,
.promo-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.3s ease;
}

.promo-carousel-wrapper::before {
  left: -4px;
  width: 32px;
  background: linear-gradient(to right, #1c1510 0%, rgba(28, 21, 16, 0.7) 40%, transparent 100%);
}

.promo-carousel-wrapper::after {
  right: -4px;
  width: 48px;
  background: linear-gradient(to left, #1c1510 0%, rgba(28, 21, 16, 0.7) 40%, transparent 100%);
}

.promo-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(48, 37, 29, 0.95) 0%, rgba(34, 26, 20, 0.98) 100%);
  border: 1px solid rgba(255, 115, 20, 0.45);
  color: #ff9e40;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
}

.promo-carousel-wrapper:hover .promo-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.promo-nav-prev { left: -14px; }
.promo-nav-next { right: -14px; }

.promo-nav-btn:hover {
  background: #ff5500;
  color: #fff;
  border-color: #ff5500;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.50);
}

.promo-nav-btn.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .promo-nav-btn { display: none; }
}

.promo-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 14px 12px 22px;
  margin: -6px 0 -8px;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 24px, black calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0px, black 24px, black calc(100% - 36px), transparent 100%);
}

.promo-carousel::-webkit-scrollbar {
  display: none;
}

.promo-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  user-select: none !important;
}

.promo-carousel.is-dragging .promo-card {
  pointer-events: none;
}

.promo-card {
  flex: 0 0 clamp(260px, 78vw, 320px);
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card * {
  -webkit-user-drag: none;
  user-select: none;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.promo-card-accent,
.promo-card-gold,
.promo-card-fire,
.promo-card-cyan {
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.promo-card-accent .promo-card-badge,
.promo-card-gold .promo-card-badge,
.promo-card-fire .promo-card-badge,
.promo-card-cyan .promo-card-badge {
  background: #ff6b00;
  color: #ffffff;
  border: none;
  box-shadow: none;
}

.promo-card-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.promo-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.promo-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.promo-card-code {
  font-size: 11.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  font-family: monospace;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.promo-card-action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-card-icon {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 38px;
  opacity: 0.85;
  pointer-events: none;
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}

.promo-card:hover .promo-card-icon {
  transform: rotate(0deg) scale(1.1);
}

.promo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
}

.promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.promo-dot.active {
  width: 22px;
  background: var(--accent);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   SIDE DRAWER NAVIGATION (Стиль Гриль 1)
   ═══════════════════════════════════════════════════════ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 86vw);
  background: linear-gradient(180deg, #241c16 0%, #1a1410 100%);
  border-right: 1px solid rgba(255, 115, 20, 0.28);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: calc(14px + var(--safe-top)) 18px calc(14px + var(--safe-bottom));
  overflow-y: auto;
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--accent);
}

.drawer-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.drawer-nav-item:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: #fff;
}

.drawer-nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.drawer-nav-text {
  flex: 1;
}

.drawer-nav-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 0, 0.18);
  color: #ff9e40;
  border: 1px solid rgba(255, 107, 0, 0.35);
}

.drawer-nav-arrow {
  color: var(--text-muted);
  font-size: 14px;
  font-family: system-ui;
}

.drawer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}

.drawer-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   CUSTOM MODALS (Анкета вакансии, Контроль качества, Доставка)
   ═══════════════════════════════════════════════════════ */

.vacancy-modal-sheet,
.quality-modal-sheet,
.delivery-modal-sheet,
.promo-modal-sheet {
  max-width: 500px;
  background: linear-gradient(160deg, #281f18 0%, #1c1510 100%);
  border: 1px solid rgba(255, 115, 20, 0.38);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 107, 0, 0.15);
}

.vac-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.vac-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 4px;
}

.vac-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.vac-form-group {
  margin-bottom: 13px;
  text-align: left;
}

.vac-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c4bbb2;
  margin-bottom: 5px;
}

.vac-form-input {
  width: 100%;
  background: #231b15;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.vac-form-input:focus {
  border-color: #ff6b00;
}

.vac-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Quality Assurance Modal */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.18);
  border: 1px solid #ff6b00;
  color: #ff9e40;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.quality-modal-title {
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.quality-modal-lead {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.quality-modal-lead strong {
  color: #ff9e40;
}

.quality-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quality-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.quality-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.quality-step-body strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.quality-step-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.quality-phone-link {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: underline;
  margin-top: 10px;
}

/* Delivery Zones Modal */
.delivery-zones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.del-zone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.del-zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.del-zone-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  flex: 1;
}

.del-zone-time {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #c4bbb2;
}

.del-zone-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 24px;
}

.del-zone-desc strong {
  color: var(--green);
}

.del-pickup-box {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* ═══════════════════════════════════════════════════════
   VACANCIES PAGE & IN-APP STYLING (.vac-*)
   ═══════════════════════════════════════════════════════ */

.vac-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 10px 0 28px;
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: #140f0c;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(380px, 55vw, 480px);
}

.vac-hero-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.vac-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.48);
  transition: transform 0.6s ease;
}

.vac-hero:hover .vac-hero-img {
  transform: scale(1.02);
}

.vac-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #140f0c 15%, rgba(20, 15, 12, 0.72) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.vac-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3.5vw, 34px) clamp(16px, 3vw, 30px);
}

.vac-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.22);
  border: 1px solid #ff6b00;
  color: #ff9e40;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.vac-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.vac-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vac-subtitle {
  font-size: clamp(13px, 1.2vw + 10px, 15.5px);
  color: #d1c8c0;
  line-height: 1.5;
  max-width: 680px;
  margin-bottom: 18px;
}

.vac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vac-btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px var(--accent-glow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  border: none;
}

.vac-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.55);
}

.vac-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.vac-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.vac-section-head {
  text-align: center;
  margin: 36px 0 20px;
}

.vac-section-tag {
  font-size: 12px;
  font-weight: 800;
  color: #ff9e40;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.vac-section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
}

.vac-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.vac-benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.vac-benefit-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.vac-benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.vac-benefit-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vac-benefit-info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.vac-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.vac-role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.vac-role-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.vac-role-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.vac-role-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vac-role-card:hover .vac-role-img {
  transform: scale(1.05);
}

.vac-role-loc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vac-role-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vac-role-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vac-role-salary {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vac-role-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.vac-role-perks {
  list-style: none;
  margin-bottom: 18px;
}

.vac-role-perks li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.vac-role-perks li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

.vac-role-btn {
  width: 100%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.vac-role-card:hover .vac-role-btn {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.vac-steps-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.vac-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  position: relative;
}

.vac-step-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  position: relative;
}

.vac-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.vac-step-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.vac-step-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Atmosphere block */
.vac-atmosphere-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.vac-atmosphere-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.vac-atmosphere-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.vac-atmosphere-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vac-atmosphere-tag {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.vac-faq-list {
  max-width: 820px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vac-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.vac-faq-item.open {
  border-color: var(--accent);
}

.vac-faq-q {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.vac-faq-icon {
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
  flex-shrink: 0;
}

.vac-faq-item.open .vac-faq-icon {
  transform: rotate(45deg);
}

.vac-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vac-faq-item.open .vac-faq-a {
  max-height: 300px;
  padding: 0 20px 18px;
}





/* ═══════════════════════════════════════════════════════
   PWA INSTALLATION & STANDALONE EXPERIENCE
   ═══════════════════════════════════════════════════════ */

/* Header Install Button */
.header-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff9e40;
  padding: 0 12px;
  height: 38px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-install-btn:hover {
  background: rgba(255, 107, 0, 0.22);
  border-color: #ff6b00;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Floating Bottom Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(22, 17, 13, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 107, 0, 0.15);
  z-index: 9998;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.pwa-install-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.pwa-banner-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.35);
}

.pwa-btn-install:active {
  transform: scale(0.96);
}

.pwa-btn-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pwa-btn-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* iOS Bottom Sheet */
.pwa-ios-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pwa-ios-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.pwa-ios-sheet {
  background: #14100c;
  border-top: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 16px 20px calc(24px + var(--safe-bottom)) 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.pwa-ios-overlay.show .pwa-ios-sheet {
  transform: translateY(0);
}

.pwa-ios-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.pwa-ios-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pwa-ios-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 0, 0.3);
  flex-shrink: 0;
}

.pwa-ios-header-text {
  flex: 1;
}

.pwa-ios-header-text h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.pwa-ios-header-text p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.pwa-ios-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 16px;
}

.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.15);
  color: #ff9e40;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step-content {
  flex: 1;
}

.pwa-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.pwa-step-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pwa-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-ios-pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ff9e40;
  margin-bottom: 16px;
}

.bounce-arrow {
  animation: bounceDown 1.4s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.pwa-ios-ok-btn {
  width: 100%;
  height: 48px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

/* Standalone Mode: hide prompts */
body.is-standalone .pwa-install-banner,
body.is-standalone #pwa-install-header-btn {
  display: none !important;
}

/* Zone dots styling */
.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.zone-dot-green {
  background: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}
.zone-dot-orange {
  background: #ff9e40;
  box-shadow: 0 0 8px rgba(255, 158, 64, 0.5);
}
.zone-dot-blue {
  background: #0a84ff;
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════
   YANDEX ID & VERIFIED BADGES (0 ₽ SMS Auth)
   ═══════════════════════════════════════════════════════ */

.yandex-auth-card {
  background: linear-gradient(135deg, rgba(252, 63, 29, 0.08) 0%, rgba(255, 107, 0, 0.05) 100%);
  border: 1px solid rgba(252, 63, 29, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.yandex-auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.yandex-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.yandex-red-letter {
  width: 20px;
  height: 20px;
  background: #fc3f1d;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.yandex-free-tag {
  font-size: 11px;
  font-weight: 700;
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.yandex-auth-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-yandex-id {
  width: 100%;
  height: 44px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-yandex-id:hover {
  background: #f2f2f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-yandex-id:active {
  transform: scale(0.98);
}

.btn-yandex-logo {
  width: 24px;
  height: 24px;
  background: #fc3f1d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  flex-shrink: 0;
}

.yandex-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 6px;
}

.yandex-divider::before,
.yandex-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-divider span {
  padding: 0 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Logged in state card */
.yandex-verified-badge {
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yandex-verified-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.yandex-verified-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yandex-verified-info {
  flex: 1;
  min-width: 0;
}

.yandex-verified-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.yandex-verified-pill {
  font-size: 10px;
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.yandex-verified-phone {
  font-size: 12.5px;
  font-family: monospace, sans-serif;
  color: #e5e5ea;
}

.yandex-btn-switch {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.yandex-btn-switch:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
