:root {
  --bg: #f5f7f1;
  --bg-strong: #edf3ea;
  --surface: #ffffff;
  --surface-alt: #eef4ee;
  --primary: #2b6a4b;
  --primary-dark: #1f4f3a;
  --primary-soft: #dfeee2;
  --accent: #d5df70;
  --accent-strong: #bfd65d;
  --text: #1d2a22;
  --muted: #5d6d66;
  --line: #dfe7df;
  --shadow: 0 18px 45px rgba(29, 42, 34, 0.12);
  --shadow-soft: 0 10px 22px rgba(29, 42, 34, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.small-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 247, 241, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(186, 203, 190, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #7ea66a 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 42px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.btn,
button[type="submit"],
button[type="button"],
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.45rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:hover,
button[type="submit"]:hover,
button[type="button"]:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(135deg, var(--primary) 0%, #3d7c59 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(43, 106, 75, 0.26);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255,255,255,0.18);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(245, 247, 241, 0.88), rgba(237, 243, 234, 0.94)),
    url("https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy p {
  font-size: 1.06rem;
  margin-bottom: 1.7rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-box {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(211, 225, 213, 0.7);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  min-width: 130px;
}

.stat-box strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.hero-visual {
  position: relative;
  padding: 1.5rem;
}

.hero-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(211, 225, 213, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.hero-card-body small {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  max-width: 600px;
}

.grid-3,
.grid-4,
.category-grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.article-card,
.category-tile,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media img,
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body,
.article-card-body {
  padding: 1.3rem 1.25rem 1.6rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body h3,
.article-card-body h3 {
  margin-bottom: 0.6rem;
}

.card-body p,
.article-card-body p {
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 700;
  color: var(--primary);
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-tile {
  padding: 1.5rem;
  min-height: 170px;
  background: linear-gradient(180deg, #ffffff, #f1f7f1);
}

.category-tile strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ad-slot {
  border: 1px dashed rgba(43, 106, 75, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(223, 238, 226, 0.7), rgba(255, 255, 255, 0.7));
  padding: 1.6rem 1.4rem;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(148, 175, 151, 0.12), rgba(245, 247, 241, 0));
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.search-wrap {
  flex: 1 1 260px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.9rem 1rem 0.9rem 2.9rem;
  color: var(--text);
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--primary-soft);
  border-color: rgba(43, 106, 75, 0.3);
  color: var(--primary-dark);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.article-card[hidden] {
  display: none !important;
}

.load-more-wrap {
  margin-top: 2rem;
  text-align: center;
}

.articles-shell,
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
}

.article-content p,
.article-content li {
  color: #2f3b35;
  font-size: 1.04rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.55rem;
  border-left: 4px solid var(--primary);
  background: var(--surface-alt);
  border-radius: 0 14px 14px 0;
  color: var(--text);
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

.sidebar {
  display: grid;
  gap: 1.4rem;
}

.info-card {
  padding: 1.3rem 1.25rem;
}

.info-card h3 {
  margin-bottom: 0.8rem;
}

.info-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.quick-facts {
  display: grid;
  gap: 0.7rem;
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  font-size: 0.94rem;
}

.related-links {
  display: grid;
  gap: 0.7rem;
}

.related-links a {
  color: var(--primary-dark);
  font-weight: 700;
}

.footer {
  background: #172822;
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255,255,255,0.78);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.policy-page,
.contact-page {
  padding: 3.5rem 0 5rem;
}

.policy-page .article-content {
  padding: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 1.2rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9faf8;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--text);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(43, 106, 75, 0.18);
  border-color: rgba(43, 106, 75, 0.45);
}

.form-message {
  margin-top: 1rem;
  min-height: 22px;
  font-weight: 700;
}

.form-message.error {
  color: #8d2c2c;
}

.form-message.success {
  color: #2d6c45;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  display: none;
  background: rgba(23, 40, 34, 0.96);
  color: #eefaf2;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-actions button {
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.cookie-actions .secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

.hidden {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s ease both;
}

@media (max-width: 980px) {
  .hero-grid,
  .articles-shell,
  .content-shell,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .article-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .grid-3,
  .grid-4,
  .article-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .section-head {
    display: block;
  }

  .filter-toolbar {
    align-items: stretch;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
  }
}
