/* hallmark-design-floor · Хлеб81 · direction: warm editorial bakery — serif counter-board prices, system UI, sunrise arc. */
/* critique: hero and order share a two-column split, so the dark full-width band sits between them; no photos were available, so type and one wheat mark carry the identity. */
/* waived: none. */

@font-face {
  font-family: "HlebSerif";
  src: url("/static/fonts/HlebSerif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HlebSerif";
  src: url("/static/fonts/HlebSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f0e4;
  --surface: #fffcf5;
  --surface-2: #efe4cf;
  --ink: #241a12;
  --muted: #695845;
  --line: #dccfb8;
  --line-strong: #c3b191;
  --brand: #7a3d1e;
  --brand-hover: #633015;
  --brand-active: #4f2510;
  --brand-ink: #fff8ec;
  --accent: #b9791f;
  --accent-ink: #8a5310;
  --accent-soft: #ead3a8;
  --focus: #0e6b58;
  --ok: #2e6b39;
  --ok-bg: #e7f1e3;
  --danger: #9b2c1e;
  --danger-bg: #f8e7e2;
  --band-bg: #241a12;
  --band-ink: #f6ead6;
  --band-muted: #d8c4a6;
  --shadow: 0 1px 0 rgba(36, 26, 18, 0.04), 0 18px 44px -30px rgba(36, 26, 18, 0.55);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-display: "HlebSerif", Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: clamp(3.5rem, 7vw, 6rem);
  --dur-fast: 160ms;
  --dur-med: 280ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211913;
    --surface: #2a2119;
    --surface-2: #34281e;
    --ink: #f3e9d9;
    --muted: #c9b99f;
    --line: #463829;
    --line-strong: #5c4935;
    --brand: #d8923f;
    --brand-hover: #e7a657;
    --brand-active: #c27f30;
    --brand-ink: #241708;
    --accent: #e7b25e;
    --accent-ink: #e7b25e;
    --accent-soft: #4a3620;
    --focus: #8fd3c4;
    --ok: #9ed3a4;
    --ok-bg: #22301f;
    --danger: #f1a294;
    --danger-bg: #3a221d;
    --band-bg: #17110c;
    --band-ink: #f6ead6;
    --band-muted: #c9b99f;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 44px -30px rgba(0, 0, 0, 0.8);
  }
}

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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: var(--space-3);
}

.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: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand:hover {
  color: var(--brand);
}

.mark {
  color: var(--accent);
  flex: none;
}

