:root {
    --green: #28774f;
    --green-dark: #206442;
    --ink: #243144;
    --muted: #69788a;
    --border: #e1e8e4;
    --bg: #f7f9f8;
}

html { min-height: 100%; font-size: 15px; }
body { background: var(--bg); color: var(--ink); margin: 0; font-family: 'Segoe UI', Arial, sans-serif; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header .navbar { min-height: 66px; }
.brand { color: var(--ink) !important; font-size: 1.15rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; border-radius: 7px; background: #e1f0e6; color: var(--green); font-size: .82rem; font-weight: 800; display: grid; place-items: center; }
.navbar .nav-link { color: #526174; font-weight: 550; padding: 9px 13px !important; border-radius: 6px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--green); background: #eff6f1; }
.site-main { min-height: calc(100vh - 130px); padding-top: 39px; padding-bottom: 65px; }
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { color: #829087; min-height: 60px; display: flex; align-items: center; font-size: .9rem; }
.btn { font-weight: 600; border-radius: 7px; padding: 10px 17px; }
.btn-main { color: #fff; background: var(--green); border-color: var(--green); }
.btn-main:hover, .btn-main:focus-visible { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-secondary { color: #526477; border-color: #cfdad2; background: #fff; }
.btn-outline-secondary:hover { color: #374c40; background: #f1f5f2; border-color: #c8d6ce; }
.btn:focus-visible, a:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(40, 119, 79, .16); }

.home-panel { background: #edf6f0; border: 1px solid #d9e9de; border-radius: 12px; padding: 48px 55px; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 45px; }
.label-top { display: block; color: #4c8b66; font-size: .78rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 13px; }
.home-content h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 740; letter-spacing: -.035em; margin: 0 0 15px; }
.home-content p { max-width: 490px; font-size: 1.05rem; color: #647568; line-height: 1.75; margin-bottom: 26px; }
.home-figure { display: flex; justify-content: center; align-items: center; }
.home-figure svg { max-width: 100%; max-height: 270px; filter: drop-shadow(0 10px 16px rgba(40, 95, 58, .06)); }
.simple-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.simple-feature { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--border); padding: 21px 23px; border-radius: 10px; }
.feature-dot { background: #e5f2e9; width: 37px; height: 37px; flex-shrink: 0; border-radius: 9px; position: relative; }
.feature-dot::after { content: ''; position: absolute; width: 12px; height: 12px; background: #5aa477; border-radius: 4px; top: 12px; left: 12px; }
.feature-dot.alt { background: #e8f1f7; }
.feature-dot.alt::after { background: #6a9eb9; }
.simple-feature h2 { font-size: 1.04rem; margin: 0 0 7px; font-weight: 700; }
.simple-feature p { margin: 0; color: var(--muted); line-height: 1.6; }

.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-title-row h1 { font-weight: 730; font-size: clamp(1.7rem, 2.5vw, 2.15rem); margin-bottom: 7px; }
.page-title-row p { color: var(--muted); margin-bottom: 0; }
.total-count { font-size: .91rem; font-weight: 600; color: var(--green); background: #e5f3eb; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.list-panel { background: #fff; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.filter-box { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 24px; border-bottom: 1px solid var(--border); }
.filter-field .form-label { font-size: .9rem; font-weight: 650; color: #4d6056; margin-bottom: 7px; }
.filter-grow { flex: 2 1 240px; }
.filter-category { flex: 1 1 210px; }
.form-control, .form-select { border-color: #cedbd1; border-radius: 7px; min-height: 43px; }
.products-table { width: 100%; margin: 0; white-space: nowrap; }
.products-table th { color: #65766e; background: #f7faf8; font-size: .85rem; font-weight: 700; padding: 14px 17px; border-color: var(--border); }
.products-table td { color: #47596a; padding: 15px 17px; border-color: #edf2ee; }
.products-table tbody tr:last-child td { border-bottom: 0; }
.products-table tbody tr:hover td { background: #fbfdfb; }
.products-table .product-name { font-weight: 650; color: var(--ink); white-space: normal; min-width: 180px; }
.products-table .price { color: #ae5045; font-weight: 700; }
.product-id { color: #587a67; background: #ebf5ef; padding: 5px 9px; border-radius: 5px; font-weight: 650; font-size: .85rem; }
.category-tag { color: #58715e; background: #f0f5f0; padding: 6px 9px; border-radius: 6px; font-size: .83rem; }
.empty-state { text-align: center; padding: 62px 20px; }
.empty-state h2 { font-size: 1.15rem; font-weight: 700; }
.empty-state p { color: var(--muted); }
.info-page { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.info-page h1 { font-size: 1.7rem; }
.info-page p { color: var(--muted); }

@media (max-width: 900px) {
    .home-panel { grid-template-columns: 1.4fr 1fr; padding: 34px; gap: 15px; }
}
@media (max-width: 680px) {
    .site-main { padding-top: 25px; padding-bottom: 45px; }
    .home-panel { grid-template-columns: 1fr; padding: 27px 22px; }
    .home-figure { display: none; }
    .simple-features { grid-template-columns: 1fr; }
    .page-title-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .filter-box { flex-direction: column; align-items: stretch; padding: 18px; }
    .filter-grow, .filter-category { flex: auto; width: 100%; }
    .filter-box .btn { width: 100%; }
    .products-table th, .products-table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
    .btn, .simple-feature, .navbar .nav-link { transition: background-color .18s ease, border-color .18s ease; }
}
