*, *::before, *::after { box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
    color: #f8fafc;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }

.pub-header {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pub-logo {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-decoration: none;
    line-height: 1;
}

.pub-logo span:first-child { color: #ffffff; }
.pub-logo span:last-child { color: #8b5cf6; }

.pub-nav { display: flex; gap: 12px; flex-wrap: wrap; }

.pub-chip {
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid #6366f1;
    transition: transform .15s;
}

.pub-chip:hover { transform: translateY(-1px); }

.pub-chip-solid {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

.pub-main {
    flex: 1;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.pub-breadcrumb {
    font-size: 13px;
    color: #475569;
    margin-bottom: 28px;
}

.pub-breadcrumb a { color: #6366f1; text-decoration: none; }
.pub-breadcrumb a:hover { text-decoration: underline; }

.pub-page-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 12px;
}

.pub-h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pub-lead {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 40px 0;
    max-width: 640px;
}

.pub-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, .15);
    margin: 36px 0;
}

.pub-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin: 0 0 16px 0;
}

.pub-card {
    background: rgba(15, 23, 42, .72);
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.pub-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.pub-card-body {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

.pub-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.pub-footer {
    border-top: 1px solid rgba(148, 163, 184, .12);
    padding: 40px 24px;
}

.pub-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 32px;
}

.pub-footer-col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin: 0 0 14px 0;
}

.pub-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pub-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}

.pub-footer-col ul li a:hover { color: #e2e8f0; }

.pub-footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    border-top: 1px solid rgba(148, 163, 184, .08);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.pub-footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #334155;
}

.pub-footer-version {
    font-size: 12px;
    color: #64748b;
}

p { margin: 0 0 16px 0; }
