/* design: hallmark-design-floor — пекарня «Хлеб83», тёплая витрина: типографика, воздух и один акцент «корка» вместо фотографий */
/* critique: асимметричная витрина, серифный заголовок, спокойные нейтралы, все значения из токенов; проверено в светлой и тёмной теме */
:root {
  --bg: #faf5eb;
  --surface: #fffdf7;
  --surface-2: #f4ebdc;
  --surface-3: #efe3d1;
  --ink: #241c15;
  --muted: #6a5a4a;
  --line: #e1d3bf;
  --line-strong: #8c7357;
  --accent: #a9501e;
  --accent-strong: #8b3f14;
  --accent-soft: #f0ddc8;
  --accent-ink: #fff9f1;
  --ok: #2c5e3b;
  --ok-soft: #e3efe5;
  --err: #9b2c1e;
  --err-soft: #f7e4df;
  --focus: #1f5f8b;
  --shadow: 0 18px 50px -30px rgb(70 40 18 / 0.35);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "DejaVu Sans", Arial, sans-serif;

  --step-0: 1rem;
  --step-1: clamp(1.06rem, 1.01rem + 0.2vw, 1.18rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.85vw, 1.9rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.15rem);
  --step-4: clamp(2.75rem, 1.65rem + 4.6vw, 5.1rem);

  --space-1: 0.35rem;
  --space-2: 0.6rem;
  --space-3: 0.9rem;
  --space-4: 1.3rem;
  --space-5: 1.9rem;
  --space-6: 2.8rem;
  --space-7: 4rem;
  --space-8: clamp(4rem, 3rem + 4vw, 6.5rem);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #211b16;
    --surface-2: #2a221b;
    --surface-3: #332920;
    --ink: #f4ebdd;
    --muted: #b9a895;
    --line: #3b3027;
    --line-strong: #a98f6f;
    --accent: #e69a5c;
    --accent-strong: #f0b27c;
    --accent-soft: #3a2a1d;
    --accent-ink: #241204;
    --ok: #8fd3a6;
    --ok-soft: #20301f;
    --err: #f29a8a;
    --err-soft: #3a211d;
    --focus: #8cc7f0;
    --shadow: 0 18px 50px -30px rgb(0 0 0 / 0.7);
  }
}

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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--accent-strong);
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip:focus {
  left: 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;
}

.muted {
  color: var(--muted);
}

/* ---- brand and buttons ---- */

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.btn-small {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
}

.btn-danger {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--err);
}

.btn-danger:hover {
  background: var(--err-soft);
  border-color: var(--err);
  color: var(--err);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---- fields ---- */

.field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

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

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink);
}

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

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

.field-error {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--err);
}

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

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* ---- notices ---- */

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  line-height: 1.4;
}

.notice-ok {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}

.notice-err {
  border-color: var(--err);
  background: var(--err-soft);
  color: var(--err);
}

/* ---- site header ---- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-nav .staff-link {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- hero ---- */

.hero {
  background:
    radial-gradient(60rem 32rem at 82% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(176deg, var(--surface-2), var(--bg) 72%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.6rem, 5vw, 5rem);
}

.hero-status {
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: var(--step-4);
  line-height: 1.05;
}

.hero-lead {
  max-width: 34ch;
  margin-top: var(--space-4);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.hero-facts div {
  min-width: 8rem;
}

.hero-facts dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.hero-art {
  margin: 0;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 999px 999px var(--r-md) var(--r-md);
}

/* ---- catalog ---- */

.catalog-band {
  padding-block: var(--space-8);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
}

.section-head h2 {
  font-size: var(--step-3);
  max-width: 16ch;
}

.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--step-1);
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
}

.item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  min-height: 210px;
}

.item-lead {
  background: linear-gradient(150deg, var(--accent-soft), var(--surface) 70%);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  min-height: 250px;
}

.item:nth-child(2) {
  margin-top: clamp(1rem, 4vw, 3rem);
}

.item-art {
  width: 100%;
  height: clamp(140px, 18vw, 190px);
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--accent-soft);
}

.item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.item-top h3 {
  font-size: var(--step-2);
}

.item-flag {
  flex: none;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: var(--muted);
}

