body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6f9; color: #333; margin: 0; padding: 40px; }
.container { max-width: 800px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.hub-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eaeaea; padding-bottom: 15px; margin-bottom: 25px; }
h1.hub-title { margin: 0; color: #111; font-size: 24px; border: none; padding: 0; }

.category { margin-bottom: 20px; border: 1px solid #e1e4e8; border-radius: 8px; background: #fafbfc; overflow: hidden; }

.category-header { padding: 15px 20px; background: #f1f3f5; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.2s; }
.category-header:hover { background: #e9ecef; }
.category-header h2 { font-size: 16px; color: #333; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; }

/* Стрелочки и подсказки аккордеона */
.toggle-icon { font-size: 13px; font-weight: normal; color: #0366d6; }
.category.collapsed .toggle-icon::before { content: "▸ Раскрыть"; }
.category:not(.collapsed) .toggle-icon::before { content: "▾ Свернуть"; color: #666; }

.category.collapsed .category-content { display: none !important; }

.category-content { padding: 15px 20px; background: #fff; border-top: 1px solid #e1e4e8; display: block; }
.link-card { background: #fafbfc; border: 1px solid #e1e4e8; padding: 15px 20px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.link-card:last-child { margin-bottom: 0; }
.link-card:hover { border-color: #0366d6; box-shadow: 0 2px 8px rgba(3,102,214,0.1); }

.link-info h3 { margin: 0 0 5px 0; font-size: 16px; }
.link-info h3 a { color: #0366d6; text-decoration: none; }
.link-info h3 a:hover { text-decoration: underline; }
.link-info p { margin: 0; font-size: 13px; color: #666; }

.link-slug { font-family: monospace; background: #e1e4e8; padding: 3px 6px; border-radius: 4px; font-size: 12px; color: #24292e; }
.badge-post { background: #d73a49; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: bold; margin-left: 5px; vertical-align: middle; }
.badge-count { background: #6c757d; color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: normal; margin-left: 8px; }

.btn-direct { background: #2ea44f; color: #fff; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn-direct:hover { background: #2c974b; }

.lang-switcher { font-size: 13px; font-weight: normal; cursor: pointer; color: #0366d6; }
.lang-switcher-wrap { white-space: nowrap; }

/* Жесткое управление языком через CSS-селекторы атрибутов */
body[data-current-lang="ru"] [data-lang="en"] { display: none !important; }
body[data-current-lang="en"] [data-lang="ru"] { display: none !important; }