:root {
  --green: #087f5b;
  --accent: #f59e0b;
  --soft: #e8f7ef;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); font-size: 26px; font-weight: 900; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.search { flex: 1; display: flex; gap: 8px; }
.search input, input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { min-height: 180px; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn.secondary { background: #e2e8f0; color: var(--ink); }
.btn.danger { background: #dc2626; }
.nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; }
.nav a { border-radius: 999px; padding: 9px 15px; background: #f8fafc; color: #334155; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav a.active, .nav a:hover { background: var(--green); color: #fff; }
.support { display: block; margin-bottom: 14px; border: 1px solid #bbf7d0; background: #f0fdf4; color: var(--green); border-radius: 12px; padding: 13px; text-align: center; font-weight: 700; }
.main { padding: 28px 0 42px; }
.grid { display: grid; gap: 22px; }
.home-top { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(15,23,42,.06); }
.card:hover { transform: translateY(-2px); transition: .2s ease; }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 18px; }
.meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pill { background: var(--soft); color: var(--green); border-radius: 999px; padding: 5px 10px; }
.card h2, .card h3 { margin: 14px 0 8px; line-height: 1.25; }
.muted { color: var(--muted); }
.hero-card { min-height: 440px; position: relative; color: #fff; border-radius: 18px; overflow: hidden; background: #111827; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.hero-content { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.side-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.side-list article { border-bottom: 1px solid var(--line); padding: 14px 0; }
.side-list article:last-child { border-bottom: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 16px; }
.ad { border: 1px dashed #94a3b8; background: #f8fafc; border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); font-weight: 700; }
.newsletter { margin-top: 26px; background: #064e3b; color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: center; }
.footer { background: #0f172a; color: #cbd5e1; padding: 34px 0; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.article h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; margin: 10px 0; }
.article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: 14px; margin: 20px 0; }
.content-prose p { color: #334155; line-height: 1.8; margin: 0 0 18px; }
.content-prose h2, .content-prose h3 { margin-top: 28px; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f172a; color: #fff; padding: 24px; }
.admin-sidebar a { display: block; padding: 10px 0; color: #cbd5e1; font-weight: 700; }
.admin-main { padding: 28px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.notice { border-radius: 10px; padding: 12px; margin-bottom: 16px; background: var(--soft); color: var(--green); font-weight: 700; }
.errors { border-radius: 10px; padding: 12px; margin-bottom: 16px; background: #fee2e2; color: #991b1b; }
.pagination { margin-top: 20px; }

@media (max-width: 850px) {
  .header-row, .newsletter, .home-top, .cards, .form-grid, .admin-shell { grid-template-columns: 1fr; display: grid; }
  .search { width: 100%; }
  .admin-sidebar { position: static; }
}
