@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --bg: #07110d;
    --bg-soft: #0d1c17;
    --bg-card: rgba(16, 34, 28, 0.88);
    --bg-card-strong: #10251e;
    --primary: #00843D;
    --primary-light: #28b96c;
    --secondary: #FFCD00;
    --secondary-soft: #ffe27a;
    --ochre: #c76b2c;
    --text: #f6fbf7;
    --muted: #b6c9bf;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 24px;
    --radius-sm: 16px;
    --container: min(1160px, calc(100% - 32px));
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(0, 132, 61, 0.28), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(255, 205, 0, 0.14), transparent 25rem),
        linear-gradient(180deg, #06100c 0%, #0a1511 45%, #07110d 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.45rem, 8vw, 5.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); }
h3 { font-size: 1.22rem; }

.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--secondary); color: #111; padding: 10px 14px; border-radius: 12px; z-index: 999; }
.skip-link:focus { left: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(5, 14, 10, 0.78);
    border-bottom: 1px solid var(--line);
}
.nav-shell { width: var(--container); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #07110d; background: linear-gradient(135deg, var(--secondary), var(--primary-light)); box-shadow: 0 12px 34px rgba(255, 205, 0, 0.22); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--secondary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); font-weight: 700; padding: 10px 12px; border-radius: 999px; transition: .25s ease; }
.nav-links a:hover, .nav-links a.active { color: #07110d; background: var(--secondary); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

.hero { position: relative; overflow: hidden; padding: 104px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) 420px; gap: 44px; align-items: center; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 900; margin-bottom: 14px; }
.eyebrow span { background: rgba(255, 205, 0, 0.13); border: 1px solid rgba(255, 205, 0, 0.25); padding: 6px 10px; border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; padding: 13px 20px; font-weight: 900; border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--secondary); color: #09110d; box-shadow: 0 14px 34px rgba(255, 205, 0, 0.22); }
.btn-secondary { background: var(--primary-light); color: #06100c; box-shadow: 0 14px 34px rgba(40, 185, 108, 0.2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.trust-row svg { width: 17px; color: var(--secondary); }
.hero-panel, .feature-card, .result-panel, .contact-card, .article-sidebar, .tool-panel, .blog-card, .info-card, .official-links a, .region-card, .cta-panel, .editorial-panel {
    background: linear-gradient(145deg, rgba(20, 43, 35, 0.92), rgba(10, 24, 19, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-panel { padding: 26px; position: relative; }
.panel-badge { display: inline-flex; background: var(--primary); color: white; border-radius: 999px; padding: 7px 12px; font-weight: 900; margin-bottom: 16px; }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.steps-list li { position: relative; padding-left: 48px; }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary); color: #06100c; font-weight: 900; }
.steps-list strong, .steps-list span { display: block; }
.steps-list span { color: var(--muted); font-size: .94rem; }
.hero-bg-orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .35; pointer-events: none; }
.orb-one { width: 220px; height: 220px; background: var(--secondary); right: -70px; top: 120px; }
.orb-two { width: 300px; height: 300px; background: var(--primary); left: -110px; bottom: -120px; }

.section { padding: 78px 0; }
.page-hero { padding: 96px 0 54px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, rgba(255,205,0,.12), transparent 28rem); }
.split-layout, .official-grid, .guide-intro, .contact-grid, .tool-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 32px; align-items: start; }
.split-layout.reverse { grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr); }
.feature-card, .result-panel, .tool-panel, .contact-card, .article-sidebar { padding: 28px; }
.stacked-card { transform: rotate(1deg); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--muted); }
.tick-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--secondary); font-weight: 900; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.wide-heading { max-width: 920px; }
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card, .info-card, .blog-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.045); transition: transform .25s ease, border-color .25s ease; }
.tool-card:hover, .info-card:hover, .blog-card:hover { transform: translateY(-4px); border-color: rgba(255, 205, 0, .45); }
.tool-card svg { width: 34px; height: 34px; color: var(--secondary); margin-bottom: 12px; }
.tool-card a, .blog-card a, .small-official, .guide-actions a { color: var(--secondary); font-weight: 900; }
.region-band { background: linear-gradient(90deg, rgba(0,132,61,.18), rgba(255,205,0,.08)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.region-grid a { min-height: 88px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: end; font-weight: 900; background: rgba(255,255,255,.045); }
.region-grid a:hover { background: var(--secondary); color: #07110d; }
.official-links { display: grid; gap: 14px; }
.official-links a { padding: 18px; display: grid; gap: 4px; }
.official-links span { font-weight: 900; color: var(--secondary); }
.official-links small { color: var(--muted); }
.cta-panel { padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(135deg, rgba(255,205,0,.15), rgba(0,132,61,.2)); }

.checklist-form, .calculator { display: grid; gap: 14px; margin-top: 22px; }
.checklist-form label, .calculator label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
.checklist-form label { grid-template-columns: 22px 1fr; align-items: start; }
input, select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; }
select option { background: #10251e; color: var(--text); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--secondary); margin-top: 4px; }
.result-panel.big-number { display: grid; place-items: center; text-align: center; min-height: 330px; }
.big-number span { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; font-family: var(--font-display); color: var(--secondary); line-height: .9; }

.region-card-stack { display: grid; gap: 18px; }
.region-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 22px; padding: 26px; scroll-margin-top: 100px; }
.state-tag, .blog-card span { display: inline-flex; color: #07110d; background: var(--secondary); border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.guide-actions { display: grid; gap: 10px; }
.guide-actions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.guide-actions svg { width: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card h2 { font-size: 1.45rem; }
.editorial-panel { padding: 28px; }
.article-content { display: grid; gap: 28px; }
.article-content section { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-sidebar { position: sticky; top: 110px; }
.article-sidebar .btn { margin: 18px 0 12px; width: 100%; }
.contact-card svg { width: 44px; height: 44px; color: var(--secondary); margin-bottom: 16px; }
.email-link { display: inline-flex; color: var(--secondary); font-size: 1.18rem; font-weight: 900; word-break: break-word; }
.legal-content { max-width: 880px; display: grid; gap: 26px; }
.legal-content section { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.04); }

.site-footer { margin-top: 60px; padding: 54px 0 24px; border-top: 1px solid var(--line); background: #050d09; }
.footer-grid { width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .7fr 1fr 1.1fr; gap: 28px; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; }
.footer-grid a:not(.brand):not(.btn) { display: block; color: var(--muted); margin: 9px 0; }
.footer-grid a:hover { color: var(--secondary); }
.footer-callout { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.footer-bottom { width: var(--container); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--secondary); }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .hero-grid, .split-layout, .split-layout.reverse, .official-grid, .guide-intro, .contact-grid, .tool-layout, .article-layout, .region-card { grid-template-columns: 1fr; }
    .card-grid.three, .blog-grid { grid-template-columns: 1fr 1fr; }
    .region-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-sidebar { position: static; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links { position: absolute; left: 16px; right: 16px; top: 82px; display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #07110d; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links a { border-radius: 14px; }
    .hero, .page-hero { padding-top: 64px; }
    .section { padding: 54px 0; }
    .hero-actions, .cta-panel, .footer-bottom { align-items: stretch; flex-direction: column; }
    .btn { width: 100%; }
    .card-grid.three, .blog-grid, .region-grid, .footer-grid { grid-template-columns: 1fr; }
    .stacked-card { transform: none; }
}