:root {
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-primary: #6b7c5e;
  --color-primary-dark: #4a5a3d;
  --color-accent: #c49a6c;
  --color-text: #3a3632;
  --color-text-muted: #6e6861;
  --color-border: #e8e4dc;
  --color-focus: #3a5040;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(58, 54, 50, 0.06);
  --shadow-hover: 0 8px 24px rgba(58, 54, 50, 0.1);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: var(--font-body);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-variant: condensed;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary-dark);
}
h1 { font-size: clamp(1.8rem, 1.4rem + 2.5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: var(--space-md); }
li { margin-bottom: 0.5rem; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-surface); }
.grid-auto { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-asym { display: grid; gap: var(--space-lg); grid-template-columns: 1.2fr 0.8fr; }
@media (max-width: 860px) { .grid-asym { grid-template-columns: 1fr; } }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 240, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; vertical-align: middle; }
.nav ul { display: flex; gap: var(--space-md); list-style: none; }
.nav a { padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); transition: background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(107, 124, 94, 0.08); color: var(--color-primary-dark); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Footer */
.site-footer { background: var(--color-text); color: #d6d1ca; padding: var(--space-xl) 0 var(--space-lg); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { color: #fff; margin-bottom: var(--space-sm); font-variant: condensed; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--space-lg); padding-top: var(--space-md); text-align: center; font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-md);
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* Cards */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.6rem; }
.card-btn { margin-top: var(--space-sm); font-size: 0.95rem; color: var(--color-primary); font-weight: 500; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(107, 124, 94, 0.06); font-weight: 600; color: var(--color-primary-dark); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(247, 245, 240, 0.5); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
summary {
  padding: 1.1rem 0; cursor: pointer; font-weight: 600; color: var(--color-primary-dark);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.2rem; color: var(--color-text-muted); line-height: 1.7; }

/* SVG Animations */
.svg-icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { 0%, 100% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.02); } }
.animate-draw { animation: draw 8s ease-in-out infinite; }
.breathe-effect { animation: breathe 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-draw, .breathe-effect { animation: none !important; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
