
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #4a7c4e;
  --green-dark: #2c3e2e;
  --green-light: #8bc34a;
  --bg: #f4f7f1;
  --border: #e0e6dc;
  --text: #2c3e2e;
  --muted: #5a6a5c;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
}
.logo span { color: var(--green-light); }

nav ul { display: flex; list-style: none; gap: 28px; }
nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--green); }

.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--green); }

/* Hero */
.hero {
  padding: 130px 0 110px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(244,247,241,.82) 0%, rgba(232,240,228,.72) 100%),
    url('img/hero.jpg')
    center/cover no-repeat;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: #3d6640; color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }

/* Sections */
section { padding: 80px 0; }
.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44,62,46,.08);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--green);
}
.card p { color: var(--muted); font-size: 15px; }
.card .price {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 40px 0 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 12px; color: var(--green); }
.prose p { margin-bottom: 18px; color: #3a4a3c; }
.prose ul { margin: 0 0 20px 22px; color: #3a4a3c; }
.prose li { margin-bottom: 8px; }
.prose img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 32px;
}

/* Form */
.form { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
.form input, .form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form textarea { min-height: 130px; resize: vertical; }
.form button { justify-self: start; }

/* Blog */
.post {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.post img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.post h3 { font-size: 22px; margin-bottom: 8px; }
.post .meta { color: #9aab9c; font-size: 13px; margin-bottom: 10px; }

/* Footer */
footer {
  background: var(--green-dark);
  color: #a8b8aa;
  padding: 60px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .3px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #a8b8aa; }
.footer-grid a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid #3a4a3c;
  padding-top: 24px;
  text-align: center;
  color: #7a8a7c;
  font-size: 13px;
}

/* Admin */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 60px 24px 90px; }
.admin-title { font-size: 28px; margin-bottom: 8px; }
.admin-sub { color: var(--muted); margin-bottom: 34px; }

.login-box {
  max-width: 380px;
  margin: 80px auto 0;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.login-box h1 { font-size: 22px; margin-bottom: 22px; }
.login-box .err {
  background: #fdecec; color: #b33939;
  padding: 10px 14px; border-radius: 6px;
  margin-bottom: 16px; font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.stat .label {
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 8px;
}
.stat .value {
  font-size: 34px; font-weight: 700; color: var(--green);
  line-height: 1;
}

.panel-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.panel-link a { color: #fff; font-weight: 600; text-decoration: underline; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
td { color: #3a4a3c; word-break: break-all; }
.ua { color: #8a9a8c; font-size: 12px; }

.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 80px 0 70px; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  nav ul.open { display: flex; }
  .burger { display: block; }
  .section-title { font-size: 26px; }
  .post { flex-direction: column; }
  .post img { width: 100%; height: 180px; }
}