/* ========================================
   BLOG STYLES - GAGARIN
   Стили для блога и страниц статей
   Версия: 3.1 — исправление наложений
   Дата: 2026-03-09
======================================== */

/* ========================================
   1. ОБЩИЕ ПЕРЕМЕННЫЕ
======================================== */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-blue: #0066b3;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #eee;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --gradient: linear-gradient(135deg, #004E89 0%, #0066b3 100%);
}

/* ========================================
   2. HEADER FIXES FOR BLOG
======================================== */
.header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 12px 0 !important;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header .nav,
.header .nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
}

.header .logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.header .logo-img {
    height: 45px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.header .nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.header .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.header .nav-menu a {
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
    padding: 8px 0 !important;
    display: block !important;
    white-space: nowrap !important;
}

.header .nav-menu a:hover,
.header .nav-menu a.active {
    color: var(--primary-color) !important;
}

.header .btn,
.header .btn-primary,
.header .btn-call {
    padding: 10px 18px !important;
    background: var(--primary-color) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: none !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.header .btn:hover,
.header .btn-primary:hover,
.header .btn-call:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3) !important;
}

.menu-toggle {
    display: none !important;
    flex-direction: column !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    z-index: 100 !important;
}

.menu-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: var(--text-color) !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    display: block !important;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(8px) !important; }
.menu-toggle.active span:nth-child(2) { opacity: 0 !important; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px) !important; }

body {
    padding-top: 70px !important;
}

/* ========================================
   3. BLOG HERO SECTION
======================================== */
.blog-hero {
    background: linear-gradient(135deg, #004E89 0%, #0066b3 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero .breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.blog-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.blog-hero .breadcrumbs a:hover { opacity: 0.7; }

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
}

.blog-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0.95;
}

.blog-hero-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   4. FILTERS SECTION
======================================== */
.blog-filters {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-blue);
}

.filter-btn i { font-size: 1.1rem; }

/* ========================================
   5. BLOG LIST SECTION
======================================== */
.blog-list {
    padding: 60px 0;
    background: var(--light-bg);
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ========================================
   6. ARTICLES GRID
======================================== */
.articles-grid {
    display: grid;
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.article-image-wrapper {
    position: relative;
    width: 280px;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image-wrapper img { transform: scale(1.1); }

.article-category {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.article-category.video-cat { background: #17a2b8; }
.article-category.tv-cat    { background: #6f42c1; }

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 5px;
    color: var(--accent-blue);
}

.article-card h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
    font-weight: 600;
}

.article-card:hover h2 { color: var(--accent-blue); }

.article-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #999;
}

.article-author i,
.article-views i {
    margin-right: 5px;
    color: var(--accent-blue);
}

/* ========================================
   7. PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-blue);
}

.pagination-dots { padding: 10px; color: #999; }

.pagination-next {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   8. SIDEBAR ОБЩИЕ СТИЛИ
======================================== */
.blog-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.sidebar-widget:hover { box-shadow: var(--shadow-hover); }

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.sidebar-widget h3 i {
    color: var(--accent-blue);
    font-size: 1.3rem;
}

/* ========================================
   9. SEARCH WIDGET
======================================== */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.search-form button {
    padding: 12px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 78, 137, 0.3);
}

/* ========================================
   10. POPULAR POSTS WIDGET
======================================== */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.popular-posts a:hover { opacity: 0.8; }
.popular-posts a:hover h4 { color: var(--accent-blue); }

.popular-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.popular-posts a:hover img { transform: scale(1.05); }

.popular-posts h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: color 0.3s ease;
    font-weight: 600;
}

.post-views {
    font-size: 0.85rem;
    color: #999;
}

/* ========================================
   11. CATEGORIES WIDGET
======================================== */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li { margin-bottom: 10px; }

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.categories-list a:hover {
    background: var(--gradient);
    color: white;
    transform: translateX(5px);
}

.categories-list i { margin-right: 10px; }

.categories-list span {
    color: #999;
    font-size: 0.9rem;
    font-weight: normal;
}

.categories-list a:hover span { color: white; }

/* ========================================
   12. CTA WIDGET
======================================== */
.sidebar-widget.cta-widget {
    background: linear-gradient(135deg, #004E89, #0066b3);
    color: white;
    text-align: center;
}

.cta-widget h3 { color: white; }

.cta-widget p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

/* ========================================
   13. SUBSCRIBE WIDGET
======================================== */
.subscribe-form { margin-bottom: 10px; }

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.subscribe-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* ========================================
   14. TAGS WIDGET
======================================== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag {
    padding: 6px 15px;
    background: var(--light-bg);
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tags-cloud .tag:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* ========================================
   15. BLOG CTA SECTION
======================================== */
.blog-cta {
    background: linear-gradient(135deg, #004E89 0%, #0066b3 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.blog-cta .cta-content {
    position: relative;
    z-index: 1;
}

.blog-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.blog-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--secondary-color);
}

/* ========================================
   16. SCROLL TO TOP BUTTON
======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,78,137,0.4);
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   17. ARTICLE PAGE STYLES
   ★ ЕДИНСТВЕННОЕ определение сетки статьи
======================================== */
.article-content {
    padding: 40px 0;
    background: var(--light-bg);
}

.article-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.article {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 0;            /* ★ предотвращает переполнение grid-ячейки */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-header .breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.article-header .breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity 0.3s;
}

.article-header .breadcrumbs a:hover { opacity: 0.7; }

.article h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ★ Мета-строка в article: убираем border-top (он не нужен в hero) */
.article .article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-top: none;
    flex-wrap: wrap;
}

/* ★ Hero-изображение статьи — это <img>, НЕ <figure> */
img.article-image {
    width: 100%;
    height: auto;             /* ★ было 400px — ломало пропорции */
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    display: block;
}

/* ★ figure.article-image внутри body статьи */
.article-body figure.article-image {
    margin: 28px 0;
    padding: 0;
    text-align: center;
    height: auto !important;  /* ★ сброс, чтобы 400px не наследовался */
    max-height: none;
    width: 100%;
    overflow: visible;
}

.article-body figure.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    cursor: zoom-in;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.article-body figure.article-image img:hover {
    transform: scale(1.02);
}

.article-body figure.article-image figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
    font-style: italic;
    line-height: 1.4;
}

