/* ===== ОСНОВНЫЕ СТИЛИ (копируем из blog.css) ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #fff8f7;
    color: #212121;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== ВЕРХНЕЕ МЕНЮ ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fefcfb;
    padding: 5px 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 99;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #982030;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

.nav-links {
    display: flex;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 540;
}

.nav-links a:hover {
    color: #94162C;
    transform: translateY(-2px);
}

/* АДАПТИВНОСТЬ ДЛЯ МЕНЮ */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 20px;
        width: 100%;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-links {
        position: static;
        transform: none;
        display: flex !important;
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 16px;
    }
}

/* ========== КОНТЕЙНЕР С SIDEBAR ========== */
.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.main-content {
    flex: 1;
    min-height: 100%;
    padding: 40px;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 270px;
    background: #FAFAF9;
    overflow-y: auto;
    box-shadow: 0.1px 0 2px rgba(0,0,0,0.05);
    flex-shrink: 0;
    padding: 20px 5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidebar-item:hover {
    border-left-color: #7F1D1D;
    padding-left: 35px;
    color: #7F1D1D;
    background: rgba(0,0,0,0.02);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    object-fit: contain;
}

.sidebar-text {
    font-size: 15px;
    font-weight: 500;
}

.heropi a {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #7F1D1D;
    font-size: 23px;
    padding: 0px 0px 0px 25px;
    font-weight: 700;
}

.heropi p {
    color: #A8A29E;
    font-size: 13px;
    padding: 0px 25px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ========== СТАТЬЯ ========== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}

.breadcrumbs {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #982030;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-category {
    background: #ffe7ea;
    color: #982030;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.article-date, .article-read-time {
    color: #666;
    font-size: 13px;
}

.article-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #982030;
}

.article-content h3 {
    font-size: 22px;
    margin: 25px 0 10px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 15px 0 20px 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #982030;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.article-cta {
    background: linear-gradient(135deg, #ffe7ea, #fff0f0);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 40px 0 30px;
}

.article-cta h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #212121;
}

.cta-button {
    display: inline-block;
    background: #982030;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #6b1522;
    transform: translateY(-3px);
}

.article-back {
    text-align: center;
    margin-top: 30px;
}

.back-button {
    display: inline-block;
    color: #982030;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
}

/* ========== ФУТЕР ========== */
.footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background-color: #982030;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
    clear: both;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        background: #FAFAF9;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .article-container {
        padding: 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-cta {
        padding: 25px;
    }
    
    .article-cta h3 {
        font-size: 20px;
    }
}