/* TYNX PREMIUM BLOG CSS */

/* --- СЕТКА БЛОГА (BENTO CARDS) --- */
.tynx-blog-hero {
    padding: 160px 0 80px;
    background: #fafcff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tynx-blog-hero::before {
    content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 300px;
    background: radial-gradient(circle, rgba(102, 51, 238, 0.08) 0%, transparent 70%);
    border-radius: 50%; z-index: 1; pointer-events: none;
}
.tynx-blog-hero .container { position: relative; z-index: 2; }
.tynx-blog-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800; color: #1a202c; letter-spacing: -1.5px; margin-bottom: 20px;
}
.tynx-blog-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px; color: #4a5568; line-height: 1.6; max-width: 600px; margin: 0 auto;
}

.tynx-blog-grid {
    padding: 60px 0 100px;
    background: #ffffff;
}
.tynx-blog-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 0;
    height: 100%; display: flex; flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-decoration: none !important;
    overflow: hidden;
}
.tynx-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 51, 238, 0.06);
    border-color: rgba(102, 51, 238, 0.2);
}
.tynx-blog-thumb {
    width: 100%; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; margin-bottom: 0; background-color: #f8fafc;
}
.tynx-blog-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.tynx-blog-card:hover .tynx-blog-thumb img { transform: scale(1.05); }
.tynx-blog-cat {
    display: inline-block; padding: 6px 14px; background: rgba(102,51,238,0.08);
    color: #6633EE; border-radius: 30px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.tynx-blog-heading {
    font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700;
    color: #1a202c; letter-spacing: -0.5px; line-height: 1.4; margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tynx-blog-excerpt {
    font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 20px; flex-grow: 1;
}
.tynx-blog-meta {
    font-size: 13px; color: #94a3b8; font-weight: 500; display: flex; align-items: center; justify-content: space-between;
}

/* --- SINGLE ARTICLE (PREMIUM REDESIGN) --- */
/* --- ВЕСЬ ДИЗАЙН SINGLE ОПРЕДЕЛЕН ЧЕРЕЗ INLINE СТИЛИ В SINGLE.PHP --- */
@media (max-width: 768px) {
    .tynx-suvvy-cover-card { border-radius: 20px !important; padding: 60px 20px !important; }
    .tynx-single-content { padding: 30px 20px !important; }
    .tynx-single-hero-suvvy { padding-top: 100px !important; }
}

