@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --border: #e6ece8;
  --text: #0f1412;
  --muted: #5c6661;
  --accent: #1d6f42;
  --accent-h: #155233;
  --accent-lt: #e8f5ee;
  --r: 14px;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(112deg, #eefaf6 0%, #f8f6ef 56%, #f6eee3 100%);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

.help-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.help-header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.help-logo img { height: 36px; width: auto; }
.help-header-nav { display: flex; gap: 20px; }
.help-header-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.help-header-nav a[aria-current="page"],
.help-header-nav a:hover { color: var(--text); }

.help-wrap { max-width: 880px; margin: 0 auto; padding: 48px 20px 80px; }

.help-hero { text-align: center; margin-bottom: 36px; }
.help-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.help-hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.help-search {
  display: flex; gap: 8px; max-width: 640px; margin: 0 auto 48px;
  background: #f1f3f0; border-radius: 999px; padding: 6px 6px 6px 20px;
  border: 1px solid var(--border);
}
.help-search input {
  flex: 1; border: 0; background: transparent; font: inherit;
  outline: none; min-width: 0; color: var(--text);
}
.help-search button {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.help-search button:hover { background: var(--accent-h); }
.help-search svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.help-cards {
  display: flex; flex-direction: column; gap: 22px;
}
.help-cards[hidden],
.help-results[hidden],
#help-empty[hidden] { display: none !important; }
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px 18px;
  box-shadow: 0 8px 30px -18px rgba(15,20,18,.12);
}
.help-card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.help-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-lt); color: var(--accent);
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.help-card h2 {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
}
.help-card ul { list-style: none; }
.help-card li { border-top: 1px solid #f0f2ee; }
.help-card li a {
  display: block; padding: 10px 0; color: var(--text); font-size: 15px;
}
.help-card li a:hover { color: var(--accent); }
.help-card .extra { display: none; }
.help-card.is-open .extra { display: block; }
.help-more {
  margin-top: 8px; background: none; border: 0; color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.help-more:hover { color: var(--accent-h); }

.help-results { display: none; }
.help-results.is-on { display: block; }
.help-results h2 {
  font-family: var(--display); font-size: 1.1rem; margin-bottom: 12px;
}
.help-results ul { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 20px; }
.help-results li a { display: block; padding: 12px 0; color: var(--text); border-top: 1px solid #f0f2ee; }
.help-results li:first-child a { border-top: 0; }
.help-empty {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 24px; color: var(--muted); text-align: center;
}

.help-footer {
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 40px 20px 28px;
  background: rgba(255,255,255,.45);
}
.help-footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 700px) {
  .help-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.help-footer h4 { font-family: var(--display); font-size: 14px; margin-bottom: 10px; }
.help-footer ul { list-style: none; }
.help-footer li { margin: 6px 0; }
.help-footer a { color: var(--muted); font-size: 14px; }
.help-legal { text-align: center; font-size: 12px; color: #a8b0ab; margin-top: 28px; }

/* Article */
.back-link {
  display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 22px;
}
.article-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.article-intro { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.owner-note {
  display: inline-block; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-lt); border: 1px solid #cfe6d8;
  border-radius: 999px; padding: 4px 10px;
}
.step { margin: 32px 0; }
.step h2 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 8px;
}
.step p { margin-bottom: 14px; }
.step figure {
  margin: 12px 0 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #f4f5f2;
}
.step figure img { width: 100%; }
.step figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px; background: #fff; }

.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { font-family: var(--display); font-size: 1.05rem; margin-bottom: 12px; }
.related ul { list-style: none; }
.related li { margin: 8px 0; }

.crumbs {
  margin-top: 36px; font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.legal-doc h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal-doc h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}
.legal-doc p,
.legal-doc li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-doc ul {
  padding-left: 1.15rem;
  margin-bottom: 12px;
}
.legal-doc a { font-weight: 500; }
.legal-contact {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  .help-wrap { padding: 28px 16px 56px; }
  .help-search { padding-left: 14px; }
  .legal-doc { padding: 28px 16px 56px; }
}
