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

:root {
    --primary: #36c866;
    --primary-dark: #1E8E3E;
    --primary-deep: #0b3d22;
    --secondary: #F9C74F;
    --secondary-dark: #d89d18;
    --ink: #f4fff7;
    --muted: #b8c8be;
    --muted-strong: #d7e7dd;
    --line: rgba(188, 216, 195, 0.18);
    --paper: #122018;
    --paper-2: #17281f;
    --soft: #0f1b14;
    --soft-2: #0b1510;
    --sun-soft: rgba(249, 199, 79, 0.13);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --glow: 0 0 44px rgba(54, 200, 102, 0.16);
    --radius: 24px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(54, 200, 102, 0.18), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(249, 199, 79, 0.16), transparent 28%),
        linear-gradient(180deg, #07110c 0%, #0b1510 42%, #101c15 100%);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(249, 199, 79, 0.32); color: #ffffff; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--secondary); color: #1a1608; padding: 10px 14px; border-radius: 12px; z-index: 20; font-weight: 800; }
.skip-link:focus { left: 8px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 17, 12, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.nav-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-family: Manrope, sans-serif; font-size: 1.1rem; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--secondary); box-shadow: 0 12px 34px rgba(54,200,102,.26); }
.brand-mark svg { width: 21px; height: 21px; }
.main-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; align-items: center; }
.main-menu a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; transition: .25s ease; }
.main-menu a:hover, .main-menu a:focus { background: rgba(54, 200, 102, 0.12); color: var(--secondary); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 12px; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }

h1, h2, h3 { font-family: Manrope, Inter, sans-serif; line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.035em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 5.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 18px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--secondary); background: rgba(249, 199, 79, 0.1); border: 1px solid rgba(249, 199, 79, 0.26); padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.hero, .section, .page-hero, .article-hero { max-width: var(--max); margin: 0 auto; padding: 78px 20px; }
.hero-home { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 42px; align-items: center; min-height: 760px; }
.hero-content p { font-size: 1.16rem; max-width: 720px; color: var(--muted-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #07110c; box-shadow: 0 16px 36px rgba(54,200,102,.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), #7cf29b); box-shadow: 0 18px 46px rgba(54,200,102,.32); }
.btn-secondary { background: rgba(255,255,255,.05); color: var(--secondary); border-color: rgba(249, 199, 79, 0.28); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.btn-secondary:hover { background: rgba(249, 199, 79, 0.11); border-color: rgba(249, 199, 79, 0.42); }
.hero-media { position: relative; }
.hero-media img, .split-image img, .article-hero img { border-radius: 34px; box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--line); }
.floating-card { position: absolute; left: -22px; bottom: 34px; background: rgba(18, 32, 24, 0.94); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; width: min(260px, 80%); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-card strong { display: block; color: var(--ink); }
.floating-card span { color: var(--muted); font-size: .92rem; }

.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.stat-panel { background: linear-gradient(145deg, #07110c, #13261a); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow), var(--glow); }
.stat-panel div { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 18px; }
.stat-panel strong { display: block; color: var(--secondary); font-size: 1.35rem; }
.stat-panel span { color: rgba(255,255,255,.72); }
.section-heading { max-width: 780px; margin-bottom: 32px; }
.card-grid, .blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.content-card { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 46px rgba(0,0,0,.22); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.content-card:hover { transform: translateY(-5px); box-shadow: var(--shadow), var(--glow); border-color: rgba(54, 200, 102, 0.28); }
.content-card img { width: 100%; height: 230px; object-fit: cover; filter: saturate(.95) brightness(.82); }
.content-card div { padding: 24px; }
.card-meta { display: block; color: var(--secondary); font-size: .88rem; font-weight: 800; margin-bottom: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--secondary); }
.text-link:hover { color: #ffe08a; }
.text-link svg { width: 17px; height: 17px; }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.split-image img { aspect-ratio: 4/5; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.check-list svg { color: var(--primary); flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.tools-preview { background: linear-gradient(135deg, rgba(30, 142, 62, 0.18), rgba(249, 199, 79, 0.11)); border: 1px solid var(--line); border-radius: 36px; margin-top: 30px; margin-bottom: 60px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tool-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.tool-strip div { background: rgba(18, 32, 24, 0.78); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.tool-strip svg { color: var(--secondary); margin-bottom: 12px; }
.tool-strip strong, .tool-strip span { display: block; }
.tool-strip strong { color: var(--ink); }
.tool-strip span { color: var(--muted); margin-top: 4px; }

.page-hero { text-align: center; }
.page-hero.compact { max-width: 940px; padding-bottom: 46px; }
.page-hero p { font-size: 1.12rem; max-width: 760px; margin-left: auto; margin-right: auto; color: var(--muted-strong); }
.guide-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.sidebar-card, .toc { position: sticky; top: 92px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.sidebar-card h2, .toc h2 { font-size: 1.3rem; }
.sidebar-card ol, .toc ul { padding-left: 20px; color: var(--muted); }
.toc a { color: var(--secondary); font-weight: 700; }
.toc a:hover { color: #ffe08a; }
.guide-list { display: grid; gap: 20px; }
.wide-card { display: grid; grid-template-columns: 260px 1fr; gap: 22px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.2); transition: .25s ease; }
.wide-card:hover { transform: translateY(-3px); border-color: rgba(54, 200, 102, 0.28); box-shadow: var(--shadow); }
.wide-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; border-radius: 18px; filter: saturate(.95) brightness(.82); }
.wide-card div { padding: 14px 10px; }

.article-hero { display: grid; grid-template-columns: 1fr .85fr; gap: 34px; align-items: center; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.article-hero img { aspect-ratio: 16/10; filter: saturate(.95) brightness(.82); }
.article-meta { display: inline-flex; color: var(--muted); font-weight: 800; }
.article-shell { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.article-body { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 54px); box-shadow: 0 20px 54px rgba(0,0,0,.24); }
.article-body section { padding: 10px 0 28px; border-bottom: 1px solid var(--line); }
.article-body section:last-child { border-bottom: 0; }
.article-body h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.note { background: rgba(249, 199, 79, 0.11); border: 1px solid rgba(249, 199, 79, 0.28); border-radius: 16px; padding: 14px; font-size: .92rem; color: #f3d98d; }
.faq-block details { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 10px 0; background: rgba(255,255,255,.035); }
.faq-block summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.faq-block p { margin: 10px 0 0; }
.related-section { padding-top: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: .25s ease; }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(249, 199, 79, 0.26); }
.mini-card strong, .mini-card span { display: block; }
.mini-card strong { color: var(--ink); }
.mini-card span { color: var(--muted); margin-top: 8px; }
.blog-card h2 { font-size: 1.45rem; }

.tool-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: center; }
.tool-panel.reverse { direction: rtl; }
.tool-panel.reverse > * { direction: ltr; }
.tool-copy { background: linear-gradient(135deg, #0b3d22, #155d31); color: white; padding: 34px; border-radius: 30px; box-shadow: var(--shadow), var(--glow); border: 1px solid rgba(54, 200, 102, 0.24); }
.tool-copy .eyebrow { background: rgba(255,255,255,.09); color: var(--secondary); border-color: rgba(255,255,255,.16); }
.tool-copy p { color: rgba(255,255,255,.78); }
.calculator-card { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: 30px; padding: 26px; box-shadow: 0 20px 58px rgba(0,0,0,.25); display: grid; gap: 12px; }
.calculator-card label { font-weight: 800; color: var(--ink); }
.calculator-card input[type="number"] { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; font: inherit; background: rgba(255,255,255,.045); color: var(--ink); outline: none; }
.calculator-card input[type="number"]:focus { border-color: rgba(54, 200, 102, 0.55); box-shadow: 0 0 0 4px rgba(54, 200, 102, 0.1); }
.calculator-card input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; margin-right: 8px; }
.result-box { min-height: 78px; border-radius: 18px; border: 1px dashed rgba(188, 216, 195, 0.32); background: rgba(54, 200, 102, 0.08); padding: 16px; color: var(--muted); }
.result-box ul { margin: 10px 0 0; padding-left: 20px; }
.notice-box { background: rgba(249, 199, 79, 0.11); border: 1px solid rgba(249, 199, 79, 0.3); padding: 18px; border-radius: 20px; color: #f3d98d; }
.notice-box.large { font-size: 1.05rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border: 1px solid var(--line); border-radius: 30px; padding: 34px; box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.primary-contact { background: linear-gradient(135deg, rgba(54, 200, 102, 0.14), rgba(249, 199, 79, 0.08)); }
.primary-contact svg { width: 42px; height: 42px; color: var(--secondary); margin-bottom: 16px; }
.email-link { display: inline-flex; color: var(--secondary); font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.55rem); word-break: break-word; }
.email-link:hover { color: #ffe08a; }

.site-footer { background: #060e0a; color: white; padding: 52px 20px 24px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 34px; }
.footer-grid p, .footer-grid a, .footer-bottom { color: rgba(255,255,255,.68); }
.footer-grid a:hover { color: var(--secondary); }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; color: white; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { color: white; margin-bottom: 14px; }
.small { font-size: .9rem; }
.footer-bottom { max-width: var(--max); margin: 34px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }

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

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .main-menu { position: absolute; left: 20px; right: 20px; top: 72px; display: none; flex-direction: column; align-items: stretch; background: rgba(18, 32, 24, 0.98); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
    .main-menu.is-open { display: flex; }
    .main-menu a { display: block; }
    .hero-home, .intro-grid, .split-section, .guide-layout, .article-hero, .article-shell, .tool-panel, .contact-grid { grid-template-columns: 1fr; }
    .hero-home { min-height: auto; padding-top: 54px; }
    .card-grid, .blog-grid, .tool-strip, .mini-grid, .footer-grid { grid-template-columns: 1fr; }
    .sidebar-card, .toc { position: static; }
    .wide-card { grid-template-columns: 1fr; }
    .tool-panel.reverse { direction: ltr; }
    .floating-card { left: 18px; bottom: 18px; }
}

@media (max-width: 560px) {
    .hero, .section, .page-hero, .article-hero { padding: 52px 16px; }
    .nav-wrap { padding: 12px 16px; }
    .brand { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .content-card img { height: 200px; }
    .article-body, .calculator-card, .tool-copy, .contact-card { padding: 22px; border-radius: 22px; }
    .footer-bottom { flex-direction: column; }
}