:root {
  --primary: #3F7A22; --primary-dark: #2F6B1E; --primary-light: #EAF5DF;
  --accent: #A4D57A; --text: #1B2A17; --text-secondary: #5C6B57;
  --bg: #F7FAF3; --border: #DDE7D5; --white: #fff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary-dark); }
.nav-links a.cta { background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 999px; }
.nav-links a.cta:hover { background: var(--primary-dark); color: #fff; }

main { padding: 36px 0 72px; }
.crumbs { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.crumbs a { color: var(--text-secondary); }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.page-head p { color: var(--text-secondary); font-size: 17px; margin-top: 10px; max-width: 720px; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.meta { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.prose h2 { font-size: 23px; font-weight: 800; line-height: 1.3; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 6px; }
.prose p, .prose li, .prose td, .prose th { font-size: 16.5px; color: #33402E; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--primary-light); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 18px 0; }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.prose th { background: var(--primary-light); color: var(--text); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.post-img { width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 640/336; object-fit: cover; margin: -24px -24px 6px; border-radius: 18px 18px 0 0; display: block; background: var(--primary-light); }
.hero-img { margin: 0 0 26px; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; border-radius: 14px; display: block; background: var(--primary-light); }
.hero-img figcaption { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.hero-img figcaption a { color: var(--text-secondary); }
.post { overflow: hidden; }
.post:hover { border-color: var(--primary); transform: translateY(-2px); }
.post h2, .post h3 { font-size: 19px; font-weight: 800; line-height: 1.35; color: var(--text); }
.post p { font-size: 14.5px; color: var(--text-secondary); }
.post .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--primary); }
.cat-title { font-size: 22px; font-weight: 800; margin: 36px 0 16px; }
.related { margin-top: 40px; }
.related h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--primary-light); }
.nav-mobile-panel { position: absolute; right: 0; top: 52px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 8px; min-width: 220px; box-shadow: 0 12px 32px rgba(27,42,23,.14); display: flex; flex-direction: column; }
.nav-mobile-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.nav-mobile-panel a:hover, .nav-mobile-panel a[aria-current="page"] { background: var(--primary-light); color: var(--primary-dark); }

footer { background: #1B2A17; color: #B9C6B0; padding: 56px 0 28px; font-size: 14px; }
footer a { color: #B9C6B0; text-decoration: none; }
footer a:hover { color: #EAF5DF; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-grid h4 { color: #F7FAF3; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-grid p { max-width: 320px; line-height: 1.6; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #F7FAF3; font-weight: 800; font-size: 17px; }
.footer-logo img { height: 36px; width: auto; }
.footer-bottom { border-top: 1px solid #33472B; margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; color: #9CAF93; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card { padding: 22px; border-radius: 16px; }
  .page-head h1 { font-size: 26px; }
}
