/*
Theme Name: Universal Simple Theme
Theme URI: https://example.com
Description: Простой универсальный минималистичный шаблон WordPress на Bootstrap с интеграцией плагинов. Вывод постов в 2 колонки, богатое оформление контента.
Version: 1.2.8
Author: Developer
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: universal-simple
Requires PHP: 5.6
*/

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@700;800;900&display=swap');

/* Основные стили */
body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a202c;
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', 'Onest', sans-serif;
    letter-spacing: -0.02em;
}

/* Шапка сайта */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .contact-info {
    font-size: 0.85rem;
    color: #718096;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.site-header .contact-info a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.site-header .contact-info a:hover {
    color: #1d4ed8;
}

.site-header .contact-info strong {
    font-weight: 600;
    color: #4a5568;
}

/* Навигация */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a202c;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover {
    color: #2563eb;
}

/* Контент */
.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Hero Section Premium */
.hero-section-premium {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(51, 65, 85, 0.85) 100%),
        url('banner hero.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content-premium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title-premium {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-subtitle-premium {
    font-size: 1.35rem;
    color: #f1f5f9;
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-cta-premium {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-premium-primary {
    padding: 1.1rem 2.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

.btn-premium-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 36px rgba(59, 130, 246, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-premium-secondary {
    padding: 1.1rem 2.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-premium-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Mission Section */
.mission-section {
    padding: 6rem 2rem;
    background: #ffffff;
    position: relative;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
}

.mission-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.mission-text {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 900px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transition: height 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.mission-card:hover::before {
    height: 100%;
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.mission-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Topics Section */
.topics-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.section-header-premium {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title-premium {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -2px;
}

.topics-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.topic-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
    transition: all 0.4s ease;
}

.topic-card:hover::after {
    transform: translate(30%, -30%) scale(1.5);
}

.topic-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.topic-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: grayscale(0);
    transition: transform 0.4s ease;
}

.topic-card:hover .topic-icon {
    transform: scale(1.1) rotate(5deg);
}

.topic-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.topic-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Trust Section Premium */
.trust-section-premium {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.trust-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-header-premium {
    text-align: center;
    margin-bottom: 4rem;
}

.trust-label {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.trust-title-premium {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -2px;
}

.trust-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.trust-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trust-card-premium:hover::before {
    opacity: 1;
}

.trust-card-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-8px);
}

.trust-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.trust-card-premium h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.trust-card-premium p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Blog Section Premium */
.blog-section {
    padding: 6rem 2rem 4rem;
    background: #ffffff;
}

.blog-section .section-header-premium {
    margin-bottom: 4rem;
}

.blog-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.blog-section .section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.blog-section .section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

.blog-section .row {
    max-width: 1200px;
    margin: 0 auto;
}

/* Посты */
.post-item {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.post-item-inner {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Закрепленный пост */
.post-item.sticky {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    position: relative;
}

.post-item.sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.sticky-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #2563eb;
}

.post-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.post-meta span {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
}

.post-meta span:last-child {
    margin-right: 0;
}

.post-excerpt {
    color: #495057;
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
    padding-left: 5px;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.read-more:hover::after {
    margin-left: 1rem;
}

/* Миниатюра поста */
.post-thumbnail {
    margin: 0;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение сторон */
    border-bottom: 1px solid #e9ecef;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Пагинация */
.pagination-wrapper {
    margin: 3rem 0;
    text-align: center;
}

/* Скрываем заголовок пагинации если он есть */
.pagination-wrapper h2,
.pagination-wrapper .screen-reader-text {
    display: none;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination .page-item .page-link:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.2);
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link.current {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
    transform: translateY(-2px);
    pointer-events: none;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background: #f8f9fa;
    color: #6c757d;
}

/* Кнопки "Назад" и "Вперёд" */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    padding: 0.5rem 1rem;
}

/* Футер */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.site-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #2563eb;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Страница отдельного поста */
.single-post {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
    border: 1px solid #e2e8f0;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a5568;
}

/* Навигация между постами */
.post-navigation .btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.4s ease;
}

.post-navigation .btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.post-navigation .btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Теги поста */
.post-tags {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border-left: 5px solid #3b82f6;
}

.post-tags a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    margin: 0.35rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Стили для контента поста */

/* Параграфы */
.single-post .post-content p,
.post-content p {
    margin-bottom: 1.5rem;
}

/* Заголовки в контенте */
.single-post .post-content h1,
.post-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #212529;
    line-height: 1.3;
}

.single-post .post-content h2,
.post-content h2 {
    font-size: 1.95rem;
    font-weight: 700;
    margin: 2.25rem 0 1.25rem;
    color: #212529;
    line-height: 1.3;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.single-post .post-content h3,
.post-content h3 {
    font-size: 1.65rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #343a40;
}

.single-post .post-content h4,
.post-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: #495057;
}

.single-post .post-content h5,
.post-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #6c757d;
}

.single-post .post-content h6,
.post-content h6 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Изображения в контенте */
.single-post .post-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.single-post .post-content figure,
.post-content figure {
    margin: 2rem 0;
}

.single-post .post-content figcaption,
.post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.75rem;
}

/* Списки */
.single-post .post-content ul,
.single-post .post-content ol,
.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

/* Ненумерованный список */
.single-post .post-content ul li,
.post-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
}

.single-post .post-content ul li::before,
.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Нумерованный список */
.single-post .post-content ol,
.post-content ol {
    counter-reset: custom-counter;
}

.single-post .post-content ol li,
.post-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2.5rem;
    counter-increment: custom-counter;
}

.single-post .post-content ol li::before,
.post-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Вложенные списки */
.single-post .post-content ul ul,
.single-post .post-content ol ol,
.single-post .post-content ul ol,
.single-post .post-content ol ul,
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 0.5rem 0 0.75rem;
}

.single-post .post-content ul ul li::before,
.post-content ul ul li::before {
    width: 6px;
    height: 6px;
    background: #6c757d;
    box-shadow: none;
}

.single-post .post-content ol ol li::before,
.post-content ol ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    background: #6c757d;
}

