:root {
    --green-950: #0b2d1c;
    --green-900: #123c27;
    --green-800: #175133;
    --green-700: #1d6b40;
    --green-600: #23834c;
    --green-500: #2f9b5d;
    --green-100: #e9f6ee;
    --green-50: #f4faf6;
    --gold: #d5a940;
    --ink: #17211a;
    --muted: #627067;
    --line: #dfe8e2;
    --surface: #ffffff;
    --background: #f5f8f6;
    --shadow-sm: 0 8px 24px rgba(16, 55, 34, .08);
    --shadow-lg: 0 24px 60px rgba(16, 55, 34, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 9999;
    padding: 10px 16px;
    color: #fff;
    background: var(--green-900);
    border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(223,232,226,.85);
    backdrop-filter: blur(16px);
}
.site-header .navbar { min-height: 84px; padding: .65rem 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { color: var(--green-900); font-size: 1.05rem; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.navbar-nav { gap: .15rem; }
.nav-link { color: #405047 !important; font-weight: 600; padding: .6rem .85rem !important; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--green-700) !important; background: var(--green-50); }
.btn-outline-success { color: var(--green-700); border-color: var(--green-600); font-weight: 700; }
.btn-outline-success:hover { background: var(--green-700); border-color: var(--green-700); }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 86px 0 92px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 18%, rgba(77, 166, 105, .28), transparent 28%),
        linear-gradient(130deg, var(--green-950), var(--green-800) 62%, #286742);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--background) 50%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(255,255,255,.22) 25%, rgba(255,255,255,.22) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.22) 75%, rgba(255,255,255,.22) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255,255,255,.18) 25%, rgba(255,255,255,.18) 26%, transparent 27%, transparent 74%, rgba(255,255,255,.18) 75%, rgba(255,255,255,.18) 76%, transparent 77%);
    background-size: 84px 145px;
}
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #9fe0b8;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.65rem, 5vw, 4.65rem); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.hero-copy { max-width: 680px; margin: 24px 0 30px; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.75; }
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 650px;
    height: 64px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(4,24,13,.28);
}
.hero-search > i { color: var(--green-700); font-size: 1.15rem; }
.hero-search input { flex: 1; height: 100%; min-width: 0; padding: 0 14px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 1rem; }
.hero-search input::placeholder { color: #8a958f; }
.clear-search { width: 34px; height: 34px; padding: 0; color: #637068; background: #eef3ef; border: 0; border-radius: 50%; }
.quick-stats { display: flex; gap: 34px; margin-top: 28px; }
.quick-stats div { display: flex; flex-direction: column; }
.quick-stats strong { font-size: 1.35rem; line-height: 1; }
.quick-stats span { margin-top: 6px; color: rgba(255,255,255,.66); font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-stack { position: relative; width: 420px; height: 420px; margin: 0 auto; }
.hero-stack .cover { position: absolute; width: 225px; height: 310px; object-fit: cover; object-position: top; background: #fff; border: 8px solid #fff; border-radius: 10px; box-shadow: var(--shadow-lg); }
.cover-1 { top: 52px; left: 95px; z-index: 3; transform: rotate(1deg); }
.cover-2 { top: 30px; left: 18px; z-index: 2; transform: rotate(-10deg); opacity: .92; }
.cover-3 { top: 36px; right: 2px; z-index: 1; transform: rotate(11deg); opacity: .9; }
.hero-badge { position: absolute; right: 2px; bottom: 30px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: var(--green-950); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .76rem; line-height: 1.25; }
.hero-badge i { color: #d44242; font-size: 1.7rem; }
.hero-badge strong { font-size: .9rem; }

.catalog-section { padding: 72px 0 96px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-kicker { color: var(--green-700); margin-bottom: 10px; }
.section-kicker.light { color: #a8e1bb; }
.section-heading h2, .instructions h2 { margin: 0 0 10px; color: var(--green-950); font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); }
.view-controls { display: flex; gap: 8px; padding: 6px; background: #eaf0ec; border-radius: 12px; }
.view-button { width: 40px; height: 38px; color: #627068; background: transparent; border: 0; border-radius: 8px; }
.view-button.active { color: var(--green-800); background: #fff; box-shadow: 0 3px 10px rgba(18,60,39,.10); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; color: #47554d; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 700; transition: all .2s ease; }
.filter-button span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; color: #65736b; background: #edf2ee; border-radius: 999px; font-size: .73rem; }
.filter-button:hover, .filter-button.active { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.filter-button.active span, .filter-button:hover span { color: var(--green-900); background: #dff3e6; }
.documents-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.document-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.document-card:hover { transform: translateY(-6px); border-color: #bed7c7; box-shadow: 0 20px 44px rgba(16,55,34,.14); }
.document-cover { position: relative; display: grid; place-items: start center; height: 300px; padding: 24px 22px 0; overflow: hidden; background: linear-gradient(145deg,#edf5ef,#dce9df); }
.document-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 62px; background: linear-gradient(transparent,rgba(14,48,28,.09)); }
.document-cover img { width: 190px; height: 276px; object-fit: contain; object-position: top; background: #fff; border-radius: 5px 5px 0 0; box-shadow: 0 14px 28px rgba(20,54,34,.18); }
.file-type, .featured-label { position: absolute; top: 15px; z-index: 2; padding: 7px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.file-type { right: 15px; color: #9c2727; background: #fff; }
.featured-label { left: 15px; color: #765511; background: #fff4ce; }
.document-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.document-category { color: var(--green-700); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.document-body h3 { margin: 10px 0 12px; color: var(--green-950); font-size: 1.16rem; line-height: 1.35; font-weight: 800; }
.document-body p { flex: 1; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.document-meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 20px 0; padding-top: 17px; color: #6a766f; border-top: 1px solid #edf1ee; font-size: .78rem; }
.document-meta span { display: inline-flex; align-items: center; gap: 6px; }
.document-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.document-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: .83rem; font-weight: 800; text-decoration: none; transition: all .2s ease; }
.btn-preview { color: var(--green-800); background: var(--green-50); border: 1px solid #cde3d5; }
.btn-preview:hover { color: #fff; background: var(--green-800); }
.btn-download { color: #fff; background: var(--green-700); border: 1px solid var(--green-700); }
.btn-download:hover { color: #fff; background: var(--green-900); border-color: var(--green-900); }
.empty-state { padding: 70px 20px; text-align: center; background: #fff; border: 1px dashed #bdcfc3; border-radius: 18px; }
.empty-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; color: var(--green-700); background: var(--green-100); border-radius: 50%; font-size: 1.8rem; }
.empty-state h3 { color: var(--green-950); font-weight: 800; }
.empty-state p { color: var(--muted); }

.documents-grid.list-view { grid-template-columns: 1fr; }
.documents-grid.list-view .document-card { flex-direction: row; min-height: 230px; }
.documents-grid.list-view .document-cover { flex: 0 0 230px; height: auto; min-height: 230px; padding: 18px 18px 0; }
.documents-grid.list-view .document-cover img { width: 135px; height: 205px; }
.documents-grid.list-view .document-body { padding: 26px 28px; }
.documents-grid.list-view .document-body p { max-width: 780px; }
.documents-grid.list-view .document-actions { align-self: flex-end; width: 300px; }

.instructions { position: relative; overflow: hidden; padding: 86px 0; color: #fff; background: linear-gradient(120deg,var(--green-950),var(--green-800)); }
.instructions::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border: 80px solid rgba(255,255,255,.045); border-radius: 50%; }
.instructions h2 { color: #fff; }
.instructions .col-lg-5 > p { max-width: 500px; color: rgba(255,255,255,.72); line-height: 1.75; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step-card { position: relative; min-height: 220px; padding: 28px 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; backdrop-filter: blur(8px); }
.step-card > span { position: absolute; right: 18px; top: 14px; color: rgba(255,255,255,.15); font-size: 2.7rem; font-weight: 900; }
.step-card > i { display: grid; place-items: center; width: 46px; height: 46px; color: var(--green-900); background: #b7ecc8; border-radius: 12px; font-size: 1.15rem; }
.step-card h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 800; }
.step-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .85rem; line-height: 1.55; }
.help-strip { padding: 56px 0; }
.help-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 30px 34px; color: #fff; background: var(--green-700); border-radius: 18px; box-shadow: var(--shadow-lg); }
.help-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--green-800); background: #dff4e6; border-radius: 15px; font-size: 1.45rem; }
.help-box h2 { margin: 0 0 5px; font-size: 1.25rem; font-weight: 800; }
.help-box p { margin: 0; color: rgba(255,255,255,.74); }
.help-box .btn { font-weight: 800; color: var(--green-900); border-radius: 10px; }

.site-footer { color: #d6e0d9; background: #0a2718; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 42px; align-items: center; padding: 48px 0 38px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; }
.footer-brand strong { display: block; max-width: 410px; color: #fff; font-size: .95rem; line-height: 1.4; }
.footer-brand p { margin: 5px 0 0; color: #8fa095; font-size: .8rem; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: .84rem; }
.footer-contact span, .footer-contact a { display: flex; align-items: flex-start; gap: 9px; color: #b9c7bd; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #b9c7bd; font-size: .84rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; color: #7f9185; border-top: 1px solid rgba(255,255,255,.08); font-size: .76rem; }

/* Support page */
.support-main { min-height: calc(100vh - 84px); padding: 70px 0; background: radial-gradient(circle at 15% 10%,#e1f2e7,transparent 30%),var(--background); }
.support-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.support-side { height: 100%; padding: 42px; color: #fff; background: linear-gradient(145deg,var(--green-950),var(--green-700)); }
.support-side img { width: 78px; height: 78px; object-fit: contain; margin-bottom: 26px; background: #fff; border-radius: 13px; }
.support-side h1 { font-size: 2rem; font-weight: 800; }
.support-side p { color: rgba(255,255,255,.74); line-height: 1.7; }
.support-info { margin-top: 34px; }
.support-info div { display: flex; gap: 12px; margin-top: 16px; color: rgba(255,255,255,.83); font-size: .9rem; }
.support-form { padding: 42px; }
.support-form h2 { color: var(--green-950); font-weight: 800; }
.support-form > p { color: var(--muted); }
.form-label { color: #324139; font-weight: 700; }
.form-control { min-height: 50px; border-color: #d5e0d8; border-radius: 10px; }
textarea.form-control { min-height: 150px; }
.form-control:focus { border-color: var(--green-600); box-shadow: 0 0 0 .2rem rgba(35,131,76,.13); }
.form-hint { color: #849087; font-size: .77rem; }
.btn-success { background: var(--green-700); border-color: var(--green-700); font-weight: 800; border-radius: 10px; }
.btn-success:hover { background: var(--green-900); border-color: var(--green-900); }

@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 72px 0 110px; }
    .documents-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-links { flex-direction: row; grid-column: 1 / -1; }
    .steps-grid { margin-top: 24px; }
}
@media (max-width: 767.98px) {
    .site-header .navbar { min-height: 74px; }
    .brand img { width: 48px; height: 48px; }
    .brand small { font-size: .67rem; }
    .hero { padding-top: 56px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-copy { font-size: .98rem; }
    .hero-search { height: 58px; }
    .quick-stats { gap: 20px; justify-content: space-between; }
    .quick-stats strong { font-size: 1.15rem; }
    .quick-stats span { font-size: .64rem; }
    .section-heading { align-items: flex-start; }
    .view-controls { display: none; }
    .documents-grid { grid-template-columns: 1fr; }
    .document-cover { height: 285px; }
    .documents-grid.list-view .document-card { flex-direction: column; }
    .documents-grid.list-view .document-cover { flex-basis: auto; min-height: 260px; }
    .documents-grid.list-view .document-actions { width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { min-height: 170px; }
    .help-box { grid-template-columns: 1fr; text-align: center; }
    .help-icon { margin: auto; }
    .help-box .btn { justify-self: center; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { grid-column: auto; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; }
    .support-side, .support-form { padding: 30px 24px; }
}
@media (max-width: 420px) {
    .brand strong { font-size: .92rem; }
    .brand small { display: none; }
    .hero h1 { font-size: 2.18rem; }
    .hero-search input { font-size: .9rem; }
    .quick-stats { gap: 10px; }
    .document-actions { grid-template-columns: 1fr; }
    .filters { gap: 7px; }
    .filter-button { padding: 8px 11px; font-size: .78rem; }
}
