:root {
  --ink: #17171c;
  --muted: #666b78;
  --line: #e4e7ee;
  --bg: #f5f6f8;
  --card: #ffffff;
  --accent: #315eea;
  --accent-soft: #eaf0ff;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 34px; margin: 0 0 22px; }
h2 { font-size: 24px; margin: 0 0 18px; }
h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.55; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-size: 22px; font-weight: 800; }
.topnav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topnav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #303440;
  font-size: 14px;
}
.topnav a:hover { background: var(--accent-soft); color: var(--accent); }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}
.landing {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
}
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 42px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.hero h1 { font-size: 58px; line-height: 1.04; max-width: 760px; }
.lead { font-size: 20px; max-width: 690px; }
.actions, .section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head { justify-content: space-between; margin-bottom: 16px; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.button.primary, button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.product-shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(23, 23, 28, .12);
}
.mini-top { font-weight: 800; margin-bottom: 14px; }
.mini-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mini-row b, .status {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.band { padding: 42px 0; border-top: 1px solid var(--line); }
.grid2, .grid3, .grid4, .stats {
  display: grid;
  gap: 16px;
}
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid3 h2, .grid4 h2 { grid-column: 1 / -1; }
.card, .grid3 article, .grid4 article, .stats article, .auth {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.stats span { display: block; color: var(--muted); margin-bottom: 8px; }
.stats strong { font-size: 30px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.notice { color: #067647; font-weight: 700; }
.alert { color: var(--danger); font-weight: 700; }
.muted, small { color: var(--muted); }
small { display: block; margin-top: 4px; }

.auth { max-width: 430px; margin: 58px auto; }
.form {
  display: grid;
  gap: 14px;
}
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.check input { width: auto; min-height: 0; }
.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions a, .row-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.schedule { display: grid; gap: 10px; }
.schedule-row {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 10px;
  align-items: center;
}

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .topnav { gap: 6px; }
  .topnav a { padding: 7px 8px; }
  .hero { min-height: auto; padding: 46px 0; grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .grid2, .grid3, .grid4, .stats, .filters { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; }
}
