/* ========== БЛОГ: ОБЩИЕ СТИЛИ ДЛЯ СТАТЕЙ И ГЛАВНОЙ ========== */

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs {
    background: #F5F7FB;
    padding: 100px 20px 20px;
}
.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #888;
}
.breadcrumbs-container a {
    color: var(--logo-blue);
    text-decoration: none;
}
.breadcrumbs-container a:hover {
    color: var(--accent-orange);
}
.breadcrumbs-container span {
    color: #aaa;
}

/* ---------- КОНТЕЙНЕР СТАТЬИ ---------- */
.blog-article {
    padding: 40px 20px 80px;
    background: #F5F7FB;
}
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* ---------- ШАПКА СТАТЬИ ---------- */
.blog-header {
    background: linear-gradient(135deg, #0A2B5B 0%, #1A4B8F 100%);
    padding: 50px 50px 40px;
    color: white;
}
.blog-category {
    display: inline-block;
    background: rgba(245,166,35,0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 20px;
}
.blog-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.blog-meta i {
    margin-right: 6px;
    color: var(--accent-orange);
}

/* ---------- КОНТЕНТ СТАТЬИ ---------- */
.blog-content {
    padding: 50px;
}
.blog-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}
.blog-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--logo-blue);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-orange);
}
.blog-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--logo-blue);
    margin: 30px 0 15px;
}
.blog-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
}
.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 25px;
}
.blog-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 10px;
}
.blog-content strong {
    color: var(--logo-blue);
}
.blog-content a {
    color: var(--logo-blue);
    text-decoration: underline;
}
.blog-content a:hover {
    color: var(--accent-orange);
}

/* ---------- ОГЛАВЛЕНИЕ ---------- */
.table-of-contents {
    background: #F8FAFE;
    border-radius: 24px;
    padding: 25px 30px;
    margin: 30px 0 40px;
    border-left: 4px solid var(--accent-orange);
}
.toc-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--logo-blue);
    margin-bottom: 15px;
}
.table-of-contents ul {
    margin: 0;
    padding-left: 20px;
}
.table-of-contents li {
    margin-bottom: 8px;
    font-size: 14px;
}
.table-of-contents a {
    text-decoration: none;
    color: #555;
}
.table-of-contents a:hover {
    color: var(--accent-orange);
}

/* ---------- ИНФОБОКСЫ ---------- */
.blog-info-box {
    background: #E1F0FF;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 30px 0;
}
.blog-info-box i {
    font-size: 28px;
    color: var(--accent-orange);
}
.blog-info-box strong {
    color: var(--logo-blue);
}
.blog-info-box.warning {
    background: #FFF5F5;
    border-left: 4px solid #E74C3C;
}
.blog-info-box.warning i {
    color: #E74C3C;
}
.blog-info-box.success {
    background: #E8F8E8;
    border-left: 4px solid #27AE60;
}
.blog-info-box.success i {
    color: #27AE60;
}

/* ---------- ТАБЛИЦЫ ---------- */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.blog-table th {
    background: var(--logo-blue);
    color: white;
    padding: 14px 12px;
    font-weight: 700;
    text-align: left;
}
.blog-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.blog-table tr:last-child td {
    border-bottom: none;
}
.blog-table tr:hover td {
    background: #F8FAFE;
}

/* ---------- ЦИТАТЫ ---------- */
.blog-quote {
    background: #F5F7FB;
    border-left: 4px solid var(--accent-orange);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 16px;
    color: #555;
    border-radius: 0 20px 20px 0;
}
.blog-quote i {
    color: var(--accent-orange);
    margin-right: 10px;
}

/* ---------- КНОПКА CTA ВНУТРИ СТАТЬИ ---------- */
.blog-cta {
    background: linear-gradient(135deg, #0A2B5B 0%, #1A4B8F 100%);
    border-radius: 24px;
    padding: 35px 40px;
    text-align: center;
    margin: 40px 0 20px;
}
.blog-cta h3 {
    color: white !important;
    margin-top: 0 !important;
    font-size: 24px !important;
}
.blog-cta p {
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 25px !important;
}
.blog-cta .btn-accent {
    margin: 0 auto;
    display: inline-block;
    padding: 16px 40px;
}

/* ---------- ПОДВАЛ СТАТЬИ ---------- */
.blog-footer {
    padding: 30px 50px 50px;
    border-top: 1px solid #eee;
    background: #F9FAFB;
}
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.blog-tag {
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--logo-blue);
    text-decoration: none;
    border: 1px solid #ddd;
    transition: 0.3s;
}
.blog-tag:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

