:root {
    --primary: #222931;
    --primary-dark: #222931;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #222931;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --bg-body: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 12px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4 {
    width: 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== ШАПКА САЙТА ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.site-header .header-container {
    transition: all 0.3s ease;
    padding: 10px 0;
}

.site-header.header-scrolled .header-container {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.site-description {
    font-size: 13px;
    color: var(--gray-500);
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--border-color);
}

.custom-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

/* ===== НАВИГАЦИЯ ===== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    border-radius: 40px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    white-space: nowrap;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-navigation a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.main-navigation a:hover::before,
.main-navigation .current-menu-item a::before {
    width: 30px;
}

.main-navigation .current-menu-item a {
    color: var(--primary);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
}

.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--dropdown-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 100;
    display: block;
    margin-top: 10px;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--dropdown-bg, #ffffff);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    rotate: 45deg;
}

.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    border-radius: 0;
    white-space: nowrap;
    background: transparent;
    color: var(--dropdown-text, #334155) !important;
}

.main-navigation .sub-menu a::before {
    display: none;
}

.main-navigation .sub-menu a:hover {
    background: var(--dropdown-hover-bg, rgba(37, 99, 235, 0.05));
    color: var(--dropdown-hover, #2563eb) !important;
    padding-left: 25px;
}

/* ===== ДЕЙСТВИЯ В ШАПКЕ ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    color: var(--gray-600);
    width: 42px;
    height: 42px;
    border-radius: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== СТРОКА ПОИСКА ===== */
.search-bar {
    display: none;
    background: white;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 999;
}

.search-bar.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 14px 24px;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-primary);
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.search-form button {
    padding: 14px 30px;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    font-size: 15px;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: block !important;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.mobile-menu-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 18px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-500);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-content li {
    margin-bottom: 5px;
    position: relative;
}

.mobile-menu-content a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 16px;
    text-decoration: none;
}

.mobile-menu-content a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 24px;
}

.mobile-menu-content .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-content .menu-item-has-children > a::after {
    content: '▾';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mobile-menu-content .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.mobile-menu-content .sub-menu {
    padding-left: 20px;
    margin: 5px 0;
    display: none;
}

.mobile-menu-content .menu-item-has-children.open .sub-menu {
    display: block;
}

.mobile-menu-content .sub-menu a {
    font-size: 15px;
    padding: 10px 16px;
    color: var(--gray-600);
}

.mobile-menu-content .sub-menu a:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.mobile-menu-fallback {
    list-style: none;
    padding: 0;
}

.mobile-menu-fallback li {
    margin-bottom: 10px;
}

.mobile-menu-fallback a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
}

.mobile-menu-fallback a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-menu-overlay.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== КОНТЕНТ ===== */
.site-content {
    padding-top: 100px;
}


/* ===== HERO ДЛЯ АРХИВОВ - ИСПРАВЛЕННОЕ ВЫРАВНИВАНИЕ ===== */
.archive-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -100px;
    margin-bottom: 40px;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.archive-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 40px;
    max-width: 800px;
    text-align: left;
    margin-left: 0; /* Убираем автоматический отступ */
    margin-right: auto; /* Оставляем только справа */
}

.archive-hero-categories {
    margin-bottom: 15px;
    text-align: left;
}