.tynx-single-content {
    font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.85; color: #334155;
}
.tynx-single-content h2 {
    font-weight: 800; color: #0f172a; letter-spacing: -0.5px; margin-top: 50px; margin-bottom: 24px; font-size: 32px;
}
.tynx-single-content ol li::marker { color: #6633EE; font-weight: 700; }
.tynx-single-content a { color: #6633EE; text-decoration: none; font-weight: 600; border-bottom: 2px solid rgba(102, 51, 238, 0.2); transition: all 0.3s ease; }
.tynx-single-content a:hover { border-bottom-color: #6633EE; }

/* =====================================================================
   СУПЕР ДИЗАЙН ЦИТАТ (КАК У ТОЧКА БАНКА)
   ===================================================================== */
.tynx-single-content blockquote,
.tynx-single-content .wp-block-quote {
    position: relative;
    background: #f4f0ff; /* Светло-фиолетовый фон */
    border: none;
    border-radius: 32px; /* Мягкие углы как на референсе */
    padding: 60px 60px 60px 100px;
    margin: 60px 0;
    box-shadow: none;
}

/* Огромная кавычка слева сверху */
.tynx-single-content blockquote::before,
.tynx-single-content .wp-block-quote::before {
    content: "“";
    position: absolute;
    left: 40px;
    top: 60px;
    font-family: Arial, sans-serif; /* Для лучшего отображения символа кавычки */
    font-size: 80px;
    line-height: 0.6;
    font-weight: 900;
    color: #1a202c; /* Черная кавычка */
}

/* Контент цитаты */
.tynx-single-content blockquote p,
.tynx-single-content .wp-block-quote p {
    font-size: 20px;
    line-height: 1.6;
    color: #1a202c; /* Черный текст */
    font-weight: 500;
    font-style: normal; /* Возвращаем нормальный шрифт, убираем курсив */
    margin-bottom: 0;
}
.tynx-single-content blockquote p:not(:last-child),
.tynx-single-content .wp-block-quote p:not(:last-child) {
    margin-bottom: 20px;
}

/* Автор (Снизу) */
.tynx-single-content blockquote cite,
.tynx-single-content .wp-block-quote cite,
.tynx-single-content .wp-block-quote figcaption {
    display: block;
    margin-top: 30px;
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    font-style: normal;
}
.tynx-single-content blockquote cite::before,
.tynx-single-content .wp-block-quote cite::before {
    content: none !important; /* Убираем дефолтное тире перед автором в WP */
}

/* Адаптив цитаты под мобилки */
@media (max-width: 768px) {
    .tynx-single-content blockquote,
    .tynx-single-content .wp-block-quote {
        padding: 40px 30px 40px 60px;
        border-radius: 20px;
    }
    .tynx-single-content blockquote::before,
    .tynx-single-content .wp-block-quote::before {
        font-size: 60px;
        left: 20px;
        top: 45px;
    }
    .tynx-single-content blockquote p,
    .tynx-single-content .wp-block-quote p {
        font-size: 17px;
    }
}

/* =====================================================================
   АДАПТИВНОСТЬ ЛИД-МАГНИТОВ И САЙДБАРА (ДЛЯ СИНГЛА)
   ===================================================================== */
@media (max-width: 991px) {
    /* На планшетах и мобилках отключаем правый отступ у контента */
    .tynx-single-content {
        padding-right: 15px !important;
    }
    
    /* Сайдбар должен отклеиваться и падать под контент */
    .tynx-single-sidebar {
        position: static !important;
        margin-top: 10px;
    }
    
    /* Лид блок под текстом */
    .tynx-inline-lead-block {
        padding: 40px 20px !important;
    }
    .tynx-inline-lead-block h2 {
        font-size: 26px !important;
    }
}

/* ФИКСЫ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ: Обложка, Чат и Промо-блок */
@media (max-width: 768px) {
    /* 1. Отступ обложки от шапки (увеличен до баланса, чтобы не резало картинку меню) */
    .tynx-single-hero-suvvy {
        padding-top: 170px !important;
    }
    
    /* Ограничиваем высоту карточки, чтобы текст поместился и снизу не было огромных отступов */
    .tynx-suvvy-cover-card {
        padding: 40px 20px !important;
        margin-bottom: 0 !important;
    }

    /* Уменьшаем отступ до следующего контента (оглавления) */
    .tynx-single-wrapper .row {
        margin-top: 0px !important;
    }

    /* 2. Отступ внутри промо-блока (убираем лишнее пространство между текстом и кнопкой) */
    .tynx-in-text-promo {
        padding: 30px 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .tynx-promo-content {
        flex: none !important;
    }
}

/* Десктопный padding по умолчанию для обложки и сайдбар */
@media (min-width: 992px) {
    .tynx-single-hero-suvvy {
        padding-top: 220px;
    }
    
    .tynx-sidebar-sticky {
        position: sticky;
        top: 120px;
        padding-left: 20px;
        height: max-content;
    }
}    
    /* Блок Другие статьи */
    .tynx-related-posts h2 {
        font-size: 26px !important;
    }

@media (max-width: 576px) {
    /* Социальный пульт на мобилках */
    .tynx-social-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    /* In-text Промо шорткод */
    .tynx-in-text-promo {
        padding: 25px !important;
        flex-direction: column !important;
        text-align: center;
    }
    .tynx-promo-action {
        width: 100%;
        margin-top: 15px;
    }
    .tynx-promo-action a {
        display: block !important;
        width: 100%;
    }
}

.tynx-single-content h3 {
    font-weight: 700; color: #0f172a; margin-top: 40px; margin-bottom: 20px; font-size: 24px;
}
.tynx-single-content p { margin-bottom: 25px; }
.tynx-single-content img { border-radius: 16px; margin: 40px 0; max-width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tynx-single-content ul { padding-left: 20px; margin-bottom: 30px; }
.tynx-single-content li { margin-bottom: 12px; }

/* Кнопка назад в футере поста */
.tynx-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.back-to-blog-btn i { margin-right: 10px; }
.back-to-blog-btn:hover {
    background: #6633EE;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(102, 51, 238, 0.2);
    transform: translateY(-2px);
}
