/* Основной layout */
.blog-page-wrapper {
    display: flex;
    gap: 48px;
    padding: 80px 0;
    align-items: flex-start;
}

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

.blog-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* Основной контент */
.blog-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-page-title {
    color: #f5f5f5;
    margin-bottom: 16px;
}

.blog-page-description {
    color: #9c9c9c;
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px; /* Увеличили шрифт описания */
}

/* Информация о фильтрах */
.blog-filters-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(18, 14, 20, 0.66);
    border-radius: 8px;
    border: 1px solid rgba(244, 180, 77, 0.16);
}

.blog-filters-active {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-filters-label {
    color: #9c9c9c;
    font-weight: 600;
}

.blog-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(244, 180, 77, 0.1);
    border-radius: 4px;
    color: #f4b44d;
    font-size: 12px;
}

.filter-remove {
    display: flex;
    align-items: center;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filter-remove:hover {
    opacity: 1;
}

.filter-clear {
    font-size: 12px;
    font-weight: 600;
}

.blog-stats-count {
    color: #9c9c9c;
    font-weight: 600;
}

/* Сетка статей - Десктоп 3 колонки */
.blog-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(320px, auto);
    grid-auto-flow: dense;
}

/* Карточки статей */
.blog-article {
    width: 100%;
}

/* Большой пост 2x2 (первый/последний) */
.blog-article--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.blog-article--featured .blog-card {
    height: 100%;
}

.blog-article--featured .blog-card-image {
    height: 400px;
}

.blog-article--featured .blog-title {
    font-size: 28px;
}

.blog-article--featured .blog-excerpt {
    font-size: 17px;
    -webkit-line-clamp: 4;
}

/* Боковые посты (2 и 3) */
.blog-article--side {
    grid-column: 3;
}

.blog-article--side .blog-card-image {
    height: 180px;
}

.blog-article--side .blog-card-content {
    padding: 20px;
}

.blog-article--side .blog-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.blog-article--side .blog-excerpt {
    font-size: 14px;
    margin-bottom: 16px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-article--side .blog-btn {
    font-size: 14px;
    height: 44px;
    max-width: 180px;
}

/* Широкий пост 2x1 (Cryptogex новости) */
.blog-article--wide {
    grid-column: span 2;
}

.blog-article--wide .blog-card {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.blog-article--wide .blog-card-image {
    width: 45%;
    height: 100%;
    min-height: 280px;
    flex-shrink: 0;
}

.blog-article--wide .blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-article--wide .blog-title {
    font-size: 22px;
}

/* Обычные посты 1x1 */
.blog-article:not(.blog-article--featured):not(.blog-article--side):not(.blog-article--wide) .blog-card-image {
    height: 200px;
}

.blog-article:not(.blog-article--featured):not(.blog-article--side):not(.blog-article--wide) .blog-card-content {
    padding: 24px;
}

.blog-article:not(.blog-article--featured):not(.blog-article--side):not(.blog-article--wide) .blog-title {
    font-size: 18px;
}

.blog-article:not(.blog-article--featured):not(.blog-article--side):not(.blog-article--wide) .blog-excerpt {
    font-size: 15px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(18, 14, 20, 0.66);
    border: 1px solid rgba(244, 180, 77, 0.16);
    border-radius: 12px; /* Увеличили скругление */
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card-image {
    width: 100%;
    height: 492px; /* Фиксированная высота */
    overflow: hidden;
    position: relative;
}

.blog-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
}

.blog-card-content {
    padding: 32px; /* Увеличили отступы */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Увеличили отступ */
    gap: 16px;
}

.blog-category {
    flex-shrink: 0;
    font-size: 13px; /* Немного увеличили шрифт метки */
}

.blog-date {
    color: #9c9c9c;
    text-align: right;
    flex-shrink: 0;
    font-size: 15px; /* Увеличили шрифт даты */
}

.blog-title {
    color: #f5f5f5;
    margin-bottom: 20px; /* Увеличили отступ */
    line-height: 1.3;
    font-size: 20px; /* Увеличили шрифт заголовка */
    font-weight: 600;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-excerpt {
    color: #9c9c9c;
    margin-bottom: 28px; /* Увеличили отступ */
    flex-grow: 1;
    line-height: 1.7; /* Улучшили межстрочный интервал */
    font-size: 17px; /* Увеличили шрифт анонса */
}

.blog-footer {
    margin-top: auto;
}

.blog-btn {
    width: 100%;
    max-width: 220px; /* Немного увеличили кнопку */
    text-decoration: none;
    font-size: 16px; /* Увеличили шрифт кнопки */
    height: 52px; /* Увеличили высоту кнопки */
}

/* Infinite Scroll - Loader */
.blog-load-more {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 12px;
}

.blog-loader {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(244, 180, 77, 0.2);
    border-top-color: #f4b44d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: #f4b44d;
    font-size: 16px;
    font-weight: 500;
}

/* Сообщение о конце списка */
.blog-end-message {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
    margin-top: 40px;
}

.blog-end-message p {
    color: #9c9c9c;
    font-size: 16px;
    margin: 0;
}

/* Состояние пустого блога */
.blog-empty {
    text-align: center;
    padding: 80px 0;
    color: #9c9c9c;
    grid-column: 1 / -1;
}

.blog-empty .typo-p-xl {
    color: #f5f5f5;
    margin-bottom: 16px;
    font-size: 24px; /* Увеличили шрифт заголовка пустого состояния */
}

.blog-empty .typo-p-m {
    font-size: 18px; /* Увеличили шрифт описания пустого состояния */
}

/* ===== СТИЛИ САЙДБАРА ===== */
.blog-sidebar-wrapper {
    width: 100%;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding-bottom: 12px;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f4b44d, transparent);
    border-radius: 2px;
}

/* Карточка сайдбара */
.sidebar-card {
    background: rgba(18, 14, 20, 0.66);
    border: 1px solid rgba(244, 180, 77, 0.16);
    border-radius: 12px;
    padding: 28px;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sidebar-card:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(244, 180, 77, 0.1), transparent);
    border-radius: 12px;
    z-index: -1;
}

/* Поиск в сайдбаре */
.sidebar-search {
    position: relative;
}

.sidebar-search .field--search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    height: 52px;
    background: rgba(35, 31, 37, 0.8);
    border: 1px solid rgba(244, 180, 77, 0.3);
    border-radius: 8px;
    color: #f5f5f5;
    font-size: 15px; /* Увеличили шрифт поиска */
    padding: 0 50px 0 18px;
    transition: all 0.3s ease;
}

