        /* ========== CSS Variables ========== */
        :root {
            --primary: #2e7d32;
            --primary-light: #4caf50;
            --primary-dark: #1b5e20;
            --primary-bg: #e8f5e9;
            --accent: #66bb6a;
            --text-dark: #1a1a2e;
            --text-light: #f5f5f5;
            --text-muted: #555;
            --bg-main: #f9fbf9;
            --bg-card: #ffffff;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.14);
            --radius: 16px;
            --radius-sm: 8px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --header-height: 70px;
            --img-height: 220px;
        }

        /* ========== Reset & Base ========== */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font);
            background: var(--bg-main);
            color: var(--text-dark);
            line-height: 1.6;
            padding-top: var(--header-height);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        a {
            text-decoration: none;
            color: inherit;
        }
        img {
            display: block;
            max-width: 100%;
        }
        ul {
            list-style: none;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
            width: 100%;
        }

        /* ========== Header ========== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
            z-index: 1000;
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(46, 125, 50, 0.10);
        }

        .header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-dark);
            flex-shrink: 0;
        }
        .logo i {
            font-size: 1.8rem;
            color: var(--primary);
        }
        .logo span {
            color: var(--primary-light);
        }

        /* Навигация */
        .nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .nav a {
            padding: 8px 18px;
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: var(--transition);
            color: var(--text-dark);
            position: relative;
        }
        .nav a:hover,
        .nav a.active {
            background: var(--primary-bg);
            color: var(--primary-dark);
        }
        .nav a.active::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            border-radius: 4px;
            background: var(--primary);
        }

        /* Бургер (мобильное меню) */
        .burger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            border-radius: var(--radius-sm);
            transition: var(--transition);
        }
        .burger:hover {
            background: var(--primary-bg);
        }
        .burger span {
            display: block;
            width: 28px;
            height: 3px;
            border-radius: 4px;
            background: var(--text-dark);
            transition: var(--transition);
        }
        .burger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        .burger.active span:nth-child(2) {
            opacity: 0;
        }
        .burger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* ========== Main Layout ========== */
        .main-wrap {
            flex: 1;
            padding: 40px 0 60px;
        }

        .page-content {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 40px;
            align-items: start;
        }

        /* ========== Статьи (карточки) ========== */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 28px;
        }

        .article-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }
        .article-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
        }

        /* Фиксированный размер изображения + object-fit */
        .article-card .card-img {
            width: 100%;
            height: var(--img-height);
            background: var(--primary-bg);
            overflow: hidden;
            position: relative;
            flex-shrink: 0;
        }
        .article-card .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* сохраняем пропорции, обрезаем лишнее */
            transition: transform 0.5s ease;
        }
        .article-card:hover .card-img img {
            transform: scale(1.03);
        }

        .article-card .card-body {
            padding: 20px 22px 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .article-card .card-meta {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .article-card .card-meta .category {
            background: var(--primary-bg);
            color: var(--primary-dark);
            padding: 2px 14px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .article-card .card-title {
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 10px;
            color: var(--text-dark);
            transition: var(--transition);
        }
        .article-card .card-title:hover {
            color: var(--primary);
        }
        .article-card .card-excerpt {
            font-size: 0.92rem;
            color: var(--text-muted);
            line-height: 1.5;
            flex: 1;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .article-card .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #f0f0f0;
            padding-top: 14px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .article-card .card-footer .author {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }
        .article-card .card-footer .author i {
            color: var(--primary);
        }
        .article-card .card-footer .date i {
            margin-right: 4px;
        }

        /* ========== Sidebar ========== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 32px;
            position: sticky;
            top: calc(var(--header-height) + 24px);
        }

        .sidebar-block {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 22px 24px 26px;
            box-shadow: var(--shadow);
        }
        .sidebar-block .block-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--primary-dark);
            border-bottom: 2px solid var(--primary-bg);
            padding-bottom: 12px;
        }
        .sidebar-block .block-title i {
            color: var(--primary);
        }

        /* Список статей в сайдбаре */
        .sidebar-articles {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .sidebar-article {
            display: flex;
            gap: 14px;
            align-items: flex-start;
            transition: var(--transition);
            padding: 6px 4px;
            border-radius: var(--radius-sm);
        }
        .sidebar-article:hover {
            background: var(--primary-bg);
        }
        .sidebar-article .sa-img {
            width: 80px;
            min-width: 80px;
            height: 65px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            background: var(--primary-bg);
            flex-shrink: 0;
        }
        .sidebar-article .sa-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .sidebar-article .sa-info {
            flex: 1;
            min-width: 0;
        }
        .sidebar-article .sa-info .sa-title {
            font-weight: 600;
            font-size: 0.92rem;
            line-height: 1.3;
            transition: var(--transition);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .sidebar-article:hover .sa-info .sa-title {
            color: var(--primary);
        }
        .sidebar-article .sa-info .sa-date {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 4px;
            display: block;
        }

        /* ========== Hero (главная) ========== */
        .hero {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
            color: #fff;
            border-radius: var(--radius);
            padding: 48px 44px;
            margin-bottom: 40px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            position: relative;
            overflow: hidden;
        }
        .hero::after {
            content: '🌱';
            position: absolute;
            right: 30px;
            bottom: 10px;
            font-size: 8rem;
            opacity: 0.12;
            pointer-events: none;
            transform: rotate(-8deg);
        }
        .hero-text {
            max-width: 600px;
            z-index: 1;
        }
        .hero-text h1 {
            font-size: 2.4rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 12px;
        }
        .hero-text p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 20px;
        }
        .hero-text .btn {
            display: inline-block;
            background: #fff;
            color: var(--primary-dark);
            padding: 12px 32px;
            border-radius: 50px;
            font-weight: 700;
            transition: var(--transition);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        }
        .hero-text .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
        }
        .hero-stats {
            display: flex;
            gap: 40px;
            z-index: 1;
            background: rgba(255, 255, 255, 0.10);
            padding: 20px 32px;
            border-radius: var(--radius);
            backdrop-filter: blur(4px);
            flex-wrap: wrap;
        }
        .hero-stats .stat {
            text-align: center;
        }
        .hero-stats .stat .num {
            font-size: 1.8rem;
            font-weight: 800;
            display: block;
        }
        .hero-stats .stat .label {
            font-size: 0.8rem;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ========== Page title ========== */
        .page-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 28px;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .page-title i {
            color: var(--primary);
        }

        /* ========== Footer ========== */
        .footer {
            background: var(--text-dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 40px 0 24px;
            margin-top: auto;
            border-top: 4px solid var(--primary);
        }
        .footer .container {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 40px;
        }
        .footer h4 {
            color: #fff;
            font-size: 1rem;
            margin-bottom: 14px;
        }
        .footer a {
            display: inline-block;
            margin-bottom: 6px;
            transition: var(--transition);
        }
        .footer a:hover {
            color: var(--primary-light);
        }
        .footer .copy {
            grid-column: 1 / -1;
            text-align: center;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 0.85rem;
            margin-top: 12px;
        }

        /* ========== Адаптивность ========== */

        /* Планшеты и маленькие ноутбуки */
        @media (max-width: 1024px) {
            .page-content {
                grid-template-columns: 1fr 280px;
                gap: 28px;
            }
            .hero-text h1 {
                font-size: 2rem;
            }
        }

        /* Мобильные устройства */
        @media (max-width: 820px) {
            .page-content {
                grid-template-columns: 1fr;
                gap: 36px;
            }
            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 24px;
            }
            .sidebar-block {
                padding: 18px 20px 22px;
            }
            .hero {
                padding: 32px 24px;
                flex-direction: column;
                align-items: flex-start;
            }
            .hero-stats {
                width: 100%;
                justify-content: space-around;
                padding: 16px;
            }
            .hero-text h1 {
                font-size: 1.7rem;
            }
            .footer .container {
                grid-template-columns: 1fr 1fr;
                gap: 30px;
            }
        }

        @media (max-width: 640px) {
            :root {
                --img-height: 180px;
                --header-height: 62px;
            }

            .container {
                padding: 0 16px;
            }

            /* Мобильное меню */
            .burger {
                display: flex;
            }
            .nav {
                position: fixed;
                top: var(--header-height);
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                flex-direction: column;
                padding: 16px 20px 30px;
                gap: 4px;
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
                transform: translateY(-120%);
                transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
                border-bottom: 1px solid rgba(0, 0, 0, 0.04);
                border-radius: 0 0 var(--radius) var(--radius);
            }
            .nav.open {
                transform: translateY(0);
            }
            .nav a {
                padding: 12px 18px;
                width: 100%;
                border-radius: var(--radius-sm);
                font-size: 1rem;
            }
            .nav a.active::after {
                display: none;
            }
            .nav a.active {
                background: var(--primary-bg);
                color: var(--primary-dark);
            }

            .sidebar {
                grid-template-columns: 1fr;
            }

            .hero {
                padding: 24px 18px;
                border-radius: var(--radius-sm);
            }
            .hero-text h1 {
                font-size: 1.4rem;
            }
            .hero-text p {
                font-size: 0.95rem;
            }
            .hero-stats {
                gap: 16px;
                padding: 14px;
            }
            .hero-stats .stat .num {
                font-size: 1.3rem;
            }

            .articles-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .article-card .card-body {
                padding: 16px 18px 18px;
            }
            .article-card .card-title {
                font-size: 1.05rem;
            }

            .footer .container {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .footer .copy {
                padding-top: 16px;
                margin-top: 4px;
            }

            .page-title {
                font-size: 1.4rem;
            }

            .sidebar-article .sa-img {
                width: 70px;
                min-width: 70px;
                height: 56px;
            }
        }

        @media (max-width: 400px) {
            :root {
                --img-height: 160px;
            }
            .logo {
                font-size: 1.1rem;
            }
            .logo i {
                font-size: 1.4rem;
            }
            .hero-stats .stat .num {
                font-size: 1.1rem;
            }
            .hero-stats .stat .label {
                font-size: 0.65rem;
            }
            .sidebar-block {
                padding: 14px 16px 18px;
            }
        }

        /* ========== Утилиты ========== */
        .text-center {
            text-align: center;
        }
        .mt-16 {
            margin-top: 16px;
        }
        .mb-16 {
            margin-bottom: 16px;
        }
        .gap-8 {
            gap: 8px;
        }
        .flex {
            display: flex;
        }
        .flex-center {
            align-items: center;
            justify-content: center;
        }

        /* Анимация появления */
        .fade-in {
            animation: fadeUp 0.6s ease forwards;
            opacity: 0;
        }
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .fade-in:nth-child(1) {
            animation-delay: 0.05s;
        }
        .fade-in:nth-child(2) {
            animation-delay: 0.10s;
        }
        .fade-in:nth-child(3) {
            animation-delay: 0.15s;
        }
        .fade-in:nth-child(4) {
            animation-delay: 0.20s;
        }
        .fade-in:nth-child(5) {
            animation-delay: 0.25s;
        }
        .fade-in:nth-child(6) {
            animation-delay: 0.30s;
        }
/* ========== Шапка статьи: картинка слева, текст справа (всегда) ========== */
.article-header-flex {
    display: grid;
    grid-template-columns: 80px 1fr;  /* фиксированная ширина для картинки, остальное для текста */
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeaea;
}

/* Миниатюра – компактная, как в сайдбаре */
.post-thumbnail-compact {
    width: 80px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0; /* на всякий случай */
}

.post-thumbnail-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Текстовая часть */
.article-header-text {
    overflow: hidden; /* чтобы текст не вылезал */
}

.article-header-text .entry-title {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.entry-meta .category {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 0 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 24px;
    text-transform: uppercase;
}

/* ========== Адаптивность: на очень маленьких экранах можно оставить слева, но уменьшить размер ========== */
@media (max-width: 500px) {
    .article-header-flex {
        grid-template-columns: 60px 1fr; /* уменьшаем картинку */
        gap: 12px;
    }
    .post-thumbnail-compact {
        width: 60px;
        height: 50px;
    }
    .article-header-text .entry-title {
        font-size: 1.1rem;
    }
    .entry-meta {
        font-size: 0.75rem;
        gap: 8px;
    }
}

/* Если вы всё же хотите, чтобы на мобилках картинка была сверху – раскомментируйте блок ниже */
/*
@media (max-width: 400px) {
    .article-header-flex {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .post-thumbnail-compact {
        width: 100%;
        height: auto;
        max-height: 180px;
        margin: 0 auto;
    }
}
*/
/* Чтобы ссылка вела на статью и занимала всю область картинки */
.card-img-link {
    display: block;
    line-height: 0; /* убираем лишний отступ снизу */
}

/* Убедимся, что hover-эффект масштабирования работает */
.article-card:hover .card-img img {
    transform: scale(1.03);
}