:root {
  --bg: #f5f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ee;
  --panel: #ffffff;
  --green: #15803d;
  --green-dark: #166534;
  --blue: #0f7490;
  --amber: #b45309;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(25, 36, 64, .10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5f1 0, var(--bg) 340px);
}
a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 240px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { padding: 9px 12px; border-radius: 6px; color: var(--muted); font-weight: 650; font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--green-dark); background: #e9f6ee; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: 22px;
  align-items: stretch;
}
.hero-copy, .flow, .panel, .product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 38px; }
.hero h1, .page-head h1, .panel h1, .admin-head h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.panel h1, .admin-head h1 { font-size: clamp(1.9rem, 3vw, 3rem); }
h2 { margin: 10px 0 12px; font-size: clamp(1.35rem, 2.3vw, 2rem); }
h3 { margin: 18px 0 10px; }
p { color: var(--muted); line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--blue);
  background: #e8f6fa;
  border: 1px solid #c9e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  padding: 6px 10px;
  text-transform: uppercase;
}
.actions, .inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 750;
  cursor: pointer;
}
.btn.primary { background: var(--green); color: white; }
.btn.primary:hover { background: var(--green-dark); }
.btn.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.text-link { color: var(--green-dark); font-weight: 750; }
.flow { padding: 22px; display: grid; gap: 12px; }
.flow div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 7px;
  background: #f7faf8;
  border: 1px solid #e2ece6;
}
.flow b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 7px;
  color: white;
  background: var(--green);
}
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.panel { padding: 24px; }
.checks, .steps, .events { color: var(--muted); line-height: 1.8; padding-left: 20px; }
.page-head { margin-bottom: 18px; }
.page-head p { max-width: 760px; }
.toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}
.filter.active { background: #e9f6ee; color: var(--green-dark); border-color: #bfe7cd; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { padding: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 760;
  padding: 5px 9px;
  text-transform: uppercase;
}
.reservation-grid { align-items: start; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 680; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
textarea { resize: vertical; }
.upload { border: 1px dashed #a9c7b5; background: #f7fbf8; border-radius: 7px; padding: 14px; }
.upload input { border: 0; padding: 0; min-height: 0; background: transparent; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 500; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.muted { color: var(--muted); }
.alert {
  padding: 12px 14px;
  border-radius: 7px;
  margin: 12px 0;
  border: 1px solid transparent;
}
.alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.success { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.side-info { position: sticky; top: 86px; }
.narrow { max-width: 620px; margin: 0 auto; }
.status-card { margin-top: 16px; }
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.metric strong { display: block; font-size: 2rem; }
.metric span { color: var(--muted); }
.table-panel { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; background: #f8fafc; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.details {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 14px;
}
.details dt { color: var(--muted); font-weight: 760; }
.details dd { margin: 0; }
.events small { display: block; color: var(--muted); }
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 940px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .grid.two, .catalog-grid, .metrics { grid-template-columns: 1fr; }
  .side-info { position: static; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .hero-copy, .panel, .flow, .product-card { padding: 18px; }
  .details { grid-template-columns: 1fr; }
  .inline-form { display: grid; }
}
