/* hallmark-design-floor */
/* critique: porcelain and cobalt workshop identity; a display serif, a price-list catalog and a real booking flow instead of stock photography. */
@font-face {
  font-family: "Liberation Serif";
  src: url("/assets/serif-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Liberation Serif", Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, "Liberation Sans", sans-serif;

  --bg: #eef0ec;
  --surface: #f8faf6;
  --surface-2: #e3e8e1;
  --ink: #14211d;
  --muted: #52615b;
  --line: #cbd5cd;
  --accent: #1d4a78;
  --accent-soft: #dbe6f1;
  --action: #1d4a78;
  --action-hover: #163a5f;
  --action-ink: #f7faf9;
  --clay: #a8583c;
  --danger: #8c3a2c;
  --danger-soft: #f3ded8;
  --success: #1f5c46;
  --success-soft: #dcebe2;
  --focus: #b5653f;
  --shadow: 0 18px 40px color-mix(in oklab, var(--ink) 13%, transparent);
  --band-body: #e3edf7;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --radius-sm: 0.35rem;
  --radius-md: 0.7rem;
  --radius-pill: 999px;

  --text-display: clamp(2.7rem, 1.5rem + 4.6vw, 5.2rem);
  --text-h2: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  --text-h3: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;

  --shell: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --dur-fast: 140ms;
  --dur-mid: 260ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101614;
    --surface: #17201d;
    --surface-2: #1e2925;
    --ink: #e9efeb;
    --muted: #a7b4ae;
    --line: #2d3b35;
    --accent: #9cc3e6;
    --accent-soft: #1e2f3d;
    --action: #9cc3e6;
    --action-hover: #b5d4ee;
    --action-ink: #0e1a22;
    --clay: #d08a68;
    --danger: #e39a8c;
    --danger-soft: #34211d;
    --success: #9fd4b5;
    --success-soft: #16281f;
    --focus: #e0a37f;
    --shadow: 0 18px 40px color-mix(in oklab, #000 45%, transparent);
    --band-body: #142432;
  }
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

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

img,
svg {
  max-width: 100%;
}

h1, h2, h3, h4, p, dl, dd, dt, ul, ol, figure {
  margin: 0;
}

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

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; }

p { max-width: 65ch; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.narrow {
  max-width: 44rem;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

/* header ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 88%, var(--surface));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: var(--space-2xs);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}
.site-nav,
.staff-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--text-small);
}
.site-nav a,
.staff-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 0.38rem;
}
.site-nav a:hover,
.staff-nav a:hover,
.site-nav a[aria-current="page"],
.staff-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}
.site-nav .subtle { color: var(--muted); }
.staff-who { color: var(--muted); }
.inline-form { display: inline; }

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-button:hover { color: var(--action-hover); }

/* buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--action);
  border-radius: var(--radius-sm);
  background: var(--action);
  color: var(--action-ink);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.button:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-ink); }
.button:active { transform: translateY(1px); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.button.small { min-height: 2.3rem; padding: 0.4rem 0.85rem; }
.button.tiny { min-height: 2rem; padding: 0.25rem 0.65rem; font-size: 0.8rem; }
.button.wide { width: 100%; }
.button.danger { background: transparent; color: var(--danger); border-color: color-mix(in oklab, var(--danger) 55%, var(--line)); }
.button.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button[aria-busy="true"] { cursor: progress; }

/* hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.4rem, 6vw, 5.2rem) clamp(2.6rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 45%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero-kicker {
  font-size: var(--text-small);
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.hero h1 {
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.hero-lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: var(--space-lg);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.facts dd {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
}
.hero-figure {
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
}
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  max-width: 32ch;
}
.wheel-art {
  width: min(100%, 30rem);
  height: auto;
  filter: drop-shadow(0 24px 34px color-mix(in oklab, var(--ink) 16%, transparent));
}
.wheel-fallback {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.wheel-fallback span {
  grid-area: 1 / 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.wheel-fallback span:nth-child(1) { width: 90%; height: 90%; opacity: 0.25; }
.wheel-fallback span:nth-child(2) { width: 64%; height: 64%; opacity: 0.4; }
.wheel-fallback span:nth-child(3) { width: 38%; height: 38%; opacity: 0.6; }
.wheel-fallback span:nth-child(4) { width: 14%; height: 14%; background: var(--clay); border-color: var(--clay); opacity: 0.75; }

/* sections ---------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vw, var(--space-2xl)); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}
.section-note {
  color: var(--muted);
  font-size: var(--text-small);
  max-width: 38ch;
}

.catalog-list { list-style: none; padding: 0; }
.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.catalog-row:first-child { border-top: 1px solid var(--line); }
.catalog-main { min-width: 0; }
.catalog-main h3 { margin-bottom: 0.2rem; }
.catalog-unit { color: var(--muted); font-size: var(--text-small); }
.catalog-price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.band {
  background: var(--action);
  color: var(--action-ink);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
}
.rule { min-width: 0; }
.rule-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: var(--space-sm);
  border: 1px solid color-mix(in oklab, var(--action-ink) 40%, transparent);
  border-radius: 50%;
  color: var(--action-ink);
}
.rule h3 { margin-bottom: var(--space-2xs); color: var(--action-ink); }
.rule p {
  color: var(--band-body);
  font-size: var(--text-small);
  max-width: 30ch;
}

.about-section { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}
.about-grid h2 { max-width: 12ch; }
.about-copy p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  max-width: 52ch;
}

.booking-section { background: var(--bg); }
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.booking-copy h2 { max-width: 14ch; margin-bottom: var(--space-md); }
.booking-copy > p { color: var(--muted); max-width: 42ch; }
.booking-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-2xs);
}
.booking-note p { font-size: var(--text-small); color: var(--muted); }
.booking-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.booking-form { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-3xs); min-width: 0; }
.field label {
  font-size: var(--text-small);
  font-weight: 700;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}
input,
select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-small);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
input:hover,
select:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
input:user-invalid,
select:user-invalid { border-color: var(--danger); }
input::placeholder { color: var(--muted); opacity: 0.8; }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.hint { font-size: 0.8rem; color: var(--muted); }
.checkbox-field { align-content: end; }
.checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.85rem;
  font-size: var(--text-small);
  font-weight: 400;
}
.checkbox input { width: 1.1rem; min-height: 1.1rem; }

.notice {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  background: var(--surface);
}
.notice.error { border-color: color-mix(in oklab, var(--danger) 55%, var(--line)); background: var(--danger-soft); color: var(--danger); }
.notice.success { border-color: color-mix(in oklab, var(--success) 45%, var(--line)); background: var(--success-soft); color: var(--success); }

.form-status {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-small);
}
.form-status.error { border-color: color-mix(in oklab, var(--danger) 55%, var(--line)); color: var(--danger); background: var(--danger-soft); }

.booking-success {
  display: grid;
  gap: var(--space-sm);
  justify-items: start;
}
.booking-success[hidden] { display: none; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}
.booking-success h3 { font-size: 1.8rem; }
.booking-success p { color: var(--muted); }

.contacts-section { background: var(--surface); border-top: 1px solid var(--line); }
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.contacts-grid h2 { margin-bottom: var(--space-md); max-width: 14ch; }
.contacts-grid p { color: var(--muted); }
.contacts-facts {
  display: grid;
  gap: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--line);
}
.contacts-facts dt { font-size: 0.75rem; color: var(--muted); }
.contacts-facts dd { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }

/* footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-lg);
}
.footer-inner {
  display: flex;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.footer-meta { color: var(--muted); font-size: var(--text-small); }
.footer-meta a { color: var(--muted); }

/* simple pages ------------------------------------------------------------ */
.page-section { padding-block: clamp(2.6rem, 7vw, 5rem); min-height: 60vh; }
.page-section h1 { margin-bottom: var(--space-sm); max-width: 18ch; }
.page-lede { color: var(--muted); margin-bottom: var(--space-lg); max-width: 52ch; }
.page-icon { margin-bottom: var(--space-sm); }
.detail-list {
  display: grid;
  gap: 0;
  margin-bottom: var(--space-lg);
  border-top: 1px solid var(--line);
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--line);
}
.detail-list dt { color: var(--muted); font-size: var(--text-small); }
.detail-list dd { font-weight: 700; text-align: right; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-md); }
.login-form { display: grid; gap: var(--space-md); max-width: 24rem; }
.login-section .notice { margin-bottom: var(--space-md); }

/* staff ------------------------------------------------------------------- */
.staff-section { padding-block: clamp(1.8rem, 4vw, 3rem) var(--space-2xl); min-height: 70vh; }
.staff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.staff-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.filters {
  display: flex;
  gap: var(--space-sm);
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.filters .field { min-width: 10rem; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: 0; }
.cell-strong { display: block; font-weight: 700; }
.cell-muted { display: block; color: var(--muted); font-size: 0.82rem; text-decoration: none; }
.status-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  white-space: nowrap;
}
.status-new { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }
.status-confirmed { background: var(--success-soft); border-color: color-mix(in oklab, var(--success) 35%, var(--line)); }
.status-cancelled, .status-no_show { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 35%, var(--line)); }
.row-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; }
.catalog-form {
  display: grid;
  gap: var(--space-md);
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: var(--space-xl);
}
.catalog-form h2 { font-size: 1.4rem; }
.empty-state {
  padding: var(--space-xl) var(--space-md);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
}
.empty-state p { max-width: 44ch; margin-inline: auto; }

/* motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise var(--dur-mid) var(--ease-out) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 60ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 120ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 180ms; }
  /* The hero illustration is the mobile LCP element: never gate it behind an
     opacity animation, otherwise the paint waits for the whole entry sequence. */
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@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;
  }
}

/* responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .booking-grid,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art { order: -1; justify-items: start; }
  .wheel-art { width: min(70%, 22rem); }
  .hero h1 { max-width: 20ch; }
  .hero-actions { margin-bottom: var(--space-lg); }
  .about-grid h2,
  .contacts-grid h2 { max-width: 20ch; }
  .contacts-facts { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-md); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .rule { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); }
  .rule-icon { grid-row: span 2; margin: 0; }
  .rule h3 { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; }
  .site-nav, .staff-nav { gap: var(--space-sm); }
  .site-nav .subtle { display: none; }
  .hero { padding-block: var(--space-lg) var(--space-lg); }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .facts { gap: var(--space-md); }
  .catalog-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: var(--space-xs);
  }
  .catalog-row .button { grid-column: 1 / -1; justify-self: start; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .detail-list > div { flex-direction: column; gap: 0.2rem; }
  .detail-list dd { text-align: left; }
  .contacts-facts { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; gap: var(--space-2xs); }

  .data-table thead { display: none; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tr {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--line);
  }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.25rem 0;
    border: 0;
    text-align: right;
  }
  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    text-align: left;
    flex: none;
  }
  .data-table td:last-child { justify-content: flex-end; }
  .row-actions { justify-content: flex-end; }
}
