/* «Северный ветер» — кремово-терракотовый тёплый минимализм.
   Палитра: cream-50 #FFFBF5, cream-100 #FBF3E7, cream-200 #F3E6D4, sand-300 #E6D2B9,
   terracotta-500 #C25E3F, terracotta-600 #A94B30, clay-300 #E2A184, olive-500 #6F7B55,
   gold-400 #C99A4B, espresso-900 #2A211C, coffee-700 #5B4636, success #4F7A4A,
   warning #B9822F, danger #9E3B2C. */

:root {
  --cream-50: #FFFBF5;
  --cream-100: #FBF3E7;
  --cream-200: #F3E6D4;
  --sand-300: #E6D2B9;
  --terracotta-500: #C25E3F;
  --terracotta-600: #A94B30;
  --clay-300: #E2A184;
  --olive-500: #6F7B55;
  --gold-400: #C99A4B;
  --espresso-900: #2A211C;
  --coffee-700: #5B4636;
  --success: #4F7A4A;
  --warning: #B9822F;
  --danger: #9E3B2C;
  --shadow-soft: 0 8px 30px rgba(42, 33, 28, 0.08);
  --shadow-lift: 0 14px 36px rgba(42, 33, 28, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "PT Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--espresso-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-600); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--espresso-900); overflow-wrap: anywhere; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; margin: 0 0 10px; }
p { margin: 0 0 14px; max-width: 68ch; }
ul, ol { padding-left: 20px; }
:focus-visible { outline: 2px solid var(--terracotta-600); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--terracotta-600);
  color: #fff; padding: 10px 16px; border-radius: 8px; transition: top 150ms ease-out;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--coffee-700); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta-600); margin: 0 0 12px;
}
.draft-note {
  display: inline-block; font-size: 13px; color: var(--coffee-700); background: var(--cream-200);
  border: 1px dashed var(--sand-300); border-radius: 8px; padding: 4px 10px; margin: 6px 0 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(251, 243, 231, 0.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-300);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--espresso-900); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--terracotta-600); }
.brand-text { font-family: var(--serif); font-size: 15px; line-height: 1.02; letter-spacing: 0.08em; font-weight: 600; }
.main-nav { display: flex; gap: 18px; margin-left: 8px; flex: 1 1 auto; }
.main-nav a { color: var(--coffee-700); font-size: 15px; }
.main-nav a:hover { color: var(--terracotta-600); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.staff-link { font-size: 13px; color: var(--coffee-700); white-space: nowrap; }
.burger { display: none; background: none; border: 1px solid var(--sand-300); border-radius: 10px; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--espresso-900); margin: 4px 0; border-radius: 2px; }
.mobile-nav { display: none; border-top: 1px solid var(--sand-300); padding: 12px 24px 20px; background: var(--cream-50); }
.mobile-nav a { display: block; padding: 10px 0; color: var(--espresso-900); border-bottom: 1px solid var(--cream-200); }
.mobile-nav:not([hidden]) { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta-600); color: #fff; }
.btn-primary:hover { background: var(--terracotta-500); }
.btn-secondary { background: var(--cream-50); color: var(--terracotta-600); border-color: var(--terracotta-600); }
.btn-secondary:hover { background: var(--cream-200); }
.btn-ghost { background: transparent; color: var(--espresso-900); border-color: var(--sand-300); }
.btn-ghost:hover { background: var(--cream-200); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand-300);
  background: var(--cream-50); font-size: 22px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center;
}
.cart-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta-500); color: #fff; font-size: 12px; text-align: center; }

/* sections */
section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.divider { display: block; width: 100%; max-width: 240px; color: var(--terracotta-500); opacity: 0.6; margin: 8px 0 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; object-fit: cover; }
.aspect-wide { aspect-ratio: 16 / 9; }
.aspect-4x3 { aspect-ratio: 4 / 3; }
.aspect-3x2 { aspect-ratio: 3 / 2; }

/* hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.hero-text { max-width: 560px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--coffee-700); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow-lift); aspect-ratio: 16 / 9; object-fit: cover; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255, 251, 245, 0.94);
  border: 1px solid var(--sand-300); border-radius: 12px; padding: 8px 14px; font-size: 13px;
  color: var(--espresso-900); box-shadow: var(--shadow-soft);
}

/* cards and menu */
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.item-card {
  display: flex; flex-direction: column; background: var(--cream-50); border: 1px solid var(--sand-300);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
  min-width: 0;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--clay-300); }
