:root {
  --bg: #0F0C0A; --surface: #17120F; --line: #3A2E24; --line-strong: #4A3C2F;
  --text: #F3EDE0; --muted: #CFC5B4; --faint: #8F8576; --gold: #F2B000; --gold-soft: #5A4520;
  --red: #C42A12; --red-bright: #E0452A;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: 'Alegreya Sans', system-ui, sans-serif; font-size: 18px; position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(180deg, rgba(15,12,10,.80) 0%, rgba(15,12,10,.93) 40%, rgba(15,12,10,.97) 100%), url('background.jpg');
  background-size: cover; background-position: center 30%;
}
a { color: var(--gold); }
a:hover { color: #FFD24D; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.topbar { max-width: 760px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: 'Cinzel', serif; font-weight: 800; font-size: 20px; }
.topbar .home img { width: 44px; height: auto; }
.topbar nav { display: flex; gap: 16px; font-size: 16px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--gold); }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
.crumbs { font-size: 14px; color: var(--faint); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
h1 { margin: 0 0 10px; font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: var(--gold); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.lead { margin: 0 0 8px; font-size: 20px; line-height: 1.55; color: #E4DBCB; }
.meta { margin: 0 0 26px; font-size: 14px; color: var(--faint); }

article { background: rgba(23,18,15,.92); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 10px; }
article h2 { margin: 28px 0 10px; font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold); }
article h2:first-child { margin-top: 0; }
article h3 { margin: 20px 0 8px; font-family: 'Cinzel', serif; font-size: 18px; color: var(--text); }
article p, article li { font-size: 18px; line-height: 1.7; color: var(--muted); }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 24px; }
article li { margin-bottom: 6px; }
article strong { color: var(--text); }
.tip { border-left: 3px solid var(--gold); background: rgba(242,176,0,.07); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 18px; }
.tip p { margin: 0; }
.warn { border-left-color: var(--red-bright); background: rgba(224,69,42,.08); }

.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--text); font-weight: 700; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }

.cta-box { margin: 28px 0; padding: 22px; border: 1px solid var(--gold); border-radius: 12px; background: rgba(23,18,15,.95); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box p { margin: 0; font-size: 18px; color: var(--text); line-height: 1.5; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 8px; background: var(--red); color: #fff; text-decoration: none; font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.btn:hover { background: #A82310; color: #fff; }

.related h2 { font-family: 'Cinzel', serif; font-size: 20px; color: var(--gold); margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: rgba(23,18,15,.92); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--gold); color: var(--text); }
.cards strong { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold); }
.cards span { font-size: 15px; color: var(--muted); line-height: 1.45; }

footer { background: rgba(12,10,8,.92); border-top: 1px solid var(--line); }
footer .wrap { max-width: 1120px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: center; font-size: 14px; line-height: 1.5; color: #B3A996; }
footer a { color: #B3A996; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  article { padding: 20px 18px 6px; }
  article p, article li { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .topbar .home span { display: none; }
}
