﻿:root {
    --bg: #090909;
    --panel: #12100b;
    --panel-soft: #1a1710;
    --gold: #d7a935;
    --gold-soft: #ffe3a0;
    --text: #f6f1e7;
    --muted: #c9bea5;
    --line: rgba(215, 169, 53, 0.28);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Sarabun', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}
a { color: inherit; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(9, 9, 9, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 220px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); color: #050505; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; line-height: 1.35; max-width: 360px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.site-nav a { padding: 8px 11px; border: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-soft); border-color: var(--line); background: rgba(215, 169, 53, 0.08); }
.nav-toggle { display: none; background: transparent; color: var(--gold-soft); border: 1px solid var(--line); padding: 8px 12px; font: inherit; }
.hero {
    min-height: 520px;
    display: grid;
    align-items: end;
    padding: 90px clamp(18px, 6vw, 80px) 46px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(9,9,9,0.98), rgba(9,9,9,0.78) 52%, rgba(9,9,9,0.42)),
        repeating-linear-gradient(110deg, rgba(215,169,53,0.18) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 78% 28%, rgba(215,169,53,0.34), transparent 34%),
        #0b0b0b;
}
.hero-content { max-width: 980px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.hero-title { margin: 0; color: var(--gold-soft); font-size: clamp(28px, 4vw, 54px); line-height: 1.18; font-weight: 700; max-width: 920px; }
.hero-summary { max-width: 780px; color: var(--muted); font-size: 18px; }
.layout { width: min(1200px, calc(100% - 36px)); margin: 54px auto; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; }
.side-block { border: 1px solid var(--line); background: var(--panel); padding: 18px; }
.side-block h2 { margin: 0 0 12px; font-size: 18px; color: var(--gold-soft); }
.side-link { display: block; padding: 10px 0; border-top: 1px solid rgba(215,169,53,0.16); color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.55; }
.side-link.active, .side-link:hover { color: var(--gold-soft); }
.note p { margin: 0; color: var(--muted); font-size: 14px; }
.article-content { min-width: 0; width: 100%; background: #0e0d0a; border: 1px solid var(--line); padding: clamp(22px, 4vw, 54px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(215,169,53,0.18); }
.article-meta span { border: 1px solid var(--line); color: var(--gold-soft); padding: 7px 10px; background: rgba(18,16,11,0.72); font-size: 14px; line-height: 1.5; }
.article-content h1 { margin: 0 0 22px; color: #fff6de; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
.article-content h2 { margin: 36px 0 14px; color: var(--gold-soft); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.article-content h3 { margin: 28px 0 10px; color: var(--gold); font-size: 21px; line-height: 1.45; }
.article-content p { margin: 0 0 16px; color: #eee5d2; }
.article-content a { color: var(--gold-soft); word-break: break-word; }
.article-content ul { padding-left: 22px; color: #eee5d2; }
.table-wrap { width: 100%; overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line); background: rgba(9,9,9,0.42); }
.article-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.article-table th, .article-table td { padding: 12px 14px; border: 1px solid rgba(215,169,53,0.2); text-align: left; vertical-align: top; color: #eee5d2; }
.article-table th { color: #080808; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); font-weight: 800; }
.article-table tr:nth-child(even) td { background: rgba(215,169,53,0.05); }
.faq-line, .trust-box { border-left: 3px solid var(--gold); background: rgba(215,169,53,0.08); padding: 12px 14px; }
.internal-link-box { margin: 42px 0 0; padding: 20px; border: 1px solid var(--line); background: rgba(215,169,53,0.06); }
.internal-link-box h2 { margin-top: 0; }
.internal-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.internal-link-list a { display: grid; gap: 4px; padding: 14px; border: 1px solid rgba(215,169,53,0.22); background: rgba(9,9,9,0.42); text-decoration: none; }
.internal-link-list a:hover { border-color: var(--gold); background: rgba(215,169,53,0.1); }
.internal-link-list span { color: var(--gold); font-weight: 700; }
.internal-link-list strong { color: var(--text); line-height: 1.45; }
.trust-box { margin-top: 46px; }
.trust-box h2 { margin-top: 0; }
.related-section { width: min(1280px, calc(100% - 36px)); margin: 0 auto 68px; }
.related-section h2 { color: var(--gold-soft); font-size: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.related-card { display: grid; gap: 8px; min-height: 210px; padding: 18px; border: 1px solid var(--line); background: var(--panel-soft); text-decoration: none; }
.related-card:hover { border-color: var(--gold); transform: translateY(-2px); transition: 0.18s ease; }
.related-card span { color: var(--gold); font-weight: 700; }
.related-card strong { line-height: 1.45; }
.related-card small { color: var(--muted); line-height: 1.55; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 28px; padding: 30px clamp(18px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--muted); background: #070707; }
.site-footer h2 { margin: 0 0 12px; color: var(--gold-soft); font-size: 18px; line-height: 1.35; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.footer-block { min-width: 0; }
.footer-link-list { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-link-list a { color: var(--muted); border-bottom: 1px solid transparent; font-size: 14px; }
.footer-link-list a:hover, .footer-link-list a.active { color: var(--gold-soft); border-bottom-color: var(--gold); }
.footer-site { border-left: 1px solid var(--line); padding-left: 24px; }
.footer-silo-list { margin: 12px 0; }
.footer-utility { color: #8f886f; font-size: 13px; }
@media (max-width: 980px) {
    .site-header { align-items: flex-start; }
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; padding: 12px; background: #090909; border: 1px solid var(--line); justify-content: flex-start; }
    .site-nav.open { display: flex; }
    .sidebar { position: static; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .site-header { padding: 12px 16px; }
    .brand small { display: none; }
    .brand { min-width: auto; }
    .hero { min-height: 460px; padding-top: 76px; }
    .hero-title { font-size: 32px; }
    .article-content h1 { font-size: 28px; }
    .hero-summary { font-size: 16px; }
    .article-content { padding: 20px; }
    .internal-link-list { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-site { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
}