.archive-hero-categories a {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 13px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    margin-right: 8px;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.archive-hero-categories a:hover {
    background: rgba(37, 99, 235, 0.8);
    transform: translateY(-2px);
}

.archive-hero-title {
    color: white;
    font-size: 48px;
    margin: 0 0 10px 0; /* Убираем автоматические отступы */
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.archive-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-top: 10px;
    margin-left: 0;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .archive-hero {
        height: 400px;
    }
    .archive-hero-title {
        font-size: 36px;
    }
    .archive-hero-content {
        padding: 80px 0 30px;
    }
}

@media (max-width: 768px) {
    .archive-hero {
        height: 350px;
        margin-top: -80px;
    }
    .archive-hero-title {
        font-size: 32px;
    }
    .archive-hero-content {
        padding: 60px 0 25px;
    }
}

@media (max-width: 576px) {
    .archive-hero {
        height: 300px;
    }
    .archive-hero-title {
        font-size: 28px;
    }
    .archive-hero-content {
        padding: 50px 0 20px;
    }
    .archive-hero-categories a {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ===== АРХИВЫ (ОБЫЧНЫЙ ЗАГОЛОВОК) ===== */
.archive-header {
    text-align: center;
    margin: 60px 0 40px;
}

.archive-title {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.archive-description {
    color: var(--gray-500);
    font-size: 18px;
}

/* ===== КАРТОЧКИ ПОСТОВ (НОВЫЙ ДИЗАЙН) ===== */
.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: transparent;
}

.post-card:hover::before {
    opacity: 1;
}

/* Обертка изображения */
.post-card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
}

.post-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image-wrapper img {
    transform: scale(1.08);
}

/* Категории на изображении */
.post-card-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* Автор и время на изображении */
.post-card-author-time {
    position: absolute;
    bottom: 15px;
    right: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.post-card:hover .post-card-author-time {
    background: rgba(37, 99, 235, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.author-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.post-card-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 12px;
    font-weight: 400;
}

.post-card-time svg {
    stroke: white;
    opacity: 0.9;
}

/* Контент карточки */
.post-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    z-index: 1;
}

.post-card-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.post-card-title a {
    color: var(--gray-900);
    transition: all 0.3s ease;
    background: linear-gradient(to right, var(--primary), #7c3aed);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.post-card-title a:hover {
    background-size: 100% 2px;
    color: var(--primary);
}

.post-card-excerpt {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Подвал карточки */
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.post-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.post-card-read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.post-card-read-more svg {
    transition: transform 0.3s ease;
}

.post-card-read-more:hover svg {
    transform: translateX(5px);
}

.post-card-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    padding: 5px 12px;
    background: var(--gray-100);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.post-card-comments:hover {
    background: var(--primary);
    color: white;
}

.post-card-comments svg {
    stroke: var(--gray-500);
    transition: all 0.3s ease;
}

.post-card-comments:hover svg {
    stroke: white;
}

/* Адаптивность */
@media (max-width: 992px) {
    .col-lg-6 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .post-card-title {
        font-size: 20px;
    }
    
    .post-card-author-time {
        padding: 8px 12px;
    }
    
    .author-name {
        display: none;
    }
    
    .post-card-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .post-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-card-read-more {
        width: 100%;
        justify-content: center;
    }
    
    .post-card-comments {
        width: 100%;
        justify-content: center;
    }
}

/* ===== HERO ДЛЯ СТАТЕЙ - ИСПРАВЛЕННОЕ ВЫРАВНИВАНИЕ ===== */
.post-hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -100px;
    margin-bottom: 30px;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.post-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 40px;
    max-width: 800px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.post-hero-categories {
    margin-bottom: 15px;
    text-align: left;
}

.post-hero-categories a {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 13px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    margin-right: 8px;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.post-hero-categories a:hover {
    background: rgba(37, 99, 235, 0.8);
    transform: translateY(-2px);
}

.post-hero-title {
    color: white;
    font-size: 48px;
    margin: 0 0 10px 0;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Адаптивность для post-hero */
@media (max-width: 992px) {
    .post-hero {
        height: 500px;
    }
    .post-hero-title {
        font-size: 36px;
    }
    .post-hero-content {
        padding: 80px 0 30px;
    }
}

@media (max-width: 768px) {
    .post-hero {
        height: 400px;
        margin-top: -80px;
    }
    .post-hero-title {
        font-size: 32px;
    }
    .post-hero-content {
        padding: 60px 0 25px;
    }
}

@media (max-width: 576px) {
    .post-hero {
        height: 350px;
    }
    .post-hero-title {
        font-size: 28px;
    }
    .post-hero-content {
        padding: 50px 0 20px;
    }
    .post-hero-categories a {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ===== МЕТА ИНФОРМАЦИЯ ПОСТА ===== */
.post-meta {
    background: var(--gray-100);
    padding: 20px 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-meta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 3px;
}

.post-date {
    color: var(--gray-500);
    font-size: 14px;
}

.post-meta-actions {
    display: flex;
    gap: 20px;
}

.post-reading-time,
.post-comments-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

/* ===== КОНТЕНТНАЯ ОБЛАСТЬ ===== */
.content-area {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content img {
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--card-shadow);
}

.entry-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-800);
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: var(--gray-300);
    font-family: serif;
}

.entry-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    color: var(--gray-600);
    transition: 0.2s;
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    margin: 60px 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--gray-600);
    border-radius: 40px;
    transition: 0.2s;
}

.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    margin-bottom: 50px;
}

.footer-widget {
    color: var(--gray-400);
}

.footer-widget .widget-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--gray-400);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.copyright {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-menu a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-menu a:hover {
    color: white;
}

/* ===== СТИЛИ ИЗ ЗАГЛУШКИ ФОРУМА ===== */
/* Заглушка форума */
.forum-placeholder {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.forum-placeholder::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 50%;
    z-index: 0;
}

.forum-placeholder::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 50%;
    z-index: 0;
}

.forum-placeholder-icon {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.forum-placeholder-icon svg {
    stroke: var(--primary);
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.forum-placeholder-title {
    font-size: 36px;
    color: var(--gray-800);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-placeholder-text {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.forum-placeholder-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    min-width: 140px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.feature-icon {
    font-size: 32px;
}

.feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.forum-placeholder-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.forum-placeholder-button {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.forum-placeholder-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.forum-placeholder-button.button-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.forum-placeholder-button.button-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.forum-placeholder-admin {
    margin-top: 40px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    border: 1px dashed var(--primary);
}

.admin-message {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 10px;
}

.admin-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.05);
}

/* ===== ПРИМЕНЕНИЕ СТИЛЕЙ К БЛОГУ ===== */
/* Стили для превью блога (карточки) */
.post-card .feature-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.post-card .feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.post-card .forum-placeholder-button {
    padding: 10px 25px;
    font-size: 14px;
}

/* Стили для комментариев */
.comment-respond {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.comment-respond::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 50%;
    z-index: 0;
}

.comment-respond::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(124, 58, 237, 0.02));
    border-radius: 50%;
    z-index: 0;
}

.comment-reply-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.comment-form {
    position: relative;
    z-index: 1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 20px;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.comment-form .form-submit {
    text-align: center;
}

.comment-form .submit {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.comment-form .submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Список комментариев */
.comment-list {
    list-style: none;
    margin: 40px 0;
}

.comment {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
}

.comment-meta {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 15px;
}

.comment-content {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Стили для виджетов */
.widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 50%;
    z-index: 0;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.widget ul {
    position: relative;
    z-index: 1;
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.widget a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ===== СТИЛИ ДЛЯ ФОРУМА WPFORO ===== */
#wpforo-wrap {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-family: var(--font-main) !important;
}

#wpforo-wrap .wpf-head-bar {
    background: var(--gray-100) !important;
    border-bottom: 2px solid var(--primary) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
}

#wpforo-wrap .wpf-head-bar .wpf-head-bar-left h1,
#wpforo-wrap .wpf-head-bar .wpf-head-bar-left h2 {
    color: var(--gray-800) !important;
    font-size: 24px !important;
    margin: 0 !important;
}

#wpforo-wrap table {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#wpforo-wrap table th {
    background: var(--gray-100) !important;
    color: var(--gray-800) !important;
    font-weight: 600 !important;
    padding: 12px !important;
}

#wpforo-wrap table td {
    padding: 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#wpforo-wrap .wpforo-post {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    padding: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
}

#wpforo-wrap .wpforo-post:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border-color: var(--primary) !important;
}

#wpforo-wrap .wpf-post-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

#wpforo-wrap .wpf-post-header .wpf-author a {
    color: var(--gray-800) !important;
    font-weight: 600 !important;
}

#wpforo-wrap .wpf-author-avatar img {
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
}

