:root { --bg:#0f0f10; --card:#19191b; --line:#2c2c30; --text:#f3f1ec; --muted:#a09d96; --accent:#e9b872; }
* { box-sizing: border-box; }
body { min-height:100vh; display:flex; flex-direction:column; margin:0; background:var(--bg); color:var(--text); font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; line-height:1.6; }
a { color:var(--accent); }
.wrap { max-width:760px; margin:0 auto; padding:0 20px; }
main { padding:48px 0 64px; flex:1; width:100%; min-width:0; }
.wrap.wide { max-width:1200px; padding:0 28px; }
.eyebrow { color:var(--accent); letter-spacing:.18em; text-transform:uppercase; font-size:12px; margin:0 0 10px; }
h1 { font-size:clamp(28px,4.5vw,42px); font-weight:600; line-height:1.15; margin:0 0 12px; }
.lead { color:var(--muted); margin:0 0 36px; }
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; margin-bottom:16px; color:inherit; text-decoration:none; transition:border-color .15s; }
.card:hover { border-color:#55555b; }
.card h2 { margin:0 0 6px; font-size:20px; font-weight:600; }
.card p { margin:8px 0 0; color:var(--muted); font-size:15px; }
.meta { color:var(--muted); font-size:13px; }
.article h2 { font-size:24px; margin:36px 0 10px; }
.article h3 { font-size:19px; margin:28px 0 8px; }
.article p, .article li { font-size:17px; }
.article ul { padding-left:22px; }
.back { display:inline-block; margin-bottom:24px; font-size:14px; text-decoration:none; }
/* admin */
form.panel { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; }
label { display:block; font-size:14px; margin:16px 0 6px; color:var(--muted); }
input[type=text], input[type=password], input[type=date], textarea { width:100%; font:inherit; color:var(--text); background:#111113; border:1px solid var(--line); border-radius:10px; padding:11px 12px; }
textarea { min-height:320px; resize:vertical; font-family:ui-monospace,Consolas,monospace; font-size:14px; }
input:focus, textarea:focus { outline:2px solid var(--accent); outline-offset:1px; }
.btn { font:inherit; font-weight:600; cursor:pointer; border-radius:999px; padding:11px 22px; border:1px solid var(--accent); background:var(--accent); color:#0f0f10; text-decoration:none; display:inline-block; }
.btn.ghost { background:transparent; color:var(--text); border-color:var(--line); }
.btn.danger { background:transparent; color:#ff8a80; border-color:#5a2c2c; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:20px; }
.check { display:flex; align-items:center; gap:8px; margin-top:16px; color:var(--text); }
.check input { width:auto; }
.notice { border-left:2px solid var(--accent); padding:4px 0 4px 14px; color:var(--muted); margin:0 0 20px; font-size:14px; }
.error { border-left-color:#ff8a80; color:#ff8a80; }
table { width:100%; border-collapse:collapse; }
td { padding:12px 0; border-top:1px solid var(--line); vertical-align:middle; }
td.actions { text-align:right; white-space:nowrap; }
.tag { font-size:11px; letter-spacing:.08em; text-transform:uppercase; border:1px solid var(--line); border-radius:999px; padding:2px 8px; color:var(--muted); margin-left:8px; }
.tag.live { color:var(--accent); border-color:var(--accent); }

/* header (matches the main site) */
.site-head { background:#0f0f10; position:sticky; top:0; z-index:10; }
.site-head .bar { border-bottom:1px solid var(--line); }
.site-head .bar .wrap { display:flex; align-items:center; justify-content:space-between; height:70px; }
.site-head .logo { display:flex; }
.site-head .logo img { display:block; }
.btn-contact { background:#b07a50; color:#fff; text-decoration:none; font-weight:600; font-size:14px; padding:11px 22px; border-radius:999px; }
.btn-contact:hover { background:#c28a5e; }
.site-head .navbar { border-bottom:1px solid var(--line); overflow-x:auto; }
.nav { display:flex; gap:32px; align-items:center; height:50px; white-space:nowrap; }
.nav a { color:var(--text); text-decoration:none; font-size:14.5px; font-weight:500; opacity:.9; }
.nav a:hover, .nav a.on { color:var(--accent); opacity:1; }
/* footer (matches the main site) */
.footer { background:#1a1a1a; color:#cfcbc4; margin-top:auto; padding:64px 0 28px; }
.foot-grid { display:grid; grid-template-columns:1.3fr repeat(4,1fr); gap:40px; }
.foot-brand img { display:block; margin-bottom:18px; }
.foot-brand p { margin:0 0 18px; font-size:14px; line-height:1.6; color:#b5b1aa; }
.contacts { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.contacts a { color:#fff; text-decoration:none; }
.contacts span { color:#b5b1aa; }
.foot-col h3 { margin:0 0 16px; font-size:14px; font-weight:600; color:#fff; }
.foot-col a { display:block; color:#b5b1aa; text-decoration:none; font-size:14px; padding:5px 0; }
.foot-col a:hover { color:#fff; }
.foot-bottom { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:48px; padding-top:22px; border-top:1px solid #333; font-size:12.5px; letter-spacing:.04em; color:#8d8982; }
.foot-bottom nav a { color:#8d8982; text-decoration:none; margin-left:20px; }
.foot-bottom nav a:hover { color:#fff; }
@media (max-width:980px){ .foot-grid { grid-template-columns:repeat(2,1fr); } .foot-brand { grid-column:1/-1; } }
@media (max-width:560px){ .nav { gap:22px; } .site-head .bar .wrap { height:60px; } }
/* images, PDF and editor tools */
.article img { max-width:100%; height:auto; border-radius:12px; display:block; margin:18px 0; }
iframe.pdf { width:100%; height:80vh; min-height:480px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.tools { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:0 0 10px; }
.tools .btn { padding:8px 16px; font-size:14px; }
/* post pages: text and pictures share one column, so the text runs as wide as the image */
.wrap.article { max-width:920px; }
.article img { width:100%; max-width:100%; height:auto; }
.article, .article p { overflow-wrap:break-word; }
