/* ========================================
   UNIVERSAL BLOG STYLES FOR ADSIO
   Для всех страниц блога: статьи, категории, теги
   ======================================== */

/* ---------- Базовые отступы ---------- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-section {
    margin-bottom: 50px;
}

.blog-section-sm {
    margin-bottom: 30px;
}

.blog-section-lg {
    margin-bottom: 70px;
}

/* ---------- Заголовки ---------- */
.blog-h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.blog-h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #186aff;
    display: inline-block;
}

.blog-h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

/* ---------- Текст и типографика ---------- */
.blog-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.blog-text-lg {
    font-size: 18px;
    line-height: 1.6;
}

.blog-text-sm {
    font-size: 14px;
    line-height: 1.5;
}

.blog-lead {
    font-size: 20px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
    border-left: 4px solid #186aff;
    padding-left: 20px;
}

/* ---------- Сетка (Grid) ---------- */
.blog-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Адаптивные гриды */
@media (max-width: 992px) {
    .blog-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid-2, .blog-grid-3, .blog-grid-4 { grid-template-columns: 1fr; }
    .blog-h1 { font-size: 32px; }
    .blog-h2 { font-size: 26px; }
    .blog-lead { font-size: 18px; }
}

/* ---------- Карточки для блога ---------- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #186aff;
}

.blog-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog-card-date {
    font-size: 12px;
    color: #999;
}

/* ---------- FAQ блок (аккордеон) ---------- */
.blog-faq-item {
    background: #f7f8fa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.blog-faq-question {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a1a;
}

.blog-faq-question:hover {
    background: #eef2ff;
}

.blog-faq-question:after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    color: #186aff;
}

.blog-faq-item.active .blog-faq-question:after {
    content: "−";
}

.blog-faq-answer {
    padding: 0 20px 20px 20px;
    display: none;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
    border-top: 1px solid #e5e5e5;
}

.blog-faq-item.active .blog-faq-answer {
    display: block;
}

/* ---------- Таблицы ---------- */
.blog-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.blog-table th,
.blog-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.blog-table th {
    background: #f7f8fa;
    font-weight: 600;
    color: #1a1a1a;
}

.blog-table tr:hover td {
    background: #f9fafb;
}

/* ---------- Список (стилизованный) ---------- */
.blog-list-check {
    list-style: none;
    padding-left: 0;
}

.blog-list-check li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.blog-list-check li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

.blog-list-number {
    padding-left: 0;
    list-style: none;
    counter-reset: item-counter;
}

.blog-list-number li {
    padding: 8px 0 8px 35px;
    position: relative;
    counter-increment: item-counter;
}

.blog-list-number li:before {
    content: counter(item-counter) ".";
    color: #186aff;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ---------- Цитаты ---------- */
.blog-quote {
    background: #f7f8fa;
    border-left: 4px solid #186aff;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    font-size: 18px;
    color: #333;
    border-radius: 0 12px 12px 0;
}

.blog-quote-author {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: normal;
}

/* ---------- Блок с промокодом ---------- */
.blog-promo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed #f59e0b;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.blog-promo-code {
    background: #1f2937;
    color: #fbbf24;
    font-family: monospace;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 2px;
    margin: 15px 0;
}

/* ---------- Кнопки ---------- */
.blog-btn {
    display: inline-block;
    background: #186aff;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.blog-btn:hover {
    background: #0d5ae0;
    transform: scale(1.02);
    color: white;
    text-decoration: none;
}

.blog-btn-outline {
    background: transparent;
    border: 2px solid #186aff;
    color: #186aff;
}

.blog-btn-outline:hover {
    background: #186aff;
    color: white;
}

.blog-btn-lg {
    padding: 15px 35px;
    font-size: 18px;
}

/* ---------- Виджеты для сайдбара ---------- */
.blog-widget {
    background: #f7f8fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.blog-widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #186aff;
    display: inline-block;
}

.blog-widget-list {
    list-style: none;
    padding-left: 0;
}

.blog-widget-list li {
    padding: 8px 0;
}

.blog-widget-list li a {
    color: #333;
    text-decoration: none;
}

.blog-widget-list li a:hover {
    color: #186aff;
}

/* ---------- Навигация (пагинация) ---------- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f7f8fa;
    color: #333;
    text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination .active {
    background: #186aff;
    color: white;
}

/* ---------- Бейджи/метки ---------- */
.blog-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
}

.blog-badge-blue {
    background: #e3f0ff;
    color: #186aff;
}

.blog-badge-green {
    background: #e6f7e6;
    color: #28a745;
}

/* ---------- Предупреждения/уведомления ---------- */
.blog-note {
    padding: 18px 22px;
    border-radius: 12px;
    margin: 20px 0;
}

.blog-note-info {
    background: #e3f0ff;
    border-left: 4px solid #186aff;
}

.blog-note-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.blog-note-success {
    background: #e6f7e6;
    border-left: 4px solid #28a745;
}

.blog-note-danger {
    background: #fee2e2;
    border-left: 4px solid #dc3545;
}

/* ---------- Хлебные крошки ---------- */
.blog-breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #888;
}

.blog-breadcrumbs a {
    color: #888;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    color: #186aff;
}

.blog-breadcrumbs span {
    margin: 0 5px;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }
    
    .blog-promo-code {
        font-size: 20px;
        word-break: break-all;
    }
    
    .blog-lead {
        font-size: 18px;
    }
    
    .blog-quote {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .blog-h2 {
        font-size: 24px;
    }
    
    .blog-h3 {
        font-size: 20px;
    }
}

/* ---------- Утилиты (отступы) ---------- */
.blog-mt-0 { margin-top: 0; }
.blog-mt-5 { margin-top: 5px; }
.blog-mt-10 { margin-top: 10px; }
.blog-mt-15 { margin-top: 15px; }
.blog-mt-20 { margin-top: 20px; }
.blog-mt-30 { margin-top: 30px; }
.blog-mt-40 { margin-top: 40px; }

.blog-mb-0 { margin-bottom: 0; }
.blog-mb-5 { margin-bottom: 5px; }
.blog-mb-10 { margin-bottom: 10px; }
.blog-mb-15 { margin-bottom: 15px; }
.blog-mb-20 { margin-bottom: 20px; }
.blog-mb-30 { margin-bottom: 30px; }
.blog-mb-40 { margin-bottom: 40px; }

.blog-text-center { text-align: center; }
.blog-text-left { text-align: left; }
.blog-text-right { text-align: right; }