.mark-sm {
  width: 22px;
  height: 28px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-staff {
  padding-inline: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
}

/* Hero */
.hero {
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-copy {
  max-width: 36rem;
  animation: rise 520ms var(--ease-out) both;
}

.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.hero h1 {
  font-size: clamp(2.55rem, 6.6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: var(--space-4);
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-5);
}

.hero-note {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--muted);
}

.hours-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.hours-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.hours-value {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hours-caption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 22ch;
}

.hero-art {
  display: block;
  width: 100%;
  max-width: 20rem;
  max-height: 8rem;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  margin-top: var(--space-4);
}

.account-section {
  margin-top: var(--space-5);
}

.account-box {
  margin-top: var(--space-3);
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.account-box summary {
  cursor: pointer;
  font-weight: 600;
}

.account-form {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

/* Sections */
.section {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

.section-sub {
  color: var(--muted);
  font-size: 0.98rem;
}

.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.catalog-item:last-child {
  border-bottom: 0;
}

.catalog-item h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.availability {
  position: relative;
  padding-left: 0.85rem;
}

.availability::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 1px;
  background: var(--line-strong);
}

.catalog-price {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.catalog-item.is-unavailable {
  opacity: 0.7;
}

.empty {
  margin-top: var(--space-4);
  color: var(--muted);
  max-width: 55ch;
}

/* Fresh band */
.fresh {
  background: var(--band-bg);
  color: var(--band-ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.fresh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.fresh-copy h2 {
  color: var(--band-ink);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  max-width: 18ch;
}

.fresh-copy p {
  margin-top: var(--space-2);
  color: var(--band-muted);
  max-width: 46ch;
}

.timeline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.timeline-time {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  white-space: nowrap;
}

.timeline-rule {
  flex: 1;
  min-width: 2rem;
  height: 1px;
  background: linear-gradient(to right, var(--band-muted), var(--accent), var(--band-muted));
}

/* Order */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.order-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  max-width: 14ch;
}

.order-copy > p {
  margin-top: var(--space-3);
  color: var(--muted);
  max-width: 40ch;
}

.order-facts {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--ink);
}

.order-facts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.order-facts svg {
  color: var(--accent);
  flex: none;
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--space-3);
  min-width: 0;
}

.field label {
  font-size: 0.94rem;
  font-weight: 600;
}

.hint {
  font-weight: 400;
  color: var(--muted);
}

.req {
  color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - 0.85rem) 1.25rem;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

@media (hover: hover) {
  input:hover,
  select:hover,
  textarea:hover {
    border-color: var(--line-strong);
  }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: var(--brand-ink);
  }

  .btn-ghost:hover,
  .btn-secondary:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
}

.btn-primary:active {
  background: var(--brand-active);
  border-color: var(--brand-active);
  transform: scale(0.98);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-1);
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.btn-danger-ghost {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
  background: transparent;
}

@media (hover: hover) {
  .btn-danger-ghost:hover {
    background: var(--danger-bg);
    color: var(--danger);
  }
}

/* Notices */
.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.notice svg {
  flex: none;
  margin-top: 0.1rem;
}

.notice p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice-ok {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: var(--ok-bg);
}

.notice-ok svg {
  color: var(--ok);
}

.notice-error {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  background: var(--danger-bg);
}

.notice-error svg {
  color: var(--danger);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
  background: var(--bg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-line,
.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-staff {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Auth */
.auth-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.auth-wrap {
  width: 100%;
  max-width: 27rem;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.auth-brand {
  justify-self: start;
}

.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.1;
}

.auth-sub {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.94rem;
}

.auth-form {
  margin-top: var(--space-4);
}

.auth-back {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Admin */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
  flex-wrap: wrap;
}

.admin-tag {
  color: var(--muted);
  font-size: 0.92rem;
}

.logout-form {
  margin-left: auto;
}

.admin-main {
  padding-block: clamp(1.5rem, 4vw, 2.75rem) var(--space-7);
}

.admin-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
}

.admin-sub {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.stat {
  display: grid;
  gap: 0.1rem;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.panel-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.panel-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  margin-top: var(--space-3);
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-2);
}

.cell-when {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cell-who {
  display: grid;
  gap: 0.15rem;
  min-width: 11rem;
}

.cell-who strong {
  font-weight: 600;
}

.tel {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.cell-comment {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 22rem;
}

.status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  white-space: nowrap;
}

.status-new {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  color: var(--brand);
}

.status-in_progress {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  color: var(--accent-ink);
}

.status-done {
  border-color: color-mix(in srgb, var(--ok) 50%, var(--line));
  color: var(--ok);
}

.status-rejected {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--line));
  color: var(--danger);
}

.status-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.status-form select {
  min-height: 40px;
  padding: 0.3rem 2rem 0.3rem 0.5rem;
  font-size: 0.88rem;
  background-position: calc(100% - 1rem) 1.15rem, calc(100% - 0.7rem) 1.15rem;
}

.admin-catalog {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.admin-catalog-item {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.catalog-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.catalog-form .field {
  margin-bottom: 0;
}

.field-inline {
  flex: 1 1 12rem;
  min-width: 0;
}

.field-price {
  flex: 0 1 7rem;
}

.field-unit {
  flex: 0 1 5rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  accent-color: var(--brand);
}

.delete-form {
  margin: 0;
}

.add-form {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}

.add-form h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.add-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(6rem, 0.7fr) minmax(5rem, 0.7fr) auto;
  gap: var(--space-2);
  align-items: end;
}

.add-grid .field {
  margin-bottom: 0;
}

.notif-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.notif {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  font-size: 0.92rem;
}

.notif-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Animation */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .order-grid,
  .fresh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hours-card {
    max-width: 26rem;
  }

  .fresh-grid {
    gap: var(--space-4);
  }

  .add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .add-grid .field:first-child {
    grid-column: 1 / -1;
  }

  .add-grid button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-staff) {
    display: none;
  }

  .hero {
    padding-top: var(--space-5);
  }

  .hero-note {
    margin-top: var(--space-4);
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn-sm {
    min-height: 44px;
  }

  .status-form {
    flex-wrap: wrap;
  }

  .footer-grid {
    align-items: flex-start;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: var(--space-2);
  }

  .data-table tr {
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  .data-table td {
    padding: 0;
    border: 0;
  }

  .data-table td + td {
    margin-top: 0.55rem;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .cell-when,
  .cell-who {
    display: block;
    min-width: 0;
  }

  .cell-who {
    gap: 0;
  }

  .cell-who strong,
  .cell-who .tel,
  .cell-comment {
    display: block;
  }

  .cell-comment {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
