/* ChinaHelper Bayer Widget Pro - Стили */
/* Стили для промо-блока */
        .ch-widget-promo { 
            background: #f5f7fa;
            border-radius: 12px;
            padding: 25px;
            margin: 0 auto;
            color: #495057;
            text-align: center;
            max-width: 1200px;
            width: 100%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #e8e8e8;
            position: relative;
            margin-bottom: 10px;
        }
        
        .ch-promo-content {
            position: relative;
        }
        
        .ch-promo-content h2 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            font-weight: 600;
            color: #2b2d42;
        }
        
        .ch-promo-content p {
            font-size: 0.95rem;
            margin-bottom: 25px;
            color: #6c757d;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
        }
        
        .ch-promo-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            margin-top: 12px;
            background: linear-gradient(135deg, rgba(45, 90, 160, 0.9), rgba(45, 90, 160, 0.7));
            color: white;
            padding: 4px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid transparent;
            font-size: 0.95rem;
            box-shadow: 0 2px 4px rgba(92, 119, 228, 0.2);
            -webkit-tap-highlight-color: transparent;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
    
        }
        
        /* Обработка всех состояний ссылки */
.ch-promo-btn,
.ch-promo-btn:link,
.ch-promo-btn:visited,
.ch-promo-btn:hover,
.ch-promo-btn:active,
.ch-promo-btn:focus {
    color: white;
    text-decoration: none;
}
        
        .ch-promo-btn:hover {
            background: linear-gradient(135deg, rgba(45, 90, 160, 0.95), rgba(45, 90, 160, 0.8));
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(92, 119, 228, 0.25);
        }
        
        .ch-promo-btn i {
            display: none;
        }

.ch-promo-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.ch-specializations {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e8e8e8;
}

.ch-specializations h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #333;
}

.ch-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ch-spec-grid a {
    display: block;
    font-size: 13px;
    color: #2d5aa0;
    text-decoration: none;
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e8ee;
    transition: all .2s ease;
}

.ch-spec-grid a:hover {
    background: #f0f6ff;
    color: #1a6fe0;
    border-color: #c4d3ea;
    transform: translateY(-1px);
}



        
        /* Стили для основного виджета */
        .ch-widget {
            background: transparent;
            border-radius: 0;
            padding: 30px 0;
            margin-bottom: 40px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .ch-widget-header {
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            text-align: center;
        }
        
        .ch-widget-header h3 {
            font-size: 1.8rem;
            color: #1a365d;
            margin: 0 0 10px 0;
            font-weight: 600;
        }
        
        .ch-widget-header p {
            font-size: 1rem;
            color: #718096;
            margin: 0;
        }
        
        .ch-cards-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .ch-card {
            background: #ffffff;
            border-radius: 10px;
            padding: 0;
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .ch-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .ch-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e0;
        }
        
        .ch-card:hover::before {
            transform: scaleX(1);
        }
        
        .ch-card-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px 20px 0 20px;
            color: white;
            font-size: 1.3rem;
        }
        
        .ch-card-body {
            padding: 15px 20px 20px 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .ch-card h4 {
            font-size: 1.1rem;
            margin: 0 0 10px 0;
            color: #2d3748;
            font-weight: 600;
            line-height: 1.3;
        }
        
        .ch-card p {
            font-size: 0.9rem;
            color: #718096;
            margin: 0 0 15px 0;
            line-height: 1.4;
            flex-grow: 1;
        }
        
        .ch-card-links {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .ch-card-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #4a5568;
            text-decoration: none;
            font-size: 0.85rem;
            padding: 6px 0;
            border-bottom: 1px solid #f7fafc;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        
        .ch-card-link:hover {
            color: #2b6cb0;
            border-bottom-color: #e2e8f0;
        }
        
        .ch-card-link i {
            font-size: 0.75rem;
            opacity: 0.7;
            transition: transform 0.2s ease;
        }
        
        .ch-card-link:hover i {
            transform: translateX(3px);
            opacity: 1;
        }
        
        
        /* Стили для модального окна */
        .ch-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }
        
        .ch-modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 0;
            border-radius: 10px;
            width: 80%;
            max-width: 600px;
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s;
        }
        
        @keyframes modalFadeIn {
            from {opacity: 0; transform: translateY(-50px);}
            to {opacity: 1; transform: translateY(0);}
        }
        
        .ch-modal-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            position: absolute;
            right: 15px;
            top: 10px;
            z-index: 10;
        }
        
        .ch-modal-close:hover,
        .ch-modal-close:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }
        
        .ch-modal-body {
            padding: 30px;
        }
        
        .ch-modal-body h4 {
            margin-top: 0;
            color: #2d3748;
            font-size: 1.4rem;
            border-bottom: 2px solid #667eea;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        
        .ch-modal-body p {
            line-height: 1.6;
            color: #4a5568;
            margin-bottom: 15px;
        }
        
        /* Адаптивность */
        @media (max-width: 1200px) {
            .ch-cards-container {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .ch-bayers-widget {
                padding: 25px 15px;
            }
        }
        
        @media (max-width: 768px) {
            .ch-cards-container {
                grid-template-columns: 1fr;
                gap: 18px;
            }
            
            .ch-widget-header h3 {
                font-size: 1.6rem;
            }
            
            .ch-widget-header {
                margin-bottom: 30px;
            }
            
            .ch-modal-content {
                width: 90%;
                margin: 20% auto;
            }
            
            .ch-widget-promo {
                padding: 20px;
                margin: 10px;
            }
            
            .ch-promo-content h3 {
                font-size: 1.4rem;
            }
            
            .ch-promo-content p {
                font-size: 1rem;
            }
            
            .ch-promo-button {
                padding: 4px 12px;
            }
        }
        
        @media (max-width: 480px) {
            .ch-card {
                margin: 0;
            }
            
            .card-content {
                padding: 15px;
            }
            
            .card-icon {
                margin: 15px 15px 0 15px;
            }
            
            .ch-modal-body {
                padding: 20px;
            }
            .ch-widget-promo {
                display: none;
            }
        }