:root {
  --bg: #F9F5F0;
  --surface: #FFFFFF;
  --text: #1F2A2E;
  --text-muted: #5C6B6F;
  --primary: #4A7043;
  --primary-dark: #3A5A35;
  --accent: #C38E6E;
  --accent-light: #E8D5C4;
  --border: #EDE5D9;
  --success: #4A7043;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 245, 240, 0.98);
  z-index: 200;
  padding: 2rem;
  flex-direction: column;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .close-btn {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.mobile-menu li {
  margin-bottom: 1.5rem;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #F9F5F0 0%, #F0E9DF 100%);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.decorative-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.08;
}

.shape-1 {
  width: 420px;
  height: 420px;
  background: var(--primary);
  top: -120px;
  right: -80px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: -60px;
  left: 10%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.1);
}

.card.large {
  grid-column: span 1;
}

@media (min-width: 1025px) {
  .card.large {
    grid-column: span 2;
  }
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.75rem;
}

.card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}

.card .read-more:hover {
  gap: 0.75rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.topic-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.topic-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.topic-card h4 {
  margin-bottom: 0.75rem;
}

.topic-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-page .article-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.article-page .article-header h1 {
  font-size: 2.85rem;
  max-width: 820px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-content h2 {
  font-size: 1.85rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content ul, .article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.75rem;
}

.article-content li {
  margin-bottom: 0.65rem;
}

.article-content blockquote {
  border-left: 5px solid var(--accent);
  padding-left: 1.75rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.related-articles {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.form {
  max-width: 620px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 1.05rem;
  background: var(--surface);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(74, 112, 67, 0.08);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thanks-content {
  max-width: 520px;
}

.checkmark {
  width: 110px;
  height: 110px;
  border-radius: 9999px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 3.5rem;
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2.75rem;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4.25rem;
  font-weight: 800;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.divider {
  height: 5px;
  width: 70px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
  margin: 2rem 0;
}