/* ---------- КНОПКИ ПОДЕЛИТЬСЯ ---------- */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.blog-share span {
    font-size: 14px;
    color: #666;
}
.share-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-blue);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #eee;
    cursor: pointer;
    font-size: 18px;
}
.share-link:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}
.share-link.vk:hover { background: #0077FF; color: white; }
.share-link.tg:hover { background: #28A8EA; color: white; }
.share-link.copy:hover { background: #4CAF50; color: white; }

/* ---------- НАВИГАЦИЯ МЕЖДУ СТАТЬЯМИ ---------- */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.blog-nav-prev, .blog-nav-next {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #eee;
}
.blog-nav-prev:hover, .blog-nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    background: #F9FAFB;
}
.blog-nav-label {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-bottom: 8px;
}
.blog-nav-title {
    font-weight: 700;
    color: var(--logo-blue);
    font-size: 14px;
}
.blog-nav-next {
    text-align: right;
}

/* ---------- УВЕДОМЛЕНИЕ О КОПИРОВАНИИ ---------- */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--logo-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.copy-notification i {
    margin-right: 8px;
    color: #4CAF50;
}
.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 90px 15px 15px;
    }
    .blog-header {
        padding: 35px 25px;
    }
    .blog-content {
        padding: 30px 25px;
    }
    .blog-footer {
        padding: 30px 25px;
    }
    .blog-content p {
        font-size: 16px;
    }
    .blog-content h2 {
        font-size: 24px;
    }
    .blog-cta {
        padding: 25px 20px;
    }
    .blog-cta h3 {
        font-size: 20px !important;
    }
    .blog-navigation {
        flex-direction: column;
    }
    .blog-nav-prev, .blog-nav-next {
        text-align: center;
    }
    .table-of-contents {
        padding: 20px;
    }
    .copy-notification {
        white-space: normal;
        text-align: center;
        max-width: 90%;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .blog-meta {
        gap: 12px;
        font-size: 12px;
    }
    .blog-info-box {
        flex-direction: column;
        text-align: center;
    }
    .blog-info-box i {
        margin: 0 auto;
    }
}

/* ---------- ГЛАВНАЯ БЛОГА ---------- */
.blog-main {
    padding: 40px 20px 80px;
    background: #F5F7FB;
}
.blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
}
.blog-header-page {
    text-align: center;
    margin-bottom: 50px;
}
.blog-header-page h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 5vw, 48px);
    color: var(--logo-blue);
}
.blog-header-page h1 span {
    color: var(--accent-orange);
}
.blog-header-page p {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
}

/* Сетка карточек статей */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.blog-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,86,156,0.1);
}
.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 15px;
}
.blog-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
}
.blog-card h3 a {
    text-decoration: none;
    color: var(--logo-blue);
    transition: 0.3s;
}
.blog-card h3 a:hover {
    color: var(--accent-orange);
}
.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
}
.blog-card-meta i {
    margin-right: 4px;
}
.blog-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.blog-card-link {
    color: var(--logo-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}
.blog-card-link:hover {
    color: var(--accent-orange);
    gap: 10px;
}

/* Подписка на блог */
.blog-subscribe {
    background: linear-gradient(135deg, #0A2B5B 0%, #1A4B8F 100%);
    padding: 50px 20px;
    margin: 40px 0 0;
}
.blog-subscribe-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 32px;
    padding: 35px 40px;
}
.blog-subscribe-icon i {
    font-size: 48px;
    color: var(--accent-orange);
}
.blog-subscribe-content {
    flex: 1;
}
.blog-subscribe-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: white;
    margin-bottom: 8px;
}
.blog-subscribe-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.blog-subscribe-form {
    display: flex;
    gap: 10px;
}
.blog-subscribe-form input {
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    width: 250px;
}
.blog-subscribe-form button {
    background: var(--accent-orange);
    color: var(--logo-blue);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}
.blog-subscribe-form button:hover {
    background: #FFD166;
    transform: translateY(-2px);
}

/* Адаптив главной блога */
@media (max-width: 768px) {
    .blog-subscribe-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    .blog-subscribe-form {
        width: 100%;
        flex-direction: column;
    }
    .blog-subscribe-form input {
        width: 100%;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}