﻿/* ===========================================
   Палитра
   primary:   #e8364f
   dark:      #1e1e2f
   neutral:   #8b8b8b
   sheet:     #fff
   border:    #e4e4e4
   =========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font: 16px/1.7 "Segoe UI", Arial, sans-serif;
    color: #333;
    background: #2a2a2a;
    min-height: 100vh;
}

a { color: #e8364f; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* === BLURRED BACKGROUND === */
.bg-blur {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: url('/images/bg.jpg') center/cover no-repeat;
    filter: blur(18px);
    transform: scale(1.1);
}

/* === PAGE SHEET === */
.page-sheet {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 30px auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0,0,0,.35);
    overflow: hidden;
}

/* === HEADER === */
.site-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid #e4e4e4;
}

.site-logo {
    font-size: 28px;
    font-weight: 900;
    color: #1e1e2f;
    font-style: italic;
    letter-spacing: -0.5px;
    display: block;
}

.site-logo:hover { color: #e8364f; text-decoration: none; }

.site-desc {
    font-size: 12px;
    color: #8b8b8b;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === BREADCRUMB BAR === */
.crumb-bar {
    background: #e8364f;
    padding: 10px 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { color: rgba(255,255,255,.4); font-size: 11px; }
.breadcrumb li:last-child a { color: #fff; font-weight: 600; }


/* =============================================
   HUB PAGE
   ============================================= */

.hub-head {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e4e4e4;
}

.hub-head h1 {
    font-size: 26px;
    color: #1e1e2f;
    margin-bottom: 4px;
}

.hub-subtitle {
    font-size: 14px;
    color: #8b8b8b;
}

/* --- Article list --- */
.hub-list {
    display: flex;
    flex-direction: column;
}

.hub-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 32px;
    border-bottom: 1px solid #f0f0f2;
    color: #333;
    transition: background .1s;
}

.hub-item:last-child {
    border-bottom: none;
}

.hub-item:hover {
    background: #fdf6f7;
    text-decoration: none;
}

.hub-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e1e2f;
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.hub-item:hover .hub-item-title {
    color: #e8364f;
}

.hub-item-date {
    font-size: 12px;
    color: #8b8b8b;
    white-space: nowrap;
    flex-shrink: 0;
}


/* =============================================
   ARTICLE PAGE
   ============================================= */

.content-grid {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.main-col {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid #e4e4e4;
}

/* --- Article head --- */
.article-head {
    padding: 24px 32px 20px;
    border-bottom: 1px solid #f0f0f2;
}

.article-head h1 {
    font-size: 24px;
    line-height: 1.3;
    color: #1e1e2f;
    margin-bottom: 8px;
}

.article-badges {
    margin-bottom: 10px;
    font-size: 0;
}

.article-badges a {
    display: inline-block;
    padding: 3px 12px;
    background: #e8364f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-right: 6px;
    letter-spacing: 0.3px;
}

.article-badges a:hover { background: #c62c42; text-decoration: none; }

.article-meta {
    font-size: 13px;
    color: #8b8b8b;
    margin-bottom: 10px;
}

.meta-sep { margin: 0 6px; }
.meta-upd { font-style: italic; }
.meta-author { color: #555; font-weight: 600; }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    background: #fce4e8;
    border-radius: 12px;
    font-size: 12px;
    color: #e8364f;
}

/* --- Article body --- */
.article-body {
    padding: 28px 32px 32px;
}

.article-body h2 {
    font-size: 20px;
    color: #1e1e2f;
    margin: 32px 0 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f2;
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 17px;
    color: #333;
    margin: 24px 0 8px;
}

.article-body p { margin-bottom: 12px; }

.article-body ul,
.article-body ol {
    margin: 0 0 16px 24px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #1e1e2f; }

.article-body blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 3px solid #e8364f;
    background: #fdf6f7;
    font-size: 15px;
    color: #555;
    border-radius: 0 3px 3px 0;
}

.article-body .note {
    margin: 20px 0;
    padding: 14px 18px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 3px solid #f9a825;
    border-radius: 0 3px 3px 0;
    font-size: 14px;
}

.article-body .note strong { color: #e65100; }

/* --- Sidebar widget --- */
.widget { margin: 0; }

.widget-head {
    padding: 14px 20px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #e8364f;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.widget-list { padding: 0; margin: 0; }

.widget-item {
    padding: 14px 20px;
    border-top: 1px solid #f0f0f2;
}

.widget-item:first-child { border-top: none; }

.widget-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 3px;
}

.widget-link:hover { color: #e8364f; text-decoration: none; }
.widget-date { font-size: 11px; color: #8b8b8b; }


/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    background: #1e1e2f;
    padding: 18px 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.5); }
.footer-links a:hover { color: #fff; text-decoration: none; }


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 860px) {
    .page-sheet {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bg-blur { display: none; }
    body { background: #fff; }

    .content-grid { flex-direction: column; }

    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e4e4e4;
    }
}

@media (max-width: 600px) {
    .site-header { padding: 18px 16px 14px; }
    .crumb-bar { padding: 8px 16px; }

    .hub-head { padding: 20px 16px 14px; }
    .hub-head h1 { font-size: 22px; }
    .hub-item { padding: 12px 16px; flex-direction: column; gap: 2px; }
    .hub-item-title { padding-right: 0; }

    .article-head,
    .article-body { padding-left: 16px; padding-right: 16px; }
    .article-head h1 { font-size: 20px; }
    .article-body h2 { font-size: 18px; }

    .site-footer { padding: 14px 16px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}