/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; color: #333; background: #f0f0f0; }
a { color: #1a5e1a; text-decoration: none; } a:hover { color: #0d3d0d; text-decoration: underline; }
img { max-width: 100%; height: auto; } table { border-collapse: collapse; width: 100%; }

/* === TOP BANNER === */
.top-banner { background: linear-gradient(180deg, #3a8c3a 0%, #2d7a2d 40%, #1f6b1f 100%); border-bottom: 3px solid #165016; }
.top-banner-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; }
.site-title-block { display: flex; align-items: center; gap: 15px; }
.site-logo-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.site-logo-icon svg { width: 34px; height: 34px; }
.site-title { font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif; font-size: 22px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); line-height: 1.2; }
.site-subtitle { font-size: 12px; color: #c5e8c5; font-weight: 400; margin-top: 2px; }
.top-right-info { text-align: right; color: #d4ecd4; font-size: 12px; line-height: 1.6; }
.top-right-info a { color: #e8f5e8; }
.top-right-info .phone { font-size: 15px; font-weight: 700; color: #fff; display: block; margin-bottom: 2px; }

/* === SECOND NAV === */
.second-nav { background: linear-gradient(180deg, #e8f5e1 0%, #d4edcc 100%); border-bottom: 1px solid #b0d4a0; }
.second-nav-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 4px 15px; }
.breadcrumb-bar { font-size: 11px; color: #555; } .breadcrumb-bar a { color: #2a6e2a; font-size: 11px; }
.top-links { display: flex; gap: 12px; font-size: 11px; } .top-links a { color: #2a6e2a; }

/* === MAIN LAYOUT === */
.main-wrapper { max-width: 1120px; margin: 0 auto 24px; display: flex; align-items: stretch; background: #fff; border: 1px solid #d3e6cb; box-shadow: 0 10px 28px rgba(22, 70, 22, 0.08); }

/* === LEFT SIDEBAR === */
.left-sidebar { width: 248px; min-width: 248px; background: linear-gradient(180deg, #eaf6e4 0%, #daeccb 50%, #cfe4c2 100%); border-right: 1px solid #c5dfb8; align-self: stretch; }
.left-sidebar .moduletable, .left-sidebar .module { margin-bottom: 0; border-bottom: 1px solid #b0d4a0; }
.left-sidebar .moduletable:last-child, .left-sidebar .module:last-child { border-bottom: none; }
.left-sidebar .module-title, .left-sidebar .moduletable h3 { background: linear-gradient(180deg, #5aad5a 0%, #3d8e3d 100%); color: #fff !important; font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 14px !important; font-weight: 700; text-transform: uppercase; padding: 9px 12px; border-bottom: 2px solid #2d7a2d; text-shadow: 1px 1px 1px rgba(0,0,0,0.2); margin: 0 !important; }
.left-sidebar ul.nav.menu { list-style: none; padding: 0; margin: 0; }
.left-sidebar ul.nav.menu > li { border-bottom: 1px solid rgba(255,255,255,0.5); }
.left-sidebar ul.nav.menu > li:last-child { border-bottom: none; }
.left-sidebar ul.nav.menu > li > a, .left-sidebar ul.nav.menu > li > span.nav-header { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; color: #1a5e1a !important; font-size: 12.5px; transition: all 0.15s; text-decoration: none; border-left: 3px solid transparent; }
.left-sidebar ul.nav.menu > li > a:hover, .left-sidebar ul.nav.menu > li.active > a { background: rgba(58,140,58,0.12); border-left-color: #2d7a2d; color: #0d3d0d !important; text-decoration: none; font-weight: 700; }
.left-sidebar ul.nav.menu ul { list-style: none; padding: 0; margin: 0; background: rgba(255,255,255,0.3); display: none; }
.left-sidebar ul.nav.menu ul li a { display: block; padding: 6px 12px 6px 30px; color: #1a5e1a !important; font-size: 11.5px; border-left: 3px solid transparent; transition: all 0.15s; }
.left-sidebar ul.nav.menu ul li a:hover, .left-sidebar ul.nav.menu ul li.active > a { background: rgba(58,140,58,0.1); border-left-color: #5aad5a; color: #0d3d0d !important; text-decoration: none; font-weight: 700; }
.left-sidebar ul.nav.menu li.parent > a::after { content: '\25B6'; margin-left: auto; font-size: 9px; color: #7ab07a; }

/* === CENTER CONTENT === */
.center-content { flex: 1; min-width: 0; background: #fff; padding: 22px 26px 32px; min-height: 640px; font-size: 15.5px; line-height: 1.6; color: #243024; }
.center-content h1, .center-content h2, .center-content .page-header h1, .center-content .page-header h2 { font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 26px; font-weight: 700; color: #1a5e1a; border-bottom: 2px solid #3a8c3a; padding-bottom: 8px; margin: 0 0 18px; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.center-content h3 { font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 16px; color: #1a5e1a; margin: 15px 0 8px; font-weight: 700; }
.center-content p { margin-bottom: 10px; line-height: 1.65; }

/* === BUTTONS === */
.btn { padding: 6px 16px; font-size: 12px; font-family: 'PT Sans', Arial, sans-serif; font-weight: 700; border: 1px solid; border-radius: 3px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; display: inline-block; line-height: 1.4; }
.btn-green, .btn-primary { background: linear-gradient(180deg, #5aad5a, #3d8e3d); border-color: #2d7a2d; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.btn-green:hover { background: linear-gradient(180deg, #4a9d4a, #2d7a2d); color: #fff; text-decoration: none; }
.btn-light { background: linear-gradient(180deg, #f5f5f5, #e0e0e0); border-color: #bbb; color: #444; }
.btn-light:hover { background: linear-gradient(180deg, #eee, #d5d5d5); color: #333; text-decoration: none; }

/* === RIGHT SIDEBAR === */
.right-sidebar { width: 280px; min-width: 280px; background: #fff; border-left: 1px solid #ddd; padding: 15px; align-self: flex-start; position: sticky; top: 0; }
.right-sidebar .moduletable, .right-sidebar .module { margin-bottom: 18px; }
.right-sidebar .moduletable:last-child, .right-sidebar .module:last-child { margin-bottom: 0; }
.right-sidebar .module-title, .right-sidebar .moduletable h3 { font-family: 'PT Sans Narrow', Arial, sans-serif; font-size: 13px !important; font-weight: 700; color: #1a5e1a !important; text-transform: uppercase; padding-bottom: 6px; margin-bottom: 10px !important; border-bottom: 2px solid #3a8c3a; }

/* === TABLES === */
table { font-size: 11px; border: 1px solid #c0d8b0; }
table thead th { background: linear-gradient(180deg, #5aad5a, #3d8e3d); color: #fff; font-weight: 700; padding: 6px 5px; text-align: center; font-size: 11px; text-transform: uppercase; border: 1px solid #2d7a2d; text-shadow: 0 1px 0 rgba(0,0,0,0.2); }
table tbody td { padding: 5px 5px; border: 1px solid #d4e8cc; text-align: center; vertical-align: middle; }
table tbody tr:nth-child(even) { background: #f5faf2; } table tbody tr:hover { background: #edf7e8; }

/* === MISC === */
.info-block { background: #f7faf5; border: 1px solid #d4edcc; border-radius: 4px; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.info-block p { margin-bottom: 6px; } .info-block p:last-child { margin-bottom: 0; } .info-label { font-weight: 700; color: #1a5e1a; }
.search-block { background: #f7faf5; border: 1px solid #d4edcc; border-radius: 4px; padding: 12px 15px; margin-bottom: 18px; }
.search-block-label { font-size: 12px; font-weight: 700; color: #2d7a2d; margin-bottom: 6px; text-transform: uppercase; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-input, .center-content input[type="text"], .center-content input[type="search"], .center-content .form-control { padding: 6px 10px; border: 1px solid #a0c890; border-radius: 3px; font-size: 13px; font-family: 'PT Sans', Arial, sans-serif; outline: none; background: #fff; color: #333; }
.search-input:focus, .center-content input[type="text"]:focus, .center-content .form-control:focus { border-color: #3a8c3a; box-shadow: 0 0 0 2px rgba(58,140,58,0.15); }
.alert { padding: 10px 14px; margin-bottom: 15px; border-radius: 3px; font-size: 13px; }
.pagination { margin: 15px 0; text-align: center; }
.pagination ul { list-style: none; display: inline-flex; gap: 2px; margin: 0; padding: 0; }
.pagination ul li a, .pagination ul li span { display: inline-block; padding: 4px 10px; border: 1px solid #b0d4a0; border-radius: 3px; font-size: 12px; color: #1a5e1a; }
.pagination ul li a:hover { background: #edf7e8; text-decoration: none; }
.pagination ul li span { background: linear-gradient(180deg, #5aad5a, #3d8e3d); color: #fff; border-color: #2d7a2d; font-weight: 700; }

/* === FOOTER === */
.footer { background: linear-gradient(180deg, #2d7a2d 0%, #1f5f1f 100%); border-top: 3px solid #165016; color: #b8dab0; font-size: 11px; padding: 15px 0; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; }
.footer a { color: #d4ecd4; } .footer a:hover { color: #fff; } .footer-copy { line-height: 1.5; } .footer-links { display: flex; gap: 15px; }

/* === BACK TO TOP === */
#backToTop { position: fixed; bottom: 20px; right: 20px; width: 40px; height: 40px; background: linear-gradient(180deg, #5aad5a, #3d8e3d); border: 2px solid #2d7a2d; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.3s; text-decoration: none; z-index: 999; }
#backToTop:hover { opacity: 1 !important; text-decoration: none; color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .main-wrapper { flex-direction: column; }
    .left-sidebar, .right-sidebar { width: 100%; min-width: auto; position: static; }
    .left-sidebar { border-right: none; border-bottom: 1px solid #b0d4a0; }
    .right-sidebar { border-left: none; border-top: 1px solid #ddd; }
    .top-banner-inner { flex-direction: column; text-align: center; gap: 8px; }
    .top-right-info { text-align: center; }
    .site-title { font-size: 18px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
    .right-sidebar table { font-size: 10px; }
    .right-sidebar table thead th, .right-sidebar table tbody td { padding: 4px 3px; }
    .site-logo-icon { width: 45px; height: 45px; }
    .site-title { font-size: 15px; }
}

.page-header { margin: 0 0 8px; }
.com-content-article__body > :first-child { margin-top: 0; }
.center-content p { margin: 0 0 12px; }
.center-content img,
.com-content-article__body img {
    float: none !important;
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 16px auto;
    border: 1px solid #e3eee0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 50, 20, 0.05);
}
.center-content table { max-width: 100%; margin: 14px 0 18px; font-size: 13px; }
.com-content-article__body { overflow-x: auto; }

.trk-menu, .trk-menu ul { list-style: none; margin: 0; padding: 0; }
.trk-menu { padding: 6px 0; }
.trk-menu a, .trk-menu .trk-label {
    display: block;
    padding: 8px 14px 8px 16px;
    color: #164816;
    text-decoration: none;
    line-height: 1.35;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.trk-menu ul a { padding: 6px 12px 6px 28px; font-size: 13px; }
.trk-menu ul ul a { padding-left: 40px; font-size: 12.5px; }
.trk-menu li { border-bottom: 1px solid rgba(255,255,255,0.45); }
.trk-menu li li { border-bottom: 0; }
.trk-menu a:hover { background: rgba(255,255,255,0.55); color: #0d3d0d; text-decoration: none; }
.trk-menu li.current > a { background: #fff; border-left-color: #1f6b1f; font-weight: 700; color: #0d3d0d; }
.trk-menu li.active > a { border-left-color: #5aad5a; font-weight: 700; }
.trk-menu ul { background: rgba(255,255,255,0.34); padding: 4px 0 6px; }
.article-info, .com-content-article .pagenavigation, .com-content-article .icons { display: none; }

.center-content ul, .center-content ol { margin: 0 0 16px 1.3em; padding: 0; }
.center-content li { margin: 0 0 6px; }
.center-content h3 { margin-top: 16px; }

/* === READABLE CONTENT === */
.center-content h2 { font-size: 22px; margin: 28px 0 12px; }
.center-content .com-content-article__body > h2:first-child,
.center-content h2:first-of-type { margin-top: 4px; }
.center-content h3 { font-size: 18px; margin: 18px 0 8px; }
.lead { font-size: 17.5px; line-height: 1.55; color: #163216; margin: 0 0 16px; }
.muted { color: #5d6d5d; font-size: 14px; }
.note { background: #f3faf0; border-left: 4px solid #2f7d2f; border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 18px; }
.note.warn { background: #fff8ee; border-left-color: #c47b12; }
.note p:last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 0 0 18px; }
a.card, .card { display: block; background: #f7fbf5; border: 1px solid #d5ead0; border-radius: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
a.card:hover { border-color: #2f7d2f; background: #fff; text-decoration: none; color: inherit; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; }
.card .go { display: inline-block; margin-top: 8px; color: #1a5e1a; font-weight: 700; }
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0 0 18px; padding: 14px 16px; background: #f7fbf5; border: 1px solid #d5ead0; border-radius: 12px; }
.facts dt { color: #1a5e1a; font-weight: 700; }
.facts dd { margin: 0; }
.doc-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid #e3eee0; }
.doc-list li { margin: 0; border-bottom: 1px solid #e3eee0; }
.doc-list a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 2px; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-list .kind { color: #5d6d5d; font-size: 12px; white-space: nowrap; }
.center-content table.doc-table { width: 100%; font-size: 14.5px; margin: 8px 0 18px; }
.center-content table.doc-table thead th { text-transform: none; font-size: 13.5px; letter-spacing: 0; text-align: left; padding: 8px 10px; }
.center-content table.doc-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.center-content table.doc-table td.num,
.center-content table.doc-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend { margin: 0 0 16px; padding-left: 1.3em; }
.legend li { margin-bottom: 4px; }
details.fold { margin: 0 0 16px; border: 1px solid #d5ead0; border-radius: 12px; background: #fbfefb; }
details.fold summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: #1a5e1a; }
details.fold .inner { padding: 0 16px 8px; }
.exercise { margin: 0 0 14px; }
.exercise h3 { margin-bottom: 6px; }
@media (max-width: 600px) {
    .facts { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 8px; }
}

/* === PAY DOCK === */
.pay-dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(520px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #cfe3c8;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(22, 60, 22, 0.18);
    padding: 14px 14px 12px;
}
.pay-dock-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pay-dock-title { font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif; font-size: 20px; font-weight: 700; color: #145214; line-height: 1.2; }
.pay-dock-hint { margin-top: 2px; color: #5d6d5d; font-size: 13px; }
.pay-dock-row { display: flex; gap: 8px; }
.pay-dock-acc {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #b7d4ae;
    border-radius: 10px;
    font: 16px/1 'PT Sans', Arial, sans-serif;
    color: #243024;
    background: #f7fbf5;
}
.pay-dock-acc:focus { outline: none; border-color: #2f7d2f; background: #fff; box-shadow: 0 0 0 3px rgba(47, 125, 47, 0.15); }
.pay-dock-go, .pay-dock-show {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #3d9a3d, #217021);
    color: #fff;
    font: 700 16px/1 'PT Sans', Arial, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.pay-dock-go:hover, .pay-dock-show:hover { background: linear-gradient(180deg, #348834, #185c18); }
.pay-dock-hide {
    border: 0;
    background: transparent;
    color: #5d6d5d;
    font: 14px/1 'PT Sans', Arial, sans-serif;
    cursor: pointer;
    padding: 4px 0;
}
.pay-dock-hide:hover { color: #145214; }
.pay-dock-show { display: none; width: 100%; }
.pay-dock:not(.is-open) { width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
.pay-dock:not(.is-open) .pay-dock-form { display: none; }
.pay-dock:not(.is-open) .pay-dock-show { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 22px; box-shadow: 0 10px 24px rgba(22, 60, 22, 0.22); }
body.has-pay.pay-open .footer { padding-bottom: 108px; }
body.has-pay.pay-open #backToTop { bottom: 148px; }
body.has-pay:not(.pay-open) #backToTop { bottom: 76px; }
@media (max-width: 600px) {
    .pay-dock-row { flex-direction: column; }
    .pay-dock-go { width: 100%; }
    body.has-pay.pay-open .footer { padding-bottom: 168px; }
    body.has-pay.pay-open #backToTop { bottom: 196px; }
}

.pay-dock-acc::placeholder { color: #9aa39a; }


/* === PAY WINDOW === */
.pay-window {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: rgba(14, 28, 14, 0.62);
}
.pay-window[hidden] { display: none; }
.pay-window-card {
    width: min(760px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 56px));
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
.pay-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #3a9440 0%, #1d6824 100%);
    color: #fff;
}
.pay-window-kicker { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #d7f0d4; }
.pay-window-title { font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.15; }
.pay-window-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.pay-window-close:hover { background: rgba(255, 255, 255, 0.28); }
.pay-window-body { position: relative; flex: 1; min-height: 0; background: #f4f7f4; }
.pay-window-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.pay-window-wait {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #5d6d5d;
    font-size: 15px;
}
.pay-window.is-loading .pay-window-wait { display: flex; }
.pay-window.is-loading .pay-window-frame { visibility: hidden; }
body.pay-window-on { overflow: hidden; }
@media (max-width: 600px) {
    .pay-window { padding: 0; align-items: stretch; }
    .pay-window-card { width: 100%; height: 100%; border-radius: 0; }
}
