:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --border: #e8e4dc;
  --border-dark: #d4cfc4;
  --text: #1a1814;
  --text-2: #4a4640;
  --muted: #6b6661;
  --accent: #1d6b44;
  --accent-light: #e8f3ed;
  --accent-mid: #2d8a58;
  --tag-bg: #f0ece4;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; min-height: 100vh; }

/* NAVIGATION */
nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; padding: 8px 0; display: inline-block; }
.nav-links a:hover { color: var(--accent); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: background 0.2s; flex-shrink: 0; }
.hamburger:hover { background: var(--tag-bg); }
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08); animation: slideDown 0.2s ease; }
.mobile-menu.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { display: flex; align-items: center; padding: 16px 20px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); transition: background 0.15s, color 0.15s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--bg); color: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* BREADCRUMB */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; padding: 8px 4px; display: inline-block; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border-dark); }

/* SIDEBAR */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.sidebar-card h3 { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.sidebar-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0; }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .sidebar-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 400px) { .sidebar-links { grid-template-columns: 1fr; } }
.sidebar-link { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.sidebar-link:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.sl-arrow { margin-left: auto; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.sidebar-link.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: rgba(29, 107, 68, 0.3); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: none; border: none; cursor: pointer; text-align: left; font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.15s; min-height: 48px; -webkit-tap-highlight-color: transparent; }
.faq-question:hover { background: var(--bg); }
.faq-item.open .faq-question { background: var(--accent-light); }
.faq-q-text { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; line-height: 1.4; }
.faq-item.open .faq-q-text { color: var(--accent); }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--tag-bg); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; font-weight: 700; transition: all 0.25s; }
.faq-item.open .faq-icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s ease; padding: 0 16px; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 16px 16px; }
.faq-answer p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* FOOTER */
footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 28px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.footer-col-title { font-size: 11px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-2); text-decoration: none; transition: color 0.2s; padding: 4px 0; display: inline-block; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 14px 16px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,0.08); padding: 16px; min-height: 60px; transform: translateY(100%); transition: transform 0.3s ease; }
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.cookie-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-options { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.cookie-option { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.cookie-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn-cookie-reject { background: none; border: 1px solid var(--border-dark); color: var(--text-2); padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.btn-cookie-reject:hover { background: var(--bg); }
.btn-cookie-accept { background: var(--accent); border: 1px solid var(--accent); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.btn-cookie-accept:hover { background: var(--accent-mid); }

/* SHARED SIMULATOR COMPONENTS */
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); animation: fadeUp 0.4s ease .05s both; }
.calc-card-header { background: linear-gradient(135deg, #1d6b44, #2d8a58); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.calc-card-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.calc-card-header h2 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.calc-card-header p { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.calc-body { padding: 20px; }

.info-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip { background: var(--accent-light); border: 1px solid rgba(29, 107, 68, 0.15); color: var(--accent); border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 500; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.field-hint { font-size: 10px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 3px; }

.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }
.input-suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.field input, .field select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field input.has-prefix { padding-left: 28px; }
.field input.has-suffix { padding-right: 44px; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 107, 68, 0.1); }

.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills input[type="radio"] { display: none; }
.radio-pills label { flex: 1; text-align: center; padding: 11px 16px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .18s; text-transform: none; letter-spacing: 0; display: block; min-width: 80px; }
.radio-pills input[type="radio"]:checked + label { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }

.calc-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, #1d6b44, #2d8a58); border: none; border-radius: 10px; color: #fff; font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; cursor: pointer; transition: all .2s; min-height: 52px; -webkit-tap-highlight-color: transparent; }
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29, 107, 68, 0.3); }

.error-box { margin-top: 12px; padding: 12px 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; font-size: 13px; color: #dc2626; display: none; }
.error-box.show { display: block; }

.result-box { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(29, 107, 68, 0.2); display: none; }
.result-box.show { display: block; animation: fadeUp .3s ease; }
.result-hero { background: linear-gradient(135deg, #1d6b44, #2d8a58); padding: 22px 20px; text-align: center; }
.result-hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; }
.result-hero-value { font-family: 'Fraunces', serif; font-size: clamp(34px, 9vw, 50px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.result-hero-sub { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: 6px; }
.result-body { background: var(--surface); padding: 14px 16px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.result-row:last-child { border-bottom: none; }
.result-row .rl { color: var(--muted); flex: 1; line-height: 1.4; font-size: 12px; }
.result-row .rv { font-weight: 600; color: var(--text); white-space: nowrap; flex-shrink: 0; font-size: 13px; }
.result-row .rv.green { color: var(--accent); }
.result-row .rv.amber { color: #b45309; }
.result-divider { height: 1px; background: var(--border); margin: 2px 0; }
.result-note { margin: 14px 0 0; padding: 12px 14px; background: var(--accent-light); border: 1px solid rgba(29, 107, 68, 0.15); border-radius: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.result-disclaimer { margin: 10px 0 0; padding: 11px 14px; background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b; border-radius: 8px; font-size: 12px; color: #78350f; line-height: 1.6; }
.result-disclaimer a { color: #78350f; font-weight: 600; }

.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; animation: fadeUp 0.4s ease both; }
@media (min-width: 600px) { .content-card { padding: 24px 28px; } }
.content-card h2 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; margin-bottom: 14px; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.content-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 16px 0 7px; }
.content-card p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 10px; }
.content-card ul { padding-left: 18px; margin-bottom: 10px; }
.content-card li { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 5px; }
.content-card a { color: var(--accent); text-decoration: none; }
.content-card strong { color: var(--text); font-weight: 600; }

.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.step-body strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.step-body span { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.warning-box { background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b; border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.warning-box p { color: #78350f; font-size: 13px; margin: 0; line-height: 1.6; }

.table-scroll-hint { font-size: 11px; color: var(--muted); margin-bottom: 8px; display: none; }
@media (max-width: 600px) { .table-scroll-hint { display: block; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }

/* GLOBAL LAYOUT CONTAINERS */
.page-wrapper, .page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 64px; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { .page-wrapper, .page-wrap { grid-template-columns: 1.6fr 1fr; } }

.main-col { display: flex; flex-direction: column; gap: 20px; }
.side-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; }
@media (max-width: 960px) { .side-col { position: static; } }

.page-header-wrap { border-bottom: 1px solid var(--border); background: var(--surface); margin-bottom: 32px; animation: fadeUp 0.5s ease both; }
.page-header { max-width: 1100px; margin: 0 auto; padding: 24px 16px 32px; }
.header-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); color: var(--accent); border: 1px solid rgba(29,107,68,0.15); padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.page-header h1 { font-family: 'Fraunces', serif; font-size: clamp(26px, 6vw, 42px); font-weight: 700; line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.02em; }
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header p { font-size: clamp(14px, 3.5vw, 16px); color: var(--text-2); max-width: 700px; line-height: 1.6; font-weight: 300; }
.author-byline { font-size: 12px; color: var(--muted); margin-top: 16px; font-weight: 400; }
.author-byline a { color: var(--muted); text-decoration: underline; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