.sidebar-search input:focus {
    border-color: #f4b44d;
    box-shadow: 0 0 0 2px rgba(244, 180, 77, 0.1);
}

.sidebar-search input::placeholder {
    color: #9c9c9c;
    font-size: 15px; /* Увеличили шрифт плейсхолдера */
}

.sidebar-search svg {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #f4b44d;
}

/* Группы фильтров */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Радио кнопки */
.filter-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px 0; /* Увеличили отступы */
}

.filter-radio:hover {
    color: #f4b44d;
}

.filter-radio input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #9c9c9c;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-radio input:checked + .radio-custom {
    border-color: #f4b44d;
    background: #f4b44d;
}

.filter-radio input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #231f25;
    border-radius: 50%;
}

.radio-text {
    flex-grow: 1;
    color: #f5f5f5;
    font-size: 15px; /* Увеличили шрифт радио-кнопок */
    font-weight: 500;
}

/* Чекбоксы */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px 0; /* Увеличили отступы */
}

.filter-checkbox:hover {
    color: #f4b44d;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #9c9c9c;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkbox-custom {
    border-color: #f4b44d;
    background: #f4b44d;
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI3IiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjMjMxRjI1IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMCAxLjAzIDguOTQ0IDAgMy44OCA0LjkzOSAxLjA1NiAyLjE4NiAwIDMuMjE2IDMuODggN3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==') no-repeat center;
}

.checkbox-text {
    flex-grow: 1;
    color: #f5f5f5;
    font-size: 15px; /* Увеличили шрифт чекбоксов */
    font-weight: 500;
}

.category-count {
    font-size: 13px; /* Увеличили шрифт счетчика */
    color: #9c9c9c;
    font-weight: 400;
}

/* Список категорий */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Увеличили расстояние между категориями */
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px; /* Увеличили отступы */
    background: rgba(35, 31, 37, 0.6);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.category-item:hover {
    background: rgba(244, 180, 77, 0.1);
    border-color: rgba(244, 180, 77, 0.3);
    transform: translateX(4px);
}

.category-item.active {
    background: rgba(244, 180, 77, 0.15);
    border-color: rgba(244, 180, 77, 0.4);
}