#wpforo-wrap .wpf-content {
    color: var(--gray-700) !important;
    line-height: 1.6 !important;
}

#wpforo-wrap .wpf-button,
#wpforo-wrap .wpf-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 25px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

#wpforo-wrap .wpf-button:hover,
#wpforo-wrap .wpf-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3) !important;
}

#wpforo-wrap input[type="text"],
#wpforo-wrap input[type="email"],
#wpforo-wrap input[type="password"],
#wpforo-wrap input[type="search"],
#wpforo-wrap textarea,
#wpforo-wrap select {
    background: var(--gray-50) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

#wpforo-wrap input:focus,
#wpforo-wrap textarea:focus,
#wpforo-wrap select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
    background: white !important;
}

#wpforo-wrap .wpf-stats {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-top: 30px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
}

#wpforo-wrap .wpf-stat-item {
    color: var(--gray-700) !important;
}

#wpforo-wrap .wpf-stat-value {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

#wpforo-wrap .wpf-breadcrumb {
    color: var(--gray-500) !important;
    margin-bottom: 15px !important;
}

#wpforo-wrap .wpf-breadcrumb a {
    color: var(--primary) !important;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .col-lg-4 {
        width: 50%;
    }
    .content-area {
        flex-direction: column;
    }
    .content-sidebar {
        width: 100%;
    }
    .post-hero {
        height: 500px;
    }
    .post-hero-title {
        font-size: 36px;
    }
    .archive-hero {
        height: 400px;
    }
    .archive-hero-title {
        font-size: 36px;
    }
    .forum-placeholder-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .col-md-6,
    .col-lg-4 {
        width: 100%;
    }
    .site-header .header-container {
        padding: 5px 0;
    }
    .site-content {
        padding-top: 80px;
    }
    .post-hero {
        height: 400px;
        margin-top: -80px;
    }
    .post-hero-title {
        font-size: 32px;
    }
    .archive-hero {
        height: 350px;
        margin-top: -80px;
    }
    .archive-hero-title {
        font-size: 32px;
    }
    .post-meta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-menu {
        justify-content: center;
        margin-top: 20px;
    }
    .forum-placeholder {
        padding: 60px 20px;
    }
    .forum-placeholder-title {
        font-size: 28px;
    }
    .forum-placeholder-features {
        gap: 15px;
    }
    .feature-item {
        min-width: 120px;
        padding: 15px;
    }
    .forum-placeholder-actions {
        flex-direction: column;
        gap: 10px;
    }
    .forum-placeholder-button {
        width: 100%;
        text-align: center;
    }
    .comment-respond {
        padding: 30px 20px;
    }
    .comment-reply-title {
        font-size: 24px;
    }
    
    #wpforo-wrap table,
    #wpforo-wrap tbody,
    #wpforo-wrap tr,
    #wpforo-wrap td {
        display: block !important;
    }
    
    #wpforo-wrap thead {
        display: none !important;
    }
    
    #wpforo-wrap tr {
        margin-bottom: 15px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
    }
    
    #wpforo-wrap td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .post-hero {
        height: 350px;
    }
    .post-hero-title {
        font-size: 28px;
    }
    .archive-hero {
        height: 300px;
    }
    .archive-hero-title {
        font-size: 28px;
    }
    .entry-content h2 {
        font-size: 28px;
    }
    .entry-content h3 {
        font-size: 22px;
    }
    .forum-placeholder {
        padding: 40px 15px;
    }
    .forum-placeholder-features {
        flex-direction: column;
        align-items: center;
    }
    .feature-item {
        width: 100%;
        max-width: 250px;
    }
    .forum-placeholder-title {
        font-size: 24px;
    }
    .forum-placeholder-text {
        font-size: 16px;
    }
    .comment-respond {
        padding: 25px 15px;
    }
    .comment-reply-title {
        font-size: 22px;
    }
}
/* ===== КРАСИВОЕ ОФОРМЛЕНИЕ КАРТИНОК ===== */
.entry-content {
    /* Контейнер для картинок */
    .wp-block-image {
        margin: 30px 0;
        position: relative;
    }
    
    .wp-block-image img {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .wp-block-image img:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    }
    
    /* Картинки с подписями */
    .wp-block-image figcaption {
        text-align: center;
        font-size: 14px;
        color: var(--gray-500);
        margin-top: 10px;
        font-style: italic;
        padding: 5px 10px;
        background: var(--gray-100);
        border-radius: 30px;
        display: inline-block;
    }
    
    /* Картинки с обтеканием */
    .alignleft {
        float: left;
        margin: 10px 20px 10px 0;
        max-width: 50%;
    }
    
    .alignright {
        float: right;
        margin: 10px 0 10px 20px;
        max-width: 50%;
    }
    
    .aligncenter {
        display: block;
        margin: 30px auto;
    }
    
    /* Галереи */
    .wp-block-gallery {
        margin: 30px 0;
    }
    
    .blocks-gallery-grid {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .blocks-gallery-item {
        margin: 0;
    }
    
    .blocks-gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .blocks-gallery-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    }
    
    /* Картинки внутри цитат */
    blockquote img {
        border-radius: 8px;
        margin: 15px 0;
    }
    
    /* Адаптивность для картинок */
    @media (max-width: 768px) {
        .alignleft,
        .alignright {
            float: none;
            max-width: 100%;
            margin: 20px 0;
        }
        
        .blocks-gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }
        
        .blocks-gallery-item img {
            height: 150px;
        }
    }
}