.item-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-200); }
.item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease-out; }
.item-card:hover .item-media img { transform: scale(1.03); }
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.item-body h3 { margin: 0; font-size: 20px; }
.item-desc { color: var(--coffee-700); font-size: 14px; margin: 0; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 19px; white-space: nowrap; color: var(--espresso-900); }
.price small { font-size: 12px; color: var(--coffee-700); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag img { width: 14px; height: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1;
  padding: 5px 9px; border-radius: 999px; background: var(--cream-200); color: var(--coffee-700);
  border: 1px solid var(--sand-300); white-space: nowrap;
}
.tag.olive { background: rgba(111, 123, 85, 0.14); border-color: rgba(111, 123, 85, 0.35); color: #4b5638; }
.tag.gold { background: rgba(201, 154, 75, 0.18); border-color: rgba(201, 154, 75, 0.42); color: #7c5a20; }
.tag.terracotta { background: rgba(194, 94, 63, 0.12); border-color: rgba(194, 94, 63, 0.35); color: var(--terracotta-600); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1 1 auto; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--cream-200); border: 1px solid var(--sand-300); white-space: nowrap; }
.status-chip.warn { background: rgba(185, 130, 47, 0.14); color: #7d5517; border-color: rgba(185, 130, 47, 0.35); }
.status-chip.danger { background: rgba(158, 59, 44, 0.12); color: var(--danger); border-color: rgba(158, 59, 44, 0.3); }
.status-chip.ok { background: rgba(79, 122, 74, 0.13); color: #3f623b; border-color: rgba(79, 122, 74, 0.32); }

/* filters */
.filters {
  background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-soft); margin-bottom: 22px;
}
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filters-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.filter-count { color: var(--coffee-700); font-size: 14px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field-label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--coffee-700); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--sand-300);
  border-radius: 10px; background: var(--cream-50); color: var(--espresso-900);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--terracotta-600); outline: 2px solid rgba(169, 75, 48, 0.25); outline-offset: 1px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: 0 0 auto; }