/* Тело статьи */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0,78,137,0.1), rgba(0,102,179,0.1));
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    line-height: 1.6;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-body strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.article-body p {
    margin-bottom: 20px;
}

/* ★ Все изображения в body не должны вылезать за колонку */
.article-body img {
    max-width: 100%;
    height: auto;
}

/* Warning / Case boxes */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.warning-box h3 {
    margin-top: 0;
    color: #856404;
}

.case-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.case-box strong { color: #0c5460; }

/* Price table */
.price-table {
    margin: 30px 0;
    overflow-x: auto;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-table th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.price-table tr:hover { background: var(--light-bg); }

/* FAQ */
.faq { margin: 30px 0; }

.faq h3 {
    color: var(--accent-blue);
    margin-top: 20px;
    font-size: 1.2rem;
}

/* CTA-box (оранжевый, в конце статьи) */
.cta-box {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.cta-box h2 {
    color: white;
    margin-top: 0;
}

.cta-box .btn { margin-top: 20px; }

.cta-box .phone {
    margin-top: 15px;
    font-size: 1.2rem;
}

.cta-box .phone a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* ★ CTA-блок внутри full_text (синий) */
.article-cta-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    border: 2px solid #004e89;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 32px 0;
    text-align: center;
}

.article-cta-box h3 {
    color: #004e89;
    font-size: 1.4rem;
    margin: 0 0 10px;
    border: none !important;
    padding: 0 !important;
}

.article-cta-box p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.article-cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin: 4px 8px;
    transition: all 0.3s;
}

.article-cta-box .btn-primary {
    background: #004e89;
    color: #fff;
}

.article-cta-box .btn-primary:hover {
    background: #003a66;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,78,137,0.3);
}

.article-cta-box .btn-outline {
    border: 2px solid #004e89;
    color: #004e89;
    background: transparent;
}

.article-cta-box .btn-outline:hover {
    background: #004e89;
    color: #fff;
}

/* Таблицы в full_text */
.article-body table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.article-body table th,
.article-body table td,
.article-content table th,
.article-content table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-body table th,
.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #004e89;
}

.article-body table tr:hover,
.article-content table tr:hover {
    background: #f9f9f9;
}

/* Article footer */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    background: #e9ecef;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
}

.share {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 15px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sidebar в статье */
.article-content .sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    height: fit-content;
}

.article-content .sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.article-content .sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.related-posts {
    list-style: none;
    padding: 0;
}

.related-posts li { margin-bottom: 12px; }

.related-posts a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
}

.related-posts a:hover { color: var(--accent-blue); }

