
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #241A15;
  --muted: #6B5B53;
  --accent: #A85B2B;
  --accent-dark: #86451E;
  --border: #EAE2D7;
  --soft: #F3ECE2;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); text-decoration: none; }

.hero {
  position: relative; min-height: 430px; display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center; margin-bottom: 44px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(28,18,13,0.9) 0%, rgba(28,18,13,0.62) 60%, rgba(28,18,13,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 56px 0; }
.hero-badge {
  display: inline-block; background: rgba(168,91,43,0.92); color: #fff;
  font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 1.06rem; color: rgba(255,255,255,0.92); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: 0.18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); text-decoration: none; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(36,26,21,0.07); }
.card-img { width: 100%; height: 190px; object-fit: cover; background: var(--soft); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { background: var(--soft); color: var(--accent-dark); font-weight: 600; padding: 2px 9px; border-radius: 6px; font-size: 0.75rem; }
.card h3 { font-size: 1.12rem; line-height: 1.38; margin-bottom: 10px; }
.card h3 a { color: var(--text); }
.card p { font-size: 0.93rem; color: var(--muted); flex: 1; }

.article-wrap { max-width: 820px; margin: 36px auto 56px; }
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); line-height: 1.25; margin: 12px 0 14px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.prose h2 { font-size: 1.42rem; margin: 30px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.16rem; margin: 22px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.93rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--soft); font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--bg); padding: 14px 18px; margin: 20px 0; border-radius: 0 8px 8px 0; color: var(--muted); }

.tool-box {
  background: var(--surface); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 26px; margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(168,91,43,0.08);
}
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #D8CFC4;
  border-radius: 8px; font-size: 0.98rem; background: #fff;
}
.tool-result { background: var(--soft); border-radius: 10px; padding: 18px; margin-top: 16px; font-size: 1rem; }
.tool-result strong { color: var(--accent-dark); font-size: 1.12rem; }

.faq-box { margin-top: 32px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; background: var(--bg); }
.faq-item summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq-item p { padding: 0 18px 14px; color: var(--muted); margin: 0; }
.author-box {
  display: flex; gap: 18px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 28px;
}
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}

.related-box { margin-top: 36px; }
.site-footer { background: #1F1713; color: #D8CFC7; padding: 42px 0 28px; margin-top: 64px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #E8DFD7; font-size: 0.92rem; }
.cookie-bar {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 680px; margin: 0 auto;
  background: #241A15; color: #fff; padding: 16px 20px; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28); z-index: 100; font-size: 0.88rem;
}
@media (max-width: 680px) {
  .prose { padding: 20px; }
  .header-inner { flex-direction: column; padding: 12px 0; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}
