:root {
    --gold: #c5a059;
    --gold-l: #d4b475;
    --dark: #0e0e0e;
    --dark2: #161616;
    --grey: #1f1f1f;
    --grey2: #2a2a2a;
    --text: #e8e0d0;
    --muted: #888;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: var(--dark); color: var(--text); min-height: 100vh; }

/* NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 68px;
    background: rgba(14,14,14,0.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197,160,89,0.18);
}
.nav-logo { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 2px; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; transition: color .3s; }
.nav-links a:hover { color: var(--gold); }

/* MAIN LAYOUT */
.page-container { max-width: 1200px; margin: 0 auto; padding: 120px 5% 60px; }
.page-header { margin-bottom: 40px; }
.page-label { font-size: .65rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.page-title { font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 700; color: #fff; margin: 10px 0; }
.page-hr { width: 80px; height: 2px; background: var(--gold); }

/* CASES LIST */
.cases-list { display: flex; flex-direction: column; gap: 25px; }
.case-item {
    background: var(--dark2); border-left: 3px solid rgba(197,160,89,.55);
    padding: 30px; border-radius: 2px; cursor: pointer;
    transition: all .3s; text-decoration: none; color: inherit;
}
.case-item:hover { border-left-color: var(--gold); transform: translateX(5px); }
.case-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; flex-wrap: wrap; gap: 15px;
}
.case-title {
    font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem;
    font-weight: 600; color: #fff; line-height: 1.4;
}
.case-status {
    background: rgba(197,160,89,.08); color: var(--gold);
    border: 1px solid rgba(197,160,89,.45);
    padding: 5px 15px; border-radius: 2px;
    font-size: .75rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase;
}
.case-meta {
    display: flex; gap: 20px; flex-wrap: wrap;
    font-size: .85rem; color: var(--muted); margin-bottom: 15px;
}
.case-meta span { display: flex; align-items: center; gap: 5px; }
.case-preview {
    font-size: .9rem; color: var(--text); line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.case-date { font-size: .75rem; color: var(--muted); margin-top: 15px; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; }
.page-btn {
    min-width: 44px; height: 44px; padding: 0 16px; background: var(--dark2);
    border: 1px solid var(--grey2); color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all .3s; border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* LOADING */
.loader { text-align: center; padding: 60px 0; color: var(--muted); }

/* FOOTER */
footer { background: var(--dark2); border-top: 1px solid var(--grey2); padding: 60px 5%; margin-top: 80px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-section h4 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); margin-bottom: 15px; }
.footer-section p, .footer-section a { font-size: .85rem; color: var(--muted); line-height: 1.8; text-decoration: none; display: block; }
.footer-section a:hover { color: var(--gold); }
.adv-footer-main { max-width: 1400px; margin: 32px auto 0; padding-top: 22px; border-top: 1px solid var(--grey2); color: var(--light); font-size: .86rem; line-height: 1.6; text-align: center; }
.adv-footer-note { max-width: 1400px; margin: 10px auto 0; color: var(--muted); font-size: .78rem; line-height: 1.7; text-align: center; }
.adv-footer-registry { text-align: center; margin: 6px 0; }
.adv-footer-note a { color: var(--gold); text-decoration: none; }

@media (max-width: 900px) {
    .page-container { flex-direction: column; padding-top: 100px; }
    .sidebar { width: 100%; }
    .nav-links { display: none; }
}