.category-name {
    color: #f5f5f5;
    font-size: 15px; /* Увеличили шрифт категорий */
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-item:hover .category-name {
    color: #f4b44d;
}

.category-item.active .category-name {
    color: #f4b44d;
    font-weight: 600;
}

.category-posts-count {
    color: #9c9c9c;
    font-size: 13px; /* Увеличили шрифт счетчика */
    background: rgba(244, 180, 77, 0.1);
    padding: 4px 10px; /* Увеличили отступы */
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.category-item.active .category-posts-count {
    background: rgba(244, 180, 77, 0.2);
    color: #f4b44d;
}

/* Кнопка Telegram */
.telegram-section {
    background: linear-gradient(135deg, rgba(244, 180, 77, 0.05), transparent);
    border: 1px solid rgba(244, 180, 77, 0.2);
    border-radius: 8px;
    padding: 24px; /* Увеличили отступы */
    text-align: center;
}

.telegram-icon {
    width: 52px; /* Увеличили иконку */
    height: 52px;
    background: linear-gradient(135deg, #f4b44d, #f09c15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px; /* Увеличили отступ */
}

.telegram-icon svg {
    width: 26px; /* Увеличили SVG */
    height: 26px;
    fill: #231f25;
}

.telegram-title {
    color: #f5f5f5;
    font-size: 17px; /* Увеличили шрифт заголовка */
    font-weight: 600;
    margin-bottom: 10px; /* Увеличили отступ */
}

.telegram-desc {
    color: #9c9c9c;
    font-size: 14px; /* Увеличили шрифт описания */
    line-height: 1.4;
    margin-bottom: 20px; /* Увеличили отступ */
}

.telegram-btn {
    width: 100%;
    height: 48px; /* Увеличили высоту кнопки */
    background: linear-gradient(135deg, #f4b44d, #f09c15);
    color: #231f25;
    border: none;
    border-radius: 8px;
    font-size: 15px; /* Увеличили шрифт кнопки */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.telegram-btn:hover:before {
    left: 100%;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 180, 77, 0.3);
}

/* Разделители */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 180, 77, 0.3), transparent);
    margin: 28px 0; /* Увеличили отступы разделителей */
}

/* Ховер-эффекты */
@media (hover: hover) {
    .blog-card:hover {
        transform: translateY(-6px); /* Увеличили эффект подъема */
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(244, 180, 77, 0.4);
    }
    
    .blog-card:hover .blog-image {
        transform: scale(1.08); /* Увеличили эффект масштабирования */
    }
    
    .blog-card:hover .blog-title a {
        color: #f4b44d;
    }
    
    .blog-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(244, 180, 77, 0.4);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .blog-page-wrapper {
        flex-direction: column;
        padding: 40px 0;
        gap: 32px;
    }
    
    .blog-sidebar {
        width: 100%;
    }
    
    .sidebar-card {
        position: static;
        padding: 24px;
    }
    
    .blog-filters-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    /* Мобильная сетка - 1 колонка */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Сброс особых размеров на мобильных */
    .blog-article--featured,
    .blog-article--wide,
    .blog-article--side {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .blog-article--wide .blog-card {
        flex-direction: column;
    }
    
    .blog-article--wide .blog-card-image {
        width: 100%;
        height: 220px;
        min-height: auto;
    }
    
    .blog-card-image {
        height: 220px !important;
    }
    
    .blog-card-content {
        padding: 24px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-date {
        text-align: left;
    }
    
    .blog-title {
        font-size: 18px !important;
    }
    
    .blog-excerpt {
        font-size: 15px !important;
    }
    
    .blog-article--side .blog-card-content {
        padding: 24px;
    }
    
    .blog-article--side .blog-btn {
        font-size: 16px;
        height: 48px;
        max-width: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-sidebar {
        width: 280px;
    }
    
    /* Планшетная сетка - 2 колонки */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* На планшете все посты одинаковые - сбрасываем особые размеры */
    .blog-article--featured,
    .blog-article--wide,
    .blog-article--side {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .blog-article--wide .blog-card {
        flex-direction: column;
    }
    
    .blog-article--wide .blog-card-image {
        width: 100%;
        height: 200px;
        min-height: auto;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-article--featured .blog-card-image,
    .blog-article--side .blog-card-image {
        height: 200px;
    }
    
    .blog-article--featured .blog-title,
    .blog-article--side .blog-title,
    .blog-article--wide .blog-title {
        font-size: 18px;
    }
    
    .blog-article--side .blog-card-content {
        padding: 24px;
    }
    
    .blog-article--side .blog-excerpt {
        -webkit-line-clamp: 3;
    }
    
    .blog-article--side .blog-btn {
        font-size: 15px;
        height: 46px;
        max-width: 180px;
    }
}

@media (min-width: 1025px) {
    .blog-sidebar {
        width: 320px;
    }
}

@media (min-width: 1200px) {
    .blog-sidebar {
        width: 350px;
    }
    
    .blog-grid {
        gap: 28px;
    }
    
    .blog-article--featured .blog-card-image {
        height: 450px;
    }
}

/* Стили для загрузки и ошибок */
.blog-loading, .blog-error {
    text-align: center;
    padding: 80px 0; /* Увеличили отступы */
    color: #f4b44d;
    font-size: 20px; /* Увеличили шрифт */
    grid-column: 1 / -1;
}

.blog-loading:before {
    content: '';
    display: inline-block;
    width: 24px; /* Увеличили спиннер */
    height: 24px;
    border: 3px solid #f4b44d;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-error {
    color: #ff6b6b;
    font-size: 20px; /* Увеличили шрифт ошибки */
}

/* Стили для страницы отдельной записи */
.single-post-wrapper {
    padding: 80px 0;
    max-width: 800px; /* Фиксируем максимальную ширину */
    margin: 0 auto; /* Центрируем */
    width: 100%;
}

.single-post-article {
    margin-bottom: 60px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-category {
    margin-bottom: 20px;
}

.gold-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    background: rgba(244, 180, 77, 0.1);
    color: #ffffff !important; /* Белый цвет текста */
    border: 1px solid rgba(244, 180, 77, 0.3);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Для hover эффектов если нужно */
.gold-label:hover {
    background: rgba(244, 180, 77, 0.2);
    border-color: rgba(244, 180, 77, 0.5);
    color: #ffffff !important;
}

.single-post-title {
    color: #f5f5f5;
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: 36px;
    font-weight: 700;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #9c9c9c;
    font-size: 15px;
}

.single-post-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(244, 180, 77, 0.16);
    width: 100%;
    max-width: 798px; /* Фиксированная максимальная ширина */
    height: 492px; /* Фиксированная высота */
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.single-post-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.single-post-content {
    margin-bottom: 40px;
}

.post-content {
    color: #f5f5f5;
    line-height: 1.7;
    font-size: 17px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #f5f5f5;
    margin: 32px 0 16px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 28px;
    position: relative;
    padding-bottom: 12px;
}

.post-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f4b44d, transparent);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content h4 {
    font-size: 18px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 10px;
    position: relative;
}

.post-content ul li:before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #f4b44d;
    border-radius: 50%;
}

.post-content blockquote {
    border-left: 3px solid #f4b44d;
    padding: 20px 0 20px 24px;
    margin: 28px 0;
    background: rgba(244, 180, 77, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
    color: #f4b44d;
}

.post-content code {
    background: rgba(244, 180, 77, 0.1);
    color: #f4b44d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 15px;
}

.post-content pre {
    background: rgba(18, 14, 20, 0.8);
    border: 1px solid rgba(244, 180, 77, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    background: none;
    color: #f5f5f5;
    padding: 0;
}

.single-post-footer {
    padding: 28px 0;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
    border-bottom: 1px solid rgba(244, 180, 77, 0.2);
    margin: 40px 0;
}

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

.tags-label {
    color: #f4b44d;
    font-weight: 600;
    font-size: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(244, 180, 77, 0.1);
    color: #f4b44d;
    border: 1px solid rgba(244, 180, 77, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: rgba(244, 180, 77, 0.2);
    border-color: rgba(244, 180, 77, 0.4);
    transform: translateY(-1px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    padding: 32px 0;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f4b44d;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border: 1px solid rgba(244, 180, 77, 0.2);
    border-radius: 8px;
    background: rgba(244, 180, 77, 0.05);
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #f5f5f5;
    background: rgba(244, 180, 77, 0.1);
    border-color: rgba(244, 180, 77, 0.4);
    transform: translateY(-2px);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-next a {
    justify-content: flex-end;
}

.related-posts {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
}

.related-posts-title {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
}

.related-posts-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #f4b44d, transparent);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.related-post-card {
    background: rgba(18, 14, 20, 0.66);
    border: 1px solid rgba(244, 180, 77, 0.16);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 180, 77, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail {
    transform: scale(1.08);
}

.related-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-post-title {
    color: #f5f5f5;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title a {
    color: #f4b44d;
}

.related-post-excerpt {
    color: #9c9c9c;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}

.related-post-link {
    color: #f4b44d;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.related-post-link:hover {
    color: #f5f5f5;
    gap: 12px;
}

.no-related-posts {
    text-align: center;
    color: #9c9c9c;
    grid-column: 1 / -1;
    padding: 60px 0;
    font-size: 17px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 40px 0;
    }
    
    .single-post-title {
        font-size: 28px;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 16px;
        margin: 40px 0;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
        width: 100%;
    }
    
    .nav-previous a,
    .nav-next a {
        justify-content: center;
    }
    
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .single-post-wrapper {
        max-width: 90%;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Стили для типографии */
.typo-h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #f5f5f5;
}

.typo-h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #f5f5f5;
}

.typo-t2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #f5f5f5;
}

.typo-t3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #f5f5f5;
}

.typo-p-l {
    font-size: 17px;
    line-height: 1.7;
    color: #f5f5f5;
}

.typo-p-m {
    font-size: 15px;
    line-height: 1.6;
    color: #9c9c9c;
}

.link--yellow {
    color: #f4b44d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link--yellow:hover {
    color: #f5f5f5;
}
@media (max-width: 768px) {
    .blog-card-image {
        height: 300px; /* Меньшая высота на мобильных */
    }
    
    .single-post-image {
        height: 300px; /* Меньшая высота на мобильных */
    }
    
    .related-post-image {
        height: 180px; /* Меньшая высота на мобильных */
    }
}