:root {
  --bg: #f4f7f2;
  --text: #0f1720;
  --muted: #5f6b67;
  --line: #dfe7df;
  --primary: #75c63b;
  --primary-dark: #264020;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 32, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 24px, 1120px); margin: 0 auto; }
.landing-page { background: #0f1712; }
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(14,23,18,.88), rgba(31,55,23,.84)),
              radial-gradient(circle at top right, rgba(117,198,59,.28), transparent 35%);
  position: relative;
  display: flex;
  align-items: center;
}
.hero__content { position: relative; z-index: 2; color: #fff; padding: 52px 0; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 4.8rem); line-height: 1; margin: 16px 0; text-transform: uppercase; letter-spacing: .02em; max-width: 10ch; }
.lead { font-size: 1.05rem; max-width: 640px; color: rgba(255,255,255,.85); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.brand-chip, .eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--primary); }
.section { padding: 32px 0 44px; }
.grid-cards, .stats-grid, .grid-two { display: grid; gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card, .stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2, .stat-card strong { margin: 0; }
.stat-card span { display: block; color: var(--muted); margin-bottom: 6px; }
.stat-card strong { font-size: 1.9rem; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,23,18,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.userbox { display: flex; align-items: center; gap: 12px; color: #fff; font-size: .95rem; }
.userbox a { color: var(--primary); font-weight: 700; }
.mobile-nav {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  padding: 10px 12px; background: #162219; position: sticky; top: 64px; z-index: 19;
}
.mobile-nav a {
  color: #fff; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 8px;
  text-align: center; font-size: .86rem;
}
.main-content { padding: 20px 0 36px; }
.page-header, .section-head, .filter-bar, .inline-form, .admin-item, .entry-item__top, .entry-meta, .input-row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.page-header { margin-bottom: 18px; }
.page-header h1 { margin: 6px 0 0; font-size: clamp(1.7rem, 5vw, 2.8rem); text-transform: uppercase; }
.btn {
  appearance: none; border: none; cursor: pointer; border-radius: 14px; padding: 14px 18px; font-weight: 800;
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: #13210f; }
.btn-secondary { background: #eef4eb; color: #15301a; border: 1px solid var(--line); }
.form, .filter-bar { display: grid; gap: 16px; }
label span { display: block; margin-bottom: 8px; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 16px; background: #fff;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-item { border-top: 1px solid var(--line); padding: 14px 0; }
.entry-item:first-child { border-top: 0; padding-top: 0; }
.entry-meta { justify-content: flex-start; color: var(--muted); font-size: .95rem; }
.entries-list { display: grid; gap: 10px; }
.text-link { color: #1c6b2f; font-weight: 700; }
.alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.alert-error { background: #fff1f1; color: #8a1f1f; border: 1px solid #efc5c5; }
.alert-success { background: #edf8e5; color: #214c18; border: 1px solid #cbe6bb; }
.muted { color: var(--muted); }
.list-admin { display: grid; gap: 10px; margin-top: 14px; }
.admin-item { padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .form > label:last-of-type, .form > button, .form > .alert { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { max-width: none; }
}

.topbar__right { display:flex; align-items:center; gap:12px; }
.landing-topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.lang-switch { display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); }
.lang-switch a { padding:8px 12px; border-radius:999px; color:#fff; font-weight:800; font-size:.85rem; }
.lang-switch a.is-active { background:#fff; color:#142126; }
.lang-switch--light { background:rgba(255,255,255,.1); }
@media (max-width: 767px) {
  .topbar__inner { align-items:flex-start; padding:10px 0; }
  .topbar__right { width:100%; justify-content:space-between; }
  .lang-switch a { padding:7px 10px; }
}
