/* txru.ru — base styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --yellow: #ffdd22;
    --yellow-dark: #f5c400;
    --red: #e53935;
    --green: #2e7d32;
    --blue: #0066cc;
    --text: #111;
    --text-muted: #666;
    --text-faint: #999;
    --border: #eee;
    --bg-subtle: #f8f8f8;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff; color: var(--text); line-height: 1.5;
    min-height: 100vh; display: flex; flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; width: 100%; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: .75rem 0; position: sticky; top: 0;
    background: #fff; z-index: 100;
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--text); }
.logo span { border: 2px solid var(--text); border-radius: 6px; padding: 0 4px; margin-left: 2px; font-size: 1.4rem; }

.nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.nav a:hover { color: var(--text); }
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
    margin-left: 3px; vertical-align: middle; display: none;
}
.user-chip {
    display: flex; align-items: center; gap: .5rem;
    background: var(--bg-subtle); padding: .35rem .75rem;
    border-radius: 20px; font-size: .85rem; text-decoration: none; color: var(--text);
}
.user-avatar {
    width: 24px; height: 24px; background: var(--yellow); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}

/* Main */
main { flex: 1; padding: 2rem 0; }

/* Buttons */
.btn {
    display: inline-block; background: var(--yellow); color: var(--text);
    padding: .6rem 1.25rem; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
    transition: background .15s;
}
.btn:hover { background: var(--yellow-dark); }
.btn-secondary { background: var(--bg-subtle); color: var(--text-muted); }
.btn-secondary:hover { background: #e8e8e8; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border); padding: 1.5rem 0;
    text-align: center; font-size: .75rem; color: var(--text-faint);
}

@media (max-width: 600px) {
    .nav { gap: .75rem; }
    main { padding: 1.25rem 0; }
}