/* ========================================
   18. RESPONSIVE STYLES
======================================== */
@media (max-width: 1200px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr 300px;
    }
    .article-content .container {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 1100px) {
    .header .nav-menu { gap: 15px !important; }
    .header .nav-menu a { font-size: 0.9rem !important; }
    .header .btn,
    .header .btn-primary,
    .header .btn-call {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
}

@media (max-width: 992px) {
    .header { padding: 10px 0 !important; }
    .header .logo-img { height: 40px !important; }

    .menu-toggle {
        display: flex !important;
        order: 3 !important;
    }

    .header .nav-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
    }

    .header .nav-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
    }

    .header .nav-menu li:last-child { border-bottom: none !important; }

    .header .nav-menu a {
        padding: 15px 0 !important;
        display: block !important;
        font-size: 1rem !important;
    }

    .header .btn,
    .header .btn-primary,
    .header .btn-call {
        display: block !important;
        text-align: center !important;
        margin-top: 15px !important;
        width: 100% !important;
        padding: 12px 20px !important;
    }

    .header .logo { order: 1 !important; }
    .header .nav-menu { order: 4 !important; }
    .header .menu-toggle { order: 3 !important; }

    body { padding-top: 60px !important; }

    /* ★ На планшетах — одна колонка */
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-content .container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar,
    .article-content .sidebar {
        position: static;
        max-height: none;
    }

    .article-link { flex-direction: column; }
    .article-image-wrapper { width: 100%; height: 250px; }
    .blog-hero h1 { font-size: 2.2rem; }
    .blog-cta h2 { font-size: 2rem; }
    .article h1 { font-size: 2rem; }

    .blog-filters { top: 60px; }

    .scroll-to-top {
        right: 20px;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .header { padding: 8px 0 !important; }
    .header .logo-img { height: 35px !important; max-width: 150px !important; }
    .header .container { padding: 0 15px !important; }
    .header .nav-menu { top: 55px !important; }
    body { padding-top: 55px !important; }

    .filters-wrapper { gap: 10px; }
    .filter-btn { padding: 10px 15px; font-size: 0.9rem; }
    .article-card-content { padding: 20px; }
    .article-card h2 { font-size: 1.3rem; }

    .blog-hero { padding: 60px 0 40px; }
    .blog-hero h1 { font-size: 1.8rem; }
    .blog-hero-subtitle { font-size: 1.1rem; }

    .cta-buttons { flex-direction: column; }
    .blog-cta { padding: 60px 0; }
    .blog-cta h2 { font-size: 1.8rem; }

    .article { padding: 25px; }
    img.article-image { max-height: 300px; }

    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.6rem; }
    .article-body h3 { font-size: 1.3rem; }

    .scroll-to-top { bottom: 30px; }

    /* ★ CTA-блок адаптивность */
    .article-cta-box { padding: 20px 16px; }
    .article-cta-box .btn {
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    .article-body figure.article-image img {
        border-radius: 8px;
    }

    /* Таблицы — горизонтальный скролл */
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .header .logo-img { height: 32px !important; max-width: 130px !important; }
    .header .btn,
    .header .btn-primary,
    .header .btn-call {
        font-size: 0.85rem !important;
        padding: 10px 15px !important;
    }
    .menu-toggle span { width: 22px !important; }

    .article-meta { flex-direction: column; gap: 5px; }
    .article-footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

    .blog-hero h1 { font-size: 1.5rem; }
    .blog-hero-subtitle { font-size: 1rem; }
    .filter-btn { padding: 8px 12px; font-size: 0.85rem; }

    .article h1 { font-size: 1.6rem; }
    .article-body .lead { font-size: 1.1rem; padding: 15px; }

    .scroll-to-top { width: 45px; height: 45px; bottom: 20px; right: 20px; }
    .cta-box { padding: 25px; }

    .share { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   19. ANIMATIONS
======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-card { animation: slideUp 0.5s ease forwards; }
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   20. PRINT STYLES
======================================== */
@media print {
    .header, .blog-hero, .blog-filters, .blog-sidebar,
    .blog-cta, .footer, .scroll-to-top, .floating-call,
    .article-footer .share, .sidebar {
        display: none !important;
    }
    .article-content .container {
        grid-template-columns: 1fr !important;
    }
    .article {
        box-shadow: none;
        padding: 0;
    }
    .article-body {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* ========================================
   21. ACCESSIBILITY
======================================== */
button:focus, a:focus, input:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   ИСПРАВЛЕНИЕ: Кнопка "Оставить заявку" в хедере
   Белый текст, отступы внутри, оранжевый фон
======================================== */
.header .nav-menu a.btn-call,
.header .btn-call {
    padding: 12px 24px !important;
    margin-left: 8px !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.header .nav-menu a.btn-call:hover,
.header .btn-call:hover {
    background: #e55a2b !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* ========================================
   ИСПРАВЛЕНИЕ: Футер — видимость телефона и текстов
======================================== */
.footer {
    background: #1a1a2e !important;
    color: #c8c8d4 !important;
    padding: 60px 0 0 !important;
}

.footer .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer .footer-col h4 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-bottom: 18px !important;
    font-weight: 600 !important;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer .footer-col p {
    color: #a0a0b8 !important;
    font-size: 0.93rem !important;
    line-height: 1.7 !important;
}

.footer .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer .footer-col ul li {
    margin-bottom: 10px !important;
    color: #a0a0b8 !important;
    font-size: 0.93rem !important;
}

.footer .footer-col ul li a {
    color: #c8c8d4 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.footer .footer-col ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px !important;
}

/* Телефон в футере — хорошо видимый */
.footer .footer-phone {
    margin-top: 15px !important;
}

.footer .footer-phone a,
.footer .footer-col p a[href^="tel"] {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 8px 0 !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px;
}

.footer .footer-phone a:hover,
.footer .footer-col p a[href^="tel"]:hover {
    color: var(--primary-color) !important;
}

.footer .footer-logo {
    height: 40px !important;
    width: auto !important;
    margin-bottom: 15px !important;
    display: block !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
    text-align: center !important;
}

.footer .footer-bottom p {
    color: #777790 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

@media (max-width: 992px) {
    .footer .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .footer .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   ЛЕНИВАЯ ЗАГРУЗКА — стили
======================================== */
.lazy-load-wrapper {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.lazy-load-trigger {
    height: 1px;
    width: 100%;
    position: absolute;
    bottom: 200px;
    pointer-events: none;
}

.lazy-load-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    color: #666;
    font-size: 0.95rem;
}

.lazy-load-spinner.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lazy-load-info {
    font-size: 0.9rem;
    color: #999;
    padding: 10px 0;
}

.lazy-load-end {
    padding: 20px;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lazy-load-end i {
    color: var(--accent-blue);
}

/* Анимация появления подгруженных карточек */
.article-card.lazy-loaded {
    animation: lazyFadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes lazyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card.lazy-loaded:nth-child(odd) {
    animation-delay: 0.1s;
}

.article-card.lazy-loaded:nth-child(even) {
    animation-delay: 0.2s;
}

/* Прогресс-бар загрузки (опционально) */
.lazy-load-progress {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 10px auto 0;
    overflow: hidden;
}

.lazy-load-progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ========================================
   HERO статьи — бейдж категории вверху
======================================== */
.blog-hero .article-category-hero {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.blog-hero .article-category-hero.video-cat {
    background: #17a2b8;
}

.blog-hero .article-category-hero.tv-cat {
    background: #6f42c1;
}

.article-hero-title {
    font-size: 2.5rem;
    margin: 0 0 25px 0;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.article-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 5px;
}

.article-hero-meta i {
    margin-right: 5px;
}

/* Адаптив */
@media (max-width: 768px) {
    .article-hero-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .blog-hero .article-category-hero {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 18px;
    }

    .article-hero-meta {
        gap: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .article-hero-title {
        font-size: 1.35rem;
    }

    .article-hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
/* ========================================
   SIDEBAR — одна кнопка «Оставить заявку»
======================================== */
.sidebar-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #F77F00 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.sidebar-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 107, 53, 0.5);
    color: #ffffff;
}

.sidebar-cta-button:hover::before {
    left: 100%;
}

.sidebar-cta-button i {
    font-size: 1.2rem;
}

/* === EasyWok промо-карточка в ленте блога === */
.ewok-promo-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #f97316;
    border-radius: 12px;
    overflow: hidden;
}
.ewok-promo-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
}
.ewok-promo-emoji {
    font-size: 3rem;
    flex-shrink: 0;
}
.ewok-promo-body {
    flex: 1;
}
.ewok-promo-title {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.ew-easy { color: #1a1a1a; }
.ew-wok  { color: #f97316; }
.ewok-promo-text {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.55;
}
.ewok-promo-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #f97316;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: opacity 0.2s;
}
.ewok-promo-btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media (max-width: 600px) {
    .ewok-promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 16px;
    }
    .ewok-promo-emoji { font-size: 2.2rem; }
    .ewok-promo-title { font-size: 1.05rem; }
}

/* ========================================
   END OF STYLES
======================================== */
