/* Shared front-end variables & resets — loaded by r.php, links.php, contact.php */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --font: "Plus Jakarta Sans", -apple-system, sans-serif;
    --bg:       #f5f5f0;
    --surface:  #ffffff;
    --border:   #e8e8e3;
    --border2:  #d8d8d3;
    --text:     #1a1a1a;
    --text-2:   #555550;
    --text-3:   #888880;
    --accent:   #4a4e69;
    --accent-h: #3d4158;
    --accent-s: rgba(74,78,105,0.07);
    --warn:     #e76f51;
    --radius:   8px;
    --shadow:   0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 0.9rem; line-height: 1.6; }

nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 56px; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.logo-name { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.nav-right { display: flex; gap: 4px; }
.nav-right a { padding: 6px 11px; border-radius: 6px; text-decoration: none; font-size: 0.82rem; font-weight: 500; color: var(--text-2); transition: background 0.12s, color 0.12s; }
.nav-right a:hover { background: var(--accent-s); color: var(--text); }

.ad-slot { text-align: center; padding: 10px 20px; }

.container { max-width: 800px; margin: 0 auto; padding: 32px 20px 64px; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); }
footer a { color: var(--text-3); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
    nav, footer { padding: 0 16px; }
    nav { height: 52px; }
    .container { padding: 20px 14px 48px; }
    footer { flex-direction: column; gap: 8px; text-align: center; height: auto; padding: 14px 16px; }
}
