/* ===== ПЕРЕМЕННЫЕ ТЁМНОЙ ТЕМЫ (по умолчанию) ===== */ :root { --bg: #18181a; --header-bg: #242427; --card-bg: #242427; --text: #e8e8e8; --text-dim: #9e9e9e; --accent: #f59e0b; --accent-hover: #d97706; --border: #333336; --radius: 20px; } /* ===== ПЕРЕМЕННЫЕ СВЕТЛОЙ ТЕМЫ ===== */ html.light-theme { --bg: #f4f4f5; --header-bg: #ffffff; --card-bg: #ffffff; --text: #18181b; --text-dim: #71717a; --accent: #0071FF; --accent-hover: #0056b3; --border: #e4e4e7; } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color 0.3s, color 0.3s; display: flex; flex-direction: column; min-height: 100vh; } a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; } a:hover { opacity: 0.8; } /* ===== ИСПРАВЛЕННАЯ ШАПКА ===== */ .header { position: sticky; top: 20px; z-index: 100; max-width: 1100px; margin: 0 auto; width: calc(100% - 40px); background: var(--header-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; /* Разносит блок с логотипом/ссылками и шестерёнку по краям */ padding: 16px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: background-color 0.3s; } /* Группируем лого и ссылки в один flex-контейнер */ .headerBlock { display: flex; align-items: center; gap: 40px; /* Расстояние между лого и ссылками */ } .headerLogo { font-size: 1.3rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; text-decoration: none; } .headerLogo:hover { opacity: 0.8; } .headerLinks { display: flex; gap: 20px; /* Расстояние между ссылками */ align-items: center; } .headerLinks a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; } .headerLinks a:hover { color: var(--text); opacity: 1; } .headerLinks a.active { color: var(--accent); font-weight: 600; } .themeToggle { background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: background 0.2s; } .themeToggle:hover { background: rgba(255,255,255,0.1); } html.light-theme .themeToggle:hover { background: rgba(0,0,0,0.05); } /* ===== MAIN ===== */ .main { flex: 1; max-width: 1000px; margin: 0 auto; width: 100%; padding: 50px 24px 60px; } /* ===== ЗАГОЛОВОК ===== */ .pageTitleBlock { text-align: center; padding: 30px 0 40px; } .pageTitle { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -1px; color: var(--text); } .pageSubtitle { margin-top: 14px; color: var(--text-dim); font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; } /* ===== БЛОКИ ===== */ .aboutBlock, .rulesBlock { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-bottom: 24px; transition: background-color 0.3s, border-color 0.3s; } .aboutTitle, .rulesTitle { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 24px; color: var(--text); } .rulesCount { color: var(--text-dim); font-weight: 600; font-size: 0.7em; } .aboutBlockText { color: var(--text-dim); font-size: 1.02rem; } /* ===== СПИСОК ПРАВИЛ ===== */ .rulesList { display: flex; flex-direction: column; gap: 14px; } .ruleItem { display: flex; gap: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; align-items: flex-start; } .ruleItem:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); } .ruleEmoji { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; background: var(--card-bg); border-radius: 14px; border: 1px solid var(--border); } .ruleContent { flex: 1; } .ruleNum { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; } .ruleContent p { color: var(--text); font-size: 0.98rem; } .ruleContent a { text-decoration: underline; } /* ===== ВАРНИНГ ===== */ .warningBanner { margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--accent); font-size: 0.95rem; } html.light-theme .warningBanner { background: rgba(0, 113, 255, 0.08); border-color: rgba(0, 113, 255, 0.2); color: var(--accent); } /* ===== АДМИНИСТРАЦИЯ ===== */ .adminGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } .adminCard { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 26px; transition: border-color 0.2s; } .adminCard:hover { border-color: var(--accent); } .adminCard h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--text); } .adminCard p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; } .adminCard ul, .adminCard ol { padding-left: 20px; color: var(--text-dim); font-size: 0.95rem; } .adminCard li { margin-bottom: 8px; } .adminNote { margin-top: 14px; } .tag { font-size: 0.85rem; font-weight: 600; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--accent); } /* ===== ПОДВАЛ ===== */ .footer { background: var(--header-bg); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: auto; transition: background-color 0.3s; } .footerBlock { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; } .footerLogo { font-size: 1.3rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; } .footerLinks { display: flex; gap: 24px; flex-wrap: wrap; } .footerLinks a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; } .footerLinks a:hover { color: var(--text); opacity: 1; } /* ===== АДАПТИВ ===== */ @media (max-width: 820px) { .header { top: 10px; width: calc(100% - 20px); padding: 16px; } .headerBlock { gap: 20px; } .headerLinks { display: none; /* Скрываем ссылки на мобилке, чтобы не ломать шапку */ } .aboutBlock, .rulesBlock { padding: 24px; } .main { padding: 24px 16px 60px; } .footerBlock { flex-direction: column; text-align: center; } .footerLinks { justify-content: center; } } @media (max-width: 480px) { .ruleItem { flex-direction: column; gap: 12px; } .ruleEmoji { width: 44px; height: 44px; font-size: 1.3rem; } .footerLinks { flex-direction: column; gap: 12px; } }