/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7f3d0;
  font-size: 1.3rem;
  object-fit: cover;
}
img.logo-icon {
  background: none !important;
  display: block;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); }

/* Language switcher */
#langSwitcher {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 8px; background: var(--bg);
  border-radius: 999px; margin-left: 8px;
}
.lang-globe {
  font-size: .95rem; line-height: 1;
  margin-right: 2px; opacity: .65;
}
.lang-btn {
  background: none; border: none; padding: 4px 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .3px;
  font-family: inherit; cursor: pointer;
  color: var(--text-light); border-radius: 6px;
  transition: all .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--white); color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  border-radius: 999px;
}
.lang-btn { border-radius: 999px; }

/* Auth widget in header */
#authSlot { display: inline-flex; align-items: center; gap: 14px; margin-left: 8px; }
.auth-login {
  padding: 8px 16px; border-radius: 10px;
  background: var(--primary); color: #fff !important;
  font-weight: 700; font-size: .85rem;
}
.auth-login:hover { background: var(--primary-dark); color: #fff !important; }
.auth-user {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .85rem; color: var(--text) !important;
  max-width: 220px;
}
.auth-user:hover { color: var(--primary) !important; }
.auth-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem;
}
.auth-email {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-logout {
  font-size: .82rem; color: var(--text-light) !important;
}
.auth-logout:hover { color: var(--primary) !important; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-btn {
  position: relative;
  background: none;
  padding: 8px;
  color: var(--text-light);
  transition: color var(--transition);
}
.cart-btn:hover { color: var(--primary); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition);
}
.cart-count.show { opacity: 1; transform: scale(1); }

.burger {
  display: none;
  background: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Instagram icon link in the header */
.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--text-light);
  transition: color var(--transition);
}
.ig-link:hover { color: var(--primary); }
.ig-link svg { width: 24px; height: 24px; display: block; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #fff 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.08), transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-content {
  max-width: 760px;
  width: 100%;
}
.hero-buttons { justify-content: center; }
.hero-stats { justify-content: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary), #84cc16);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin: 0 auto 32px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid #e5e7eb;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: .8rem;
  color: var(--text-light);
}

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: var(--bg);
  padding: 36px 28px;
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 3.5rem;
  font-weight: 900;
  color: #f3f4f6;
  line-height: 1;
}
.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(5,150,105,.25);
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p { color: var(--text-light); font-size: .92rem; }

/* ===== MENU ===== */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.menu-tab {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 600;
  background: var(--white);
  border: 2px solid #e5e7eb;
  color: var(--text-light);
  transition: all var(--transition);
}
.menu-tab:hover { border-color: var(--primary); color: var(--primary); }
.menu-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.meal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.meal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.meal-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #f9fafb;
}
.meal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.meal-card:hover .meal-card-img img { transform: scale(1.05); }
.meal-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.meal-badge .fire { color: #f97316; }

.meal-card-body { padding: 20px; }
.meal-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.meal-card-body .desc {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.macro {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
}
.macro.protein { background: #ecfdf5; }
.macro.fat { background: #fffbeb; }
.macro.carbs { background: #eff6ff; }
.macro .val {
  font-size: .85rem;
  font-weight: 700;
}
.macro.protein .val { color: var(--primary); }
.macro.fat .val { color: #d97706; }
.macro.carbs .val { color: #2563eb; }
.macro .lbl {
  font-size: .7rem;
  color: var(--text-light);
}

.meal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 1.3rem;
  font-weight: 800;
}
.price small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-light);
}
.add-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ===== PLANS ===== */
.plans { background: var(--white); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.plan-card {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.plan-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(5,150,105,.15);
}
.plan-card.popular::before {
  content: 'Популярный';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-desc {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.plan-kcal {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-kcal small {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
}
.plan-meals {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-price small {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-light);
}
.plan-period {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
}
.plan-card.popular .plan-btn {
  background: var(--primary);
  color: #fff;
}
.plan-card.popular .plan-btn:hover { background: var(--primary-dark); }
.plan-card:not(.popular) .plan-btn {
  background: var(--primary);
  color: #fff;
}
.plan-card:not(.popular) .plan-btn:hover { background: var(--primary-dark); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-cat { margin-bottom: 36px; }
.faq-cat:last-child { margin-bottom: 0; }
.faq-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  padding: 12px 0;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--primary-light, #d1fae5);
}
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-question {
  width: 100%;
  background: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--text-light);
}
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta p { font-size: 1.1rem; color: #a7f3d0; margin-bottom: 32px; }
.cta .btn {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.cta .btn:hover { transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-icon { background: linear-gradient(135deg, var(--primary), #34d399); }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col a {
  display: block;
  font-size: .88rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,.1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.cart-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-close {
  background: none;
  padding: 8px;
  color: var(--text-light);
  transition: color var(--transition);
}
.cart-close:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.cart-empty .icon { font-size: 3rem; margin-bottom: 12px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .kcal-label { font-size: .75rem; color: var(--text-light); }
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-val { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-price {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  align-self: center;
}

.cart-footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 24px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
}
.checkout-btn:hover { background: var(--primary-dark); }

/* ===== ORDER MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: .92rem;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  margin-top: 8px;
}
.submit-btn:hover { background: var(--primary-dark); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #1f2937;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 18px 20px 22px;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    align-items: stretch;
    z-index: 50;
  }
  .nav.open a {
    font-size: 1rem; font-weight: 600; color: var(--text);
    padding: 8px 0;
  }
  .nav.open #langSwitcher,
  .nav.open #authSlot {
    width: 100%; justify-content: center;
    margin-left: 0;
  }
  .nav.open #authSlot { gap: 12px; }
  .nav.open .auth-email { max-width: none; }
  .burger { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .steps { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .menu-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 50px 0; }
  /* cart constructor: sidebar below schedule on mobile */
  .constructor-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .menu-tabs { flex-wrap: wrap; }
  .cart-sidebar { width: 100vw; }
}