.price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.price .unit {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.item-avail {
  font-size: 0.88rem;
  color: var(--muted);
}

.item-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.item-cta:hover {
  color: var(--accent-strong);
}

.empty {
  padding: var(--space-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}

/* ---- request ---- */

.request-band {
  padding-block: var(--space-8);
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.request-copy h2 {
  font-size: var(--step-3);
  max-width: 14ch;
}

.request-copy > p {
  max-width: 44ch;
  margin-top: var(--space-4);
  font-size: var(--step-1);
  color: var(--muted);
}

.request-hours {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.95rem !important;
}

.request-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
}

.lead-form {
  display: grid;
  gap: var(--space-3);
}

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

.form-status {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-err {
  color: var(--err);
}

/* ---- footer ---- */

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

.foot-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.foot-brand span {
  color: var(--accent);
}

.foot-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.foot-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 24px;
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- login ---- */

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 100svh;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(32rem 22rem at 20% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface-2);
  border-right: 1px solid var(--line);
}

.brand-large {
  font-size: clamp(2.4rem, 1.5rem + 3.5vw, 4.2rem);
}

.login-brand p {
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
}

.login-back {
  font-size: 0.95rem;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.login-inner {
  width: min(380px, 100%);
}

.login-inner h1 {
  font-size: var(--step-3);
  max-width: 14ch;
}

.login-lead {
  margin-top: var(--space-3);
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.login-hint {
  margin-top: var(--space-4);
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- panel ---- */

.panel-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.panel-head-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  min-height: 68px;
}

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

.panel-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  min-width: 0;
}

.panel-user-name {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.panel-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: var(--space-5);
  align-items: start;
}

.panel-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.15rem;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.panel-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.panel-nav a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.nav-count {
  min-width: 1.6rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.panel-main {
  min-width: 0;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: var(--space-3);
}

.stat {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

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

.stat-value {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat-value-small {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.35;
}

.panel-section {
  margin-top: var(--space-7);
  scroll-margin-top: 92px;
}

.panel-section:first-of-type {
  margin-top: var(--space-5);
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.section-row h2 {
  font-size: var(--step-2);
}

.section-note {
  max-width: 52ch;
  font-size: 0.9rem;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  contain: paint;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.panel-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.panel-table th {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.panel-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.panel-table .num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.comment-cell {
  max-width: 30ch;
  overflow-wrap: anywhere;
}

.empty-cell {
  padding: var(--space-5) !important;
  text-align: center;
  color: var(--muted);
}

.phone-link {
  color: var(--ink);
}

.status-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  white-space: nowrap;
}

.status-new {
  border-color: var(--accent);
  color: var(--accent);
}

.status-in_progress {
  color: var(--ink);
  background: var(--surface-2);
}

.status-done {
  border-color: var(--ok);
  color: var(--ok);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.inline-form select {
  width: auto;
  min-width: 9rem;
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.row-form {
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) 7rem 5rem auto auto;
  align-items: center;
  gap: 0.5rem;
}

.row-form input {
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
}

.create-form {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) 8rem 6rem auto auto;
  align-items: end;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.create-form h3 {
  grid-column: 1 / -1;
  font-size: 1.2rem;
}

.create-form input {
  min-height: 44px;
}

.content-list {
  display: grid;
  gap: var(--space-3);
}

.content-row {
  display: grid;
  grid-template-columns: 120px minmax(8rem, 1fr) minmax(10rem, 1.3fr) minmax(8rem, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.content-id {
  padding-bottom: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.content-row input,
.content-row textarea {
  min-height: 44px;
  font-size: 0.92rem;
}

.notice-list,
.history-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.notice-item,
.history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child,
.history-item:last-child {
  border-bottom: 0;
}

.notice-item p,
.history-item p {
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

/* ---- responsive ---- */

@media (max-width: 980px) {
  .hero-grid,
  .request-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    order: -1;
    max-width: 430px;
  }

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

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

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

  .item:nth-child(2) {
    margin-top: 0;
  }

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

  .panel-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .panel-nav a {
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
  }

  .row-form {
    grid-template-columns: minmax(9rem, 1fr) 6.5rem 4.5rem;
  }

  .row-form .check,
  .row-form .btn {
    grid-column: auto;
  }

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

  .create-form .btn {
    grid-column: 1 / -1;
  }

  .content-row {
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  }

  .content-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

  .login-brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .site-head-inner {
    min-height: 64px;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .site-nav .staff-link {
    display: none;
  }

  .hero-grid {
    padding-block: 1.8rem 2.4rem;
  }

  .hero-facts {
    gap: var(--space-4);
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .panel-head-inner {
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    padding-block: 0.6rem;
  }

  .panel-title {
    display: none;
  }

  .panel-user-name {
    max-width: 14ch;
  }

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

  .row-form {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
  }

  .row-form input:nth-of-type(3) {
    grid-column: 1 / -1;
  }

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

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

  .content-row .btn {
    grid-column: auto;
  }

  .content-id {
    padding-bottom: 0;
  }

  .panel-table {
    min-width: 640px;
  }
}

/* ---- motion ---- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.hero-art {
  animation: rise-in 560ms var(--ease) both;
}

.hero-art {
  animation-delay: 90ms;
}

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

  .hero-copy,
  .hero-art {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}