.form-card { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--danger); font-size: 13px; margin: 0; }
.form-status { margin-top: 12px; font-size: 14px; }
.form-status.ok { color: #3f623b; }
.form-status.err { color: var(--danger); }
.error-summary { background: rgba(158, 59, 44, 0.08); border: 1px solid rgba(158, 59, 44, 0.35); color: var(--danger); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery-item { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item button { display: block; padding: 0; border: 0; background: none; width: 100%; text-align: left; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 250ms ease-out; }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item figcaption { padding: 12px 16px; color: var(--coffee-700); font-size: 14px; }

/* reviews */
.review-list { display: grid; gap: 16px; }
.review-card { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 18px; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-stars { display: inline-flex; gap: 2px; }
.review-stars img { width: 16px; height: 16px; color: var(--gold-400); filter: invert(62%) sepia(45%) saturate(520%) hue-rotate(2deg) brightness(92%); }
.review-stars img.off { opacity: 0.25; }

/* empty state */
.empty-state {
  text-align: center; background: var(--cream-50); border: 1px dashed var(--sand-300);
  border-radius: var(--radius); padding: 36px 24px; color: var(--coffee-700);
}
.empty-state img { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--terracotta-500); }
.empty-state h3 { color: var(--espresso-900); }
.empty-state p { margin-left: auto; margin-right: auto; }

/* status result */
.result-card { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.kv { display: grid; grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.kv dt { color: var(--coffee-700); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* footer */
.site-footer { background: var(--espresso-900); color: #f6ede2; padding: 48px 0 24px; margin-top: 40px; }
.site-footer a { color: #f2d9c8; }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-mark, .panel-side .brand-mark { filter: brightness(0) invert(1); opacity: 0.92; }
.panel-nav img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-title { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-grid a { display: block; margin: 6px 0; font-size: 14px; }
.footer-brand { margin-bottom: 14px; }
.footer-grid .muted { color: #cdbfb2; font-size: 14px; max-width: 46ch; }
.footer-grid .draft-note { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: #e7d7c8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 18px; font-size: 12px; color: #bfae9f; }

/* toast + banner */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px);
  background: var(--espresso-900); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lift); z-index: 120; max-width: min(92vw, 560px); font-size: 14px;
  opacity: 0; transition: opacity 150ms ease-out, transform 150ms ease-out;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.demo-banner { background: var(--gold-400); color: #3a2b10; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }

/* cart drawer + lightbox + modal */
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); background: var(--cream-50);
  border-left: 1px solid var(--sand-300); box-shadow: -10px 0 40px rgba(42,33,28,0.18);
  z-index: 90; padding: 20px; overflow-y: auto;
}
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cream-200); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--sand-300); background: var(--cream-50); }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 18px; font-weight: 600; }
.lightbox {
  position: fixed; inset: 0; z-index: 110; background: rgba(42, 33, 28, 0.9); display: flex;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #f6ede2; margin-top: 12px; font-size: 14px; }
.lightbox-close { position: absolute; top: 18px; right: 20px; color: #fff; background: none; border: 0; font-size: 36px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,251,245,0.12); color: #fff; border: 0; font-size: 40px; width: 56px; height: 56px; border-radius: 50%; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(42, 33, 28, 0.55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow-y: auto; }
.modal {
  background: var(--cream-50); border-radius: var(--radius); width: min(760px, 100%); box-shadow: var(--shadow-lift);
  padding: 24px; position: relative; margin: auto;
}
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.modal-close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--coffee-700); }
.modal .item-media { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }

/* staff login */
.login-wrap { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.login-card { width: min(440px, 100%); }
.login-card .brand { justify-content: center; margin-bottom: 18px; }

/* staff panel */
.panel-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 78vh; }
.panel-side { background: var(--espresso-900); color: #f6ede2; padding: 22px 16px; }
.panel-side .brand-text { color: #fff; }
.panel-side .brand { margin-bottom: 22px; }
.panel-nav { display: flex; flex-direction: column; gap: 4px; }
.panel-nav a {
  color: #e8dbcf; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.panel-nav a img { width: 18px; height: 18px; }
.panel-nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.panel-nav a.active { background: var(--terracotta-600); color: #fff; }
.panel-main { padding: 24px; min-width: 0; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream-200); color: var(--espresso-900);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border: 1px solid var(--sand-300);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.stat-card .stat-label { font-size: 13px; color: var(--coffee-700); }
.stat-card .stat-value { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.panel-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.panel-card { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); min-width: 0; }
.panel-card h3 { margin-top: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .field { margin: 0; min-width: 150px; }
.toolbar-spacer { flex: 1 1 auto; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--cream-200); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 12px; min-height: 180px; }
.kanban-col.drag-over { outline: 2px dashed var(--terracotta-500); outline-offset: -4px; }
.kanban-col h3 { font-size: 15px; font-family: var(--sans); margin: 0 0 10px; display: flex; justify-content: space-between; }
.kanban-cards { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius-sm); padding: 12px;
  cursor: grab; box-shadow: 0 4px 14px rgba(42,33,28,0.06); transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.order-card:hover { transform: translateY(-2px); }
.order-card.urgent { border-left: 4px solid var(--danger); }
.order-card.vip { border-left: 4px solid var(--gold-400); }
.order-card.dragging { opacity: 0.5; }
.order-card .order-code { font-weight: 600; font-size: 14px; }
.order-card .order-meta { font-size: 12px; color: var(--coffee-700); }
.order-card .order-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-bar { display: flex; gap: 3px; margin: 8px 0 2px; }
.stage-bar span { height: 5px; flex: 1 1 0; border-radius: 3px; background: var(--sand-300); }
.stage-bar span.done { background: var(--terracotta-500); }
.stage-bar span.cancel { background: var(--danger); }
.table-wrap { overflow-x: auto; border: 1px solid var(--sand-300); border-radius: var(--radius); background: var(--cream-50); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cream-200); font-size: 14px; vertical-align: top; }
th { background: var(--cream-200); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-box { background: var(--cream-50); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 16px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.notice { background: var(--cream-200); border: 1px solid var(--sand-300); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.role-hint { font-size: 12px; color: var(--coffee-700); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cream-200); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.switch input { width: 20px; height: 20px; min-height: 0; }
.loading-block { padding: 80px 0; color: var(--coffee-700); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; background: var(--cream-200); border-radius: 10px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-grid figcaption { font-size: 12px; padding: 6px 8px; color: var(--coffee-700); }
.history-list { margin: 8px 0 0; padding-left: 18px; color: var(--coffee-700); font-size: 14px; }

/* reveal animation */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up 400ms var(--ease-out) both; }
@keyframes soft-pop { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.modal { animation: soft-pop 400ms var(--ease-out) both; }

/* responsive */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; }
  .staff-link { display: none; }
  .panel-shell { grid-template-columns: 1fr; }
  .panel-side { padding: 14px; }
  .panel-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .panel-nav a { white-space: nowrap; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  section { padding: 40px 0; }
  .hero-grid, .split, .split.reverse > :first-child, .panel-grid-2, .form-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn-primary { display: none; }
  .cart-button span span { display: inline; }
  .panel-main { padding: 16px 0; }
  .table-wrap { border-radius: 12px; }
  .modal { padding: 18px; }
  .kanban { grid-auto-columns: minmax(86%, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .brand-text { font-size: 13px; }
  .hero { padding-top: 24px; }
  .hero-badge { position: static; margin-top: 12px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .field, .toolbar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .item-card:hover { transform: none; }
  .item-card:hover .item-media img { transform: none; }
}

@media print {
  .site-header, .site-footer, .toast, .demo-banner, .cart-drawer, .lightbox { display: none !important; }
  body { background: #fff; }
}
