:root {
  --color-primary: #E84E1C;
  --color-primary-dark: #C33D13;
  --color-accent: #F5B342;
  --color-dark: #1F1410;
  --color-bg: #FAF6EE;
  --color-bg-card: #FFFFFF;
  --color-text: #1A120B;
  --color-text-muted: #6B5D52;
  --color-border: rgba(26, 18, 11, 0.08);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

/* Noise texture overlay */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero text shadow - только для фото-фона */
.hero-text-shadow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--color-primary);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(232, 78, 28, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  box-shadow: 0 12px 32px rgba(232, 78, 28, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--color-text);
  transform: translateY(-1px);
}

/* Header transitions */
.header-transparent {
  background: transparent;
  backdrop-filter: none;
}

.header-scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 480ms; }

/* Decorative ornament */
.ornament {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.ornament::before,
.ornament::after {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Dish card */
.dish-card {
  background: var(--color-bg-card);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.dish-card:hover {
  box-shadow: 0 20px 48px -12px rgba(31, 20, 16, 0.18);
  border-color: rgba(232, 78, 28, 0.25);
}

.dish-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0e8d8;
}

.dish-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dish-card:hover .dish-card-image img {
  transform: scale(1.06);
}

/* Badge */
.dish-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
}

.dish-badge-popular {
  background: rgba(232, 78, 28, 0.12);
  color: var(--color-primary);
}

.dish-badge-new {
  background: rgba(245, 179, 66, 0.18);
  color: #B8791C;
}

.dish-badge-chef {
  background: var(--color-dark);
  color: #F5E6C8;
}

/* Counter control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--color-primary);
  color: white;
  border-radius: 9999px;
  padding: 4px;
  user-select: none;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s;
  font-weight: 700;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Category nav sticky */
.cat-nav {
  position: sticky;
  top: 58px;
  z-index: 40;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.cat-nav-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 12px 0;
}

.cat-link {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  border: 1px solid transparent;
}

.cat-link:hover {
  color: var(--color-text);
}

.cat-link.active {
  background: var(--color-dark);
  color: white;
}

@media (max-width: 640px) {
  .cat-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
}

/* Floating cart button */
.floating-cart {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart.visible {
  transform: translateY(0);
}

.floating-cart-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(232, 78, 28, 0.42);
  transition: transform 0.15s;
}

.floating-cart-inner:hover {
  transform: scale(1.04);
}

.floating-cart-inner svg {
  width: 20px;
  height: 20px;
}

/* GLightbox */
.glightbox-clean .gslide-media {
  max-width: 92vw !important;
  max-height: 92vh !important;
}
.glightbox-clean .gslide-image img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}
.glightbox-clean .gslide-description {
  background: rgba(31, 20, 16, 0.92);
}

/* Gallery item hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  background: #f0e8d8;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31, 20, 16, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Review card scrollbar (horizontal) */
.reviews-scroll {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.reviews-scroll::-webkit-scrollbar { height: 6px; }
.reviews-scroll::-webkit-scrollbar-track { background: transparent; }
.reviews-scroll::-webkit-scrollbar-thumb {
  background: rgba(26, 18, 11, 0.15);
  border-radius: 9999px;
}
.review-card {
  scroll-snap-align: start;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: white;
  border-radius: 1.5rem;
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.modal-backdrop.open .modal-content {
  transform: scale(1);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 85vw);
  background: white;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 16, 0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Sticky CTA bottom bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.75rem 1rem;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.sticky-cta .cta-call {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 18px rgba(232, 78, 28, 0.3);
}
.sticky-cta .cta-menu {
  background: var(--color-dark);
  color: white;
}
@media (min-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* Hero parallax - only desktop */
@media (min-width: 1024px) {
  .hero-parallax-bg {
    background-attachment: fixed;
  }
}

/* Number counter glow */
.stat-number {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* Hover lift for CLICKABLE only */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.hover-lift:hover {
  transform: translateY(-3px);
}

/* Order page print */
@media print {
  body {
    background: white !important;
  }
  .no-print { display: none !important; }
}
