:root { color-scheme: dark; --panel: rgba(9, 14, 24, .84); --line: rgba(255,255,255,.16); --accent: #73d6ff; --text: #eef7ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #05070d; }
.background { position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(5,7,13,.32), rgba(5,7,13,.32)), url('/static/background.png') center top / cover repeat-y; }
.site-header { position: sticky; top: 0; z-index: 20; width: min(1060px, calc(100% - 28px)); margin: 0 auto; padding: 2px 16px 7px; text-align: center; background: linear-gradient(180deg, rgba(5,7,13,.94), rgba(5,7,13,.72)); border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 22px 22px; backdrop-filter: blur(10px); }
.logo { max-width: min(620px, 90vw); max-height: 160px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.65)); position: relative; z-index: 3; }
.tabs { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin-top: -14px; position: relative; z-index: 2; }
.tabs a { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 160px; min-width: 0; min-height: 54px; padding: 1px 3px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; color: var(--text); text-decoration: none; background: rgba(3,8,18,.16); box-shadow: none; }
.tabs a:hover, .button:hover { border-color: rgba(115,214,255,.45); transform: translateY(-1px); }
.tabs img { width: 100%; max-width: 150px; max-height: 52px; object-fit: contain; pointer-events: none; }
.container { width: min(1060px, calc(100% - 28px)); margin: 16px auto 60px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 22px; box-shadow: 0 18px 55px rgba(0,0,0,.38); }
.narrow { max-width: 460px; margin-inline: auto; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
h1, h2, h3 { margin-top: 0; letter-spacing: .02em; }
.content { line-height: 1.65; overflow-wrap: anywhere; }
.content img { max-width: 100%; border-radius: 14px; }
.content iframe { max-width: 100%; border-radius: 14px; }
.meta, .muted { color: #b8c7d8; font-size: .92rem; }
.actions { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.button, button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; color: #03111b; background: linear-gradient(135deg, #9ce8ff, #77ffcf); font-weight: 700; text-decoration: none; cursor: pointer; }
.small { padding: 7px 11px; font-size: .9rem; }
.danger { background: linear-gradient(135deg, #ff8e8e, #ffc0a1); }
.danger-text, .link-button { background: none; color: #ffb4b4; border: 0; padding: 0; font-weight: 700; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #dcefff; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--text); background: rgba(255,255,255,.08); }
textarea { resize: vertical; }
.rich-editor { min-height: 380px; }
.comments { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.comments-toggle { width: 100%; justify-content: space-between; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.comments-toggle::after { content: 'rozwin'; color: #9ce8ff; }
.comments-toggle.open::after { content: 'zwin'; }
.comments-body { margin-top: 14px; }
.comment { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.comment span { color: #aac0d0; font-size: .86rem; }
.comment-form { display: grid; gap: 10px; margin-top: 14px; }
.flash { padding: 12px 15px; border-radius: 14px; margin-bottom: 14px; background: rgba(255,255,255,.12); }
.flash.error { background: rgba(255, 77, 77, .25); }
.flash.success { background: rgba(75, 255, 176, .22); }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.table { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr .7fr 1.2fr 1.2fr .5fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.site-footer { width: min(1060px, calc(100% - 28px)); margin: 30px auto 24px; padding: 16px; text-align: center; color: #c2d3e2; background: rgba(3,8,18,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0; }
.pagination a, .pagination span { min-width: 42px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-align: center; text-decoration: none; background: rgba(3,8,18,.7); }
.pagination a.active { color: #03111b; background: linear-gradient(135deg, #9ce8ff, #77ffcf); font-weight: 700; }
@media (max-width: 760px) { .toolbar, .row, .grid-form { grid-template-columns: 1fr; display: grid; } .card { padding: 18px; } .site-header { padding-inline: 8px; } .logo { max-height: 104px; } .tabs { gap: 3px; margin-top: -8px; } .tabs a { flex-basis: 16.66%; min-height: 38px; padding: 0 1px; justify-content: center; } .tabs img { max-width: 100%; max-height: 36px; } .background { background-size: auto 112%; } }
