:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #ffedd5;
  --accent: #0f766e;
  --ok: #15803d;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 10px 28px rgba(28, 25, 23, 0.06);
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  color: var(--ink);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff7ed;
  font-size: 0.85rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.linkish {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.linkish:hover { color: var(--ink); text-decoration: underline; }
.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  flex: 1;
}
.container-wide { width: min(1200px, 100%); }
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2rem 1.25rem 1.25rem;
  margin-top: auto;
}
.footer-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-note {
  width: min(1080px, 100%);
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.muted { color: var(--muted); }
.flash {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.flash-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff7ed !important;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-secondary {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--brand-soft); border-color: #fdba74; }
.btn-danger { background: var(--err); }
.btn-block { width: 100%; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { gap: 0.55rem; font-size: 0.85rem; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-panel {
  background: linear-gradient(155deg, #9a3412 0%, #c2410c 45%, #ea580c 100%);
  color: #fff7ed;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.hero-panel h2 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.hero-panel ul { margin: 0; padding-left: 1.1rem; }
.hero-panel li { margin: 0.35rem 0; }
.section { margin: 2.5rem 0; }
.section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.section-head h2 { margin: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28,25,23,0.1);
  text-decoration: none;
}
.card-cover {
  aspect-ratio: 4/3;
  background: #f5f5f4;
  position: relative;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: var(--brand-dark);
  font-size: 2.5rem;
  font-weight: 700;
}
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #fff;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}
.meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.price {
  margin: 0.55rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.auth-wrap {
  max-width: 420px;
  margin: 1.5rem auto;
}
.auth-wrap h1 { margin-top: 0; }
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #fdba74;
  border-color: #fb923c;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hint { font-size: 0.82rem; color: var(--muted); margin: 0.25rem 0 0; }
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.search-bar input { flex: 1; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.chip:hover, .chip.active {
  background: var(--brand-soft);
  border-color: #fdba74;
  color: var(--brand-dark);
  text-decoration: none;
}
.detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
}
.detail-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f5f4;
  aspect-ratio: 4/3;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover .cover-placeholder { min-height: 240px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.stat .label { color: var(--muted); font-size: 0.8rem; }
.stat .value { font-size: 1.35rem; font-weight: 750; margin-top: 0.2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  background: #f5f5f4;
  color: var(--muted);
}
.pill-ok { background: #dcfce7; color: #166534; }
.pill-warn { background: #ffedd5; color: #9a3412; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.prose { max-width: 65ch; }
.prose p { color: var(--muted); }
.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}