/* Цитаты */
.single-post .post-content blockquote,
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    font-size: 1.15rem;
    font-style: italic;
    color: #4a5568;
    position: relative;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.single-post .post-content blockquote::before,
.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #2563eb;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

.single-post .post-content blockquote p,
.post-content blockquote p {
    margin-bottom: 0.5rem;
}

.single-post .post-content blockquote p:last-child,
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post .post-content blockquote cite,
.post-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-style: normal;
}

.single-post .post-content blockquote cite::before,
.post-content blockquote cite::before {
    content: '— ';
}

/* Таблицы - сброс всех HTML атрибутов */
.single-post .post-content table,
.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none !important;
    font-size: 0.95rem;
}

/* Убираем все старые HTML атрибуты границ */
.single-post .post-content table[border],
.post-content table[border] {
    border: none !important;
}

.single-post .post-content table[cellpadding],
.post-content table[cellpadding] {
    padding: 0 !important;
}

.single-post .post-content table[cellspacing],
.post-content table[cellspacing] {
    border-spacing: 0 !important;
}

.single-post .post-content table thead,
.post-content table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: #fff;
}

.single-post .post-content table thead th,
.post-content table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none !important;
    border-bottom: 3px solid rgba(255,255,255,0.2) !important;
}

.single-post .post-content table thead th:first-child,
.post-content table thead th:first-child {
    padding-left: 1.5rem;
}

.single-post .post-content table thead th:last-child,
.post-content table thead th:last-child {
    padding-right: 1.5rem;
}

.single-post .post-content table tbody tr,
.post-content table tbody tr {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    transition: all 0.2s ease;
}

