:root {
  --brand: #F07B42;
  --accent: #1f2522;
  --ink: #1f2522;
  --bg: #f4f6f2;
  --muted: #6b726f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.site-header, .admin-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; }
.logo { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
nav a { color: #fff; text-decoration: none; margin-left: .8rem; font-size: .95rem; }

main { padding: 1.6rem 0 2.2rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: center; }
.hero img, .card img, .product img { width: 100%; border-radius: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card {
  background: #fff;
  border: 1px solid #e7ece8;
  border-radius: 12px;
  padding: .8rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  padding: .6rem .85rem;
  font-weight: 600;
  cursor: pointer;
}

.form, .filter { display: grid; gap: .5rem; max-width: 760px; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfd6d1;
  border-radius: 8px;
  padding: .58rem .68rem;
}
textarea { min-height: 100px; }

table { width: 100%; border-collapse: collapse; margin-top: .8rem; background: #fff; }
th, td { border: 1px solid #e8ece9; padding: .55rem; text-align: left; vertical-align: top; }
.inline { display: inline-block; margin-right: .4rem; }

.alert { border-radius: 8px; padding: .65rem .72rem; margin-bottom: .5rem; }
.alert.ok { background: #d7efdf; color: #125528; }
.alert.ko { background: #f8d9d9; color: #7d1f1f; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.stats article { background: #fff; border: 1px solid #e8ece9; border-radius: 10px; padding: .7rem; }

.site-footer { background: var(--brand); color: #1f2522; padding: 1.8rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.site-footer a { color: #1f2522; }
.seo-long p { line-height: 1.6; color: #2a3330; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  nav a { margin: 0 .7rem .4rem 0; display: inline-block; }
}
