/**
 * Blog Article Styles (27.11.2025)
 * SEO-оптимізовані статті блогу
 */

/* Article Hero */
.blog-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-hero-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Article Content */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.blog-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-content li {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 10px;
}

/* Promo Block in Article */
.blog-promo {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.3);
}

.blog-promo h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.blog-promo-price {
    font-size: 48px;
    font-weight: 900;
    margin: 10px 0;
}

.blog-promo-price span {
    font-size: 20px;
    font-weight: 400;
}

.blog-promo ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-promo li {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.blog-promo li::before {
    content: '✓ ';
    font-weight: bold;
}

.blog-promo-btn {
    display: inline-block;
    background: #fff;
    color: #ea580c;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s;
}

.blog-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #ea580c;
}

/* Lead Form in Article */
.blog-lead-form {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.blog-lead-form h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.blog-lead-form p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-lead-form form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.blog-lead-form input[type=tel] {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
}

.blog-lead-form button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-lead-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Local SEO Block */
.blog-local-seo {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    padding: 24px;
    margin: 40px 0;
}

.blog-local-seo h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.blog-local-seo p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* Table of Contents */
.blog-toc {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

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

.blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc li {
    margin-bottom: 8px;
}

.blog-toc a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 15px;
}

.blog-toc a:hover {
    text-decoration: underline;
}

/* Info Box */
.blog-info-box {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.blog-info-box.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.blog-info-box h5 {
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 8px;
}

.blog-info-box.warning h5 {
    color: #92400e;
}

/* Blog List on Homepage */
.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

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

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.blog-card-img {
    height: 180px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img svg {
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.9);
}

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

.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 28px;
    }
    
    .blog-content h2 {
        font-size: 24px;
    }
    
    .blog-promo-price {
        font-size: 36px;
    }
    
    .blog-lead-form form {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Table */
.blog-faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-faq-table th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
}

.blog-faq-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    color: #374151;
}

.blog-faq-table tr:last-child td {
    border-bottom: none;
}

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

.blog-faq-table td:first-child {
    font-weight: 600;
    color: #1a1a1a;
    width: 40%;
}

@media (max-width: 768px) {
    .blog-faq-table {
        font-size: 14px;
    }
    
    .blog-faq-table th,
    .blog-faq-table td {
        padding: 12px 14px;
    }
}

/* Structured FAQ Accordion */
.blog-faq {
    margin: 40px 0;
}

.blog-faq h2 {
    margin-bottom: 24px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: #f8fafc;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question::before {
    content: '❓';
    margin-right: 12px;
    font-size: 18px;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #3b82f6;
    transition: transform 0.3s;
}

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

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 18px 24px;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.faq-answer strong {
    color: #3b82f6;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 14px 16px;
    }
}

/* FAQ JavaScript Toggle - добавляется через JS */

/* Fix blog header image - remove circle crop (27.11.2025) */
.cards-view_item {
    border-radius: 0 !important;
    overflow: visible !important;
}

.cards-view_item picture {
    display: block;
    width: 100%;
}

.cards-view_img {
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    position: relative !important;
}

@media (max-width: 768px) {
    .cards-view_img {
        max-height: 250px !important;
    }
}