.single-post .post-content table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.single-post .post-content table tbody tr:hover,
.post-content table tbody tr:hover {
    background-color: #e7f3ff;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.single-post .post-content table tbody tr:last-child,
.post-content table tbody tr:last-child {
    border-bottom: none !important;
}

.single-post .post-content table td,
.single-post .post-content table th,
.post-content table td,
.post-content table th {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border: none !important;
}

.single-post .post-content table tbody td:first-child,
.post-content table tbody td:first-child {
    padding-left: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.single-post .post-content table tbody td:last-child,
.post-content table tbody td:last-child {
    padding-right: 1.5rem;
}

.single-post .post-content table tbody td,
.post-content table tbody td {
    color: #495057;
    line-height: 1.6;
}

/* Адаптивные таблицы */
@media (max-width: 768px) {
    .single-post .post-content table,
    .post-content table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .single-post .post-content table thead th,
    .post-content table thead th,
    .single-post .post-content table tbody td,
    .post-content table tbody td {
        padding: 0.75rem 1rem;
    }
}

/* Код */
.single-post .post-content code,
.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e83e8c;
    border: 1px solid #e9ecef;
}

.single-post .post-content pre,
.post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.single-post .post-content pre code,
.post-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

/* Горизонтальная линия */
.single-post .post-content hr,
.post-content hr {
    margin: 3rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

/* Ссылки в контенте */
.single-post .post-content a,
.post-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single-post .post-content a:hover,
.post-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Выделение текста */
.single-post .post-content strong,
.single-post .post-content b,
.post-content strong,
.post-content b {
    font-weight: 700;
    color: #212529;
}

.single-post .post-content em,
.single-post .post-content i,
.post-content em,
.post-content i {
    font-style: italic;
}

.single-post .post-content mark,
.post-content mark {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Отступы для первого элемента */
.single-post .post-content > *:first-child,
.post-content > *:first-child {
    margin-top: 0;
}

/* ========================================
   КАСТОМНЫЕ СТИЛИ ДЛЯ ТАБЛИЦ И ПАГИНАЦИИ
   ======================================== */

/* ТАБЛИЦЫ - Глобальные принудительные стили с максимальной специфичностью */

/* Сброс всех HTML-атрибутов таблиц */
body table[border],
body table[cellpadding],
body table[cellspacing],
body table[width],
body table[bgcolor],
body table[align] {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body table[border] *,
body table[cellpadding] *,
body table[cellspacing] * {
    border: 0 !important;
}

/* Базовые стили для всех таблиц на сайте */
html body table,
html body .post-content table,
html body .single-post table,
html body article table,
html body main table,
html body .entry-content table,
html body div table {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem auto !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
    font-size: 0.95rem !important;
    display: table !important;
}

/* Стили заголовка таблицы */
html body table thead,
html body table thead tr {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 0 !important;
}

html body table thead th,
html body table th {
    padding: 1.1rem 1.5rem !important;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.88rem !important;
    letter-spacing: 1px !important;
    border: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
    border-bottom: 3px solid rgba(255,255,255,0.25) !important;
}

/* Стили для первой строки таблицы без thead (заголовок) */
html body table > tr:first-child,
html body table > tbody > tr:first-child,
html body .post-content table > tr:first-child,
html body .single-post table > tr:first-child,
html body article table > tr:first-child {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

html body table > tr:first-child > td,
html body table > tbody > tr:first-child > td,
html body .post-content table > tr:first-child > td,
html body .single-post table > tr:first-child > td,
html body article table > tr:first-child > td {
    padding: 1.1rem 1.5rem !important;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.88rem !important;
    letter-spacing: 1px !important;
    border: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
    border-bottom: 3px solid rgba(255,255,255,0.25) !important;
}

/* Стили тела таблицы */
html body table tbody,
html body table tbody tr,
html body table tr {
    background: transparent !important;
}

html body table tbody tr,
html body table > tr:not(:first-child) {
    border: 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    transition: all 0.25s ease !important;
}

html body table tbody tr:nth-child(odd),
html body table > tr:nth-child(odd):not(:first-child) {
    background-color: #ffffff !important;
}

html body table tbody tr:nth-child(even),
html body table > tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

html body table tbody tr:hover,
html body table > tr:not(:first-child):hover {
    background-color: #e7f3ff !important;
    transform: scale(1.005) !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15) inset !important;
}

html body table tbody tr:last-child,
html body table > tr:last-child {
    border-bottom: 0 !important;
}

/* Стили ячеек */
html body table td,
html body table tbody td,
html body table tbody th,
html body table > tr > td {
    padding: 1rem 1.5rem !important;
    border: 0 !important;
    color: #495057 !important;
    background: transparent !important;
    vertical-align: middle !important;
    line-height: 1.6 !important;
}

html body table tbody td:first-child,
html body table tbody th:first-child,
html body table > tr:not(:first-child) > td:first-child {
    padding-left: 1.75rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
}

html body table tbody td:last-child,
html body table tbody th:last-child,
html body table > tr > td:last-child {
    padding-right: 1.75rem !important;
}

/* Адаптивность таблиц */
@media (max-width: 768px) {
    body table {
        font-size: 0.85rem !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }
    
    body table thead th,
    body table th,
    body table tbody td,
    body table td {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    body table tbody td:first-child,
    body table tbody th:first-child {
        padding-left: 1.25rem !important;
    }
    
    body table tbody td:last-child,
    body table tbody th:last-child {
        padding-right: 1.25rem !important;
    }
}

/* ПАГИНАЦИЯ - Новая кастомная разметка */

/* Основной контейнер пагинации */
.pagination-wrapper,
nav.pagination-wrapper,
.navigation.pagination {
    margin: 3.5rem auto 3rem !important;
    padding: 1.5rem 0 !important;
    text-align: center !important;
    clear: both !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Скрываем заголовки */
.pagination-wrapper h2,
.pagination-wrapper .screen-reader-text,
.navigation h2 {
    display: none !important;
}

/* Информация о страницах */
.pagination-info {
    font-size: 0.9rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-family: 'Onest', sans-serif !important;
    margin: 0 !important;
    padding: 0.65rem 1.25rem !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    display: inline-block !important;
    border: 2px solid #e2e8f0 !important;
}

/* Контейнер кнопок пагинации */
.pagination,
.pagination-links,
.nav-links {
    display: inline-flex !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    list-style: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Элементы пагинации */
.pagination .page-item,
.pagination li,
.pagination-links > *,
.nav-links > * {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Кнопки и ссылки пагинации - Clean Design */
.pagination .page-link,
.pagination a,
.pagination span,
.pagination-links a,
.pagination-links span,
.nav-links a,
.nav-links span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    padding: 0.65rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    cursor: pointer !important;
}

/* Ховер эффект */
.pagination .page-link:hover,
.pagination a:hover,
.pagination-links a:hover,
.nav-links a:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25) !important;
}

/* Активная страница */
.pagination .page-item.active .page-link,
.pagination .current,
.pagination-links .current,
.nav-links .current {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3) !important;
    transform: translateY(-2px) !important;
    pointer-events: none !important;
    font-weight: 900 !important;
}

/* Неактивные/отключенные элементы */
.pagination .page-item.disabled .page-link,
.pagination .disabled,
.pagination-links .disabled,
.nav-links .disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
    background: #f8f9fa !important;
    color: #adb5bd !important;
    border-color: #e9ecef !important;
    cursor: not-allowed !important;
}

/* Точки (многоточие) */
.pagination .dots,
.pagination-links .dots,
.nav-links .dots {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.5rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    min-width: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Кнопки "Назад" и "Вперёд" */
.pagination .prev,
.pagination .next,
.pagination-links .prev,
.pagination-links .next {
    padding: 0.65rem 1.5rem !important;
    font-weight: 700 !important;
    gap: 0.5rem !important;
    border-radius: 10px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 2px solid #0f172a !important;
}

.pagination .prev:hover,
.pagination .next:hover,
.pagination-links .prev:hover,
.pagination-links .next:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3) !important;
}

/* Адаптивность пагинации */
@media (max-width: 576px) {
    .pagination-wrapper {
        margin: 2.5rem auto 2rem !important;
        padding: 1rem 0 !important;
    }
    
    .pagination,
    .pagination-links,
    .nav-links {
        gap: 0.5rem !important;
    }
    
    .pagination .page-link,
    .pagination a,
    .pagination span,
    .pagination-links a,
    .pagination-links span,
    .nav-links a,
    .nav-links span {
        min-width: 2.5rem !important;
        height: 2.5rem !important;
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .pagination .prev,
    .pagination .next,
    .pagination-links .prev,
    .pagination-links .next {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .pagination-info {
        font-size: 0.85rem !important;
        padding: 0.6rem 1.25rem !important;
    }
}

/* Адаптивность Premium */
@media (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section-premium {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-title-premium {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle-premium {
        font-size: 1.1rem;
    }
    
    .hero-cta-premium {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-premium-primary {
        width: 100%;
        max-width: 350px;
    }
    
    .mission-section,
    .topics-section,
    .trust-section-premium,
    .blog-section {
        padding: 4rem 1.5rem;
    }
    
    .mission-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }
    
    .mission-text {
        font-size: 1.1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title-premium {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-title-premium {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .trust-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-premium-primary {
        max-width: 100%;
    }
    
    .blog-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .post-thumbnail {
        padding-bottom: 60%;
    }
    
    .post-item-inner {
        padding: 1.25rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .single-post .post-title {
        font-size: 1.85rem;
    }
    
    .single-post .post-content h1,
    .post-content h1 {
        font-size: 1.85rem;
    }
    
    .single-post .post-content h2,
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .single-post .post-content h3,
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .single-post .post-content h4,
    .post-content h4 {
        font-size: 1.25rem;
    }
    
    .single-post .post-content table,
    .post-content table {
        font-size: 0.9rem;
    }
    
    .single-post .post-content table td,
    .single-post .post-content table th,
    .post-content table td,
    .post-content table th {
        padding: 0.75rem 0.5rem;
    }
    
    .single-post .post-content blockquote,
    .post-content blockquote {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .post-meta span {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .site-header .contact-info .col-md-4 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-premium {
        font-size: 2rem;
    }
    
    .hero-label {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .mission-title {
        font-size: 1.85rem;
    }
    
    .mission-text {
        font-size: 1rem;
    }
    
    .section-title-premium {
        font-size: 2rem;
    }
    
    .trust-title-premium {
        font-size: 2rem;
    }
    
    .topic-card {
        padding: 2rem;
    }
    
    .trust-card-premium {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .post-thumbnail {
        padding-bottom: 58%;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

