/* ========================================
   GPC WIDGETS COMMON STYLES - ИСПРАВЛЕННАЯ ВЕРСИЯ
   File: gpc-widgets-common.css
   Префикс: wid-gpc-main-
   ОДНА СТРЕЛКА ДЛЯ ВСЕХ РЕЖИМОВ!
======================================== */

/* ОСНОВНОЙ КОНТЕЙНЕР ВИДЖЕТА */
.wid-gpc-main-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

/* СВЕРНУТОЕ СОСТОЯНИЕ - ПРОДАЖНЫЙ ХУК */
.wid-gpc-main-teaser {
    background: #f8f9fa;
    border-left: 4px solid #4eff00;
    color: #333333;
    padding: 8px 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.wid-gpc-main-teaser:active {
    background: #f0f1f2;
}

/* КОНТЕНТ ТИЗЕРА */
.wid-gpc-main-teaser-content {
    flex: 1;
    margin-right: 40px;
}

.wid-gpc-main-teaser h3 {
    margin: 0 0 4px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
}

.wid-gpc-main-teaser p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
}

/* ЕДИНАЯ СТРЕЛКА ДЛЯ ВСЕХ РЕЖИМОВ */
.wid-gpc-main-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #4eff00;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

/* РАЗВЕРНУТОЕ СОСТОЯНИЕ С ШАПКОЙ */
.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-main-teaser {
    background: #613EA6;
    color: white;
}

.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-main-teaser h3 {
    color: white !important;
}

.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-main-teaser p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-main-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: white;
}

.wid-gpc-main-container.wid-gpc-main-expanded {
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.15);
    border-color: #613EA6;
}

/* HEADERLESS РЕЖИМ - ОТДЕЛЬНАЯ СТРЕЛКА ВНЕ ТИЗЕРА */
.wid-gpc-main-container.wid-gpc-main-headerless {
    position: relative;
}

.wid-gpc-main-container.wid-gpc-main-headerless .wid-gpc-main-teaser {
    display: none; /* Скрываем шапку полностью */
}

/* ОТДЕЛЬНАЯ СТРЕЛКА ДЛЯ HEADERLESS РЕЖИМА - ТАКАЯ ЖЕ КАК ОБЫЧНАЯ */
.wid-gpc-headerless-arrow {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 14px;
    color: #613EA6;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 200;
}

.wid-gpc-headerless-arrow:hover {
    color: #005a8b;
}

.wid-gpc-headerless-arrow:active {
    transform: translateY(1px);
}

/* КОНТЕНТ ВИДЖЕТА - БЕЗ ЛИШНИХ ОТСТУПОВ */
.wid-gpc-main-content {
    display: none;
    padding: 6px;
    background: #fafbfc;
    border-top: 1px solid #e0e0e0;
}

.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-main-content {
    display: block;
    animation: wid-gpc-slideDown 0.3s ease-out;
}

.wid-gpc-main-container.wid-gpc-main-headerless .wid-gpc-main-content {
    display: block;
    border-top: none;
    /* НИКАКИХ ЛИШНИХ ОТСТУПОВ! */
    animation: wid-gpc-slideDown 0.3s ease-out;
}

/* АНИМАЦИИ */
@keyframes wid-gpc-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* БАЗОВЫЕ СТИЛИ ДЛЯ КОНТЕНТА ВИДЖЕТОВ */
.wid-gpc-main-content h4 {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.wid-gpc-main-content p {
    margin: 0 0 4px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
}

.wid-gpc-main-content ul {
    margin: 12px 0 !important;
    padding-left: 18px !important;
}

.wid-gpc-main-content li {
    margin: 6px 0 !important;
    font-size: 14px !important;
    color: #555555 !important;
}

/* КНОПКИ ВИДЖЕТОВ */
.wid-gpc-main-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #613EA6;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.wid-gpc-main-btn:hover {
    background: #005a8b;
    text-decoration: none !important;
    color: #ffffff !important;
}

.wid-gpc-main-btn:active {
    transform: translateY(1px);
}

.wid-gpc-main-btn-block {
    width: 100%;
    display: block;
}

/* ДЕСКТОПНЫЕ СТИЛИ */
@media (min-width: 768px) {
    .wid-gpc-main-container {
        margin: 24px 0;
    }
    
    .wid-gpc-main-teaser {
        padding: 8px 8px;
        cursor: pointer;
    }
    
    .wid-gpc-main-teaser:hover {
        background: #f0f1f2;
        border-left-color: #005a8b;
    }
    
    .wid-gpc-main-teaser h3 {
        font-size: 17px !important;
    }
    
    .wid-gpc-main-content {
        padding: 6px;
    }
    
    /* HEADERLESS СТРЕЛКА НА ДЕСКТОПЕ - ТАКАЯ ЖЕ КАК ОБЫЧНАЯ */
    .wid-gpc-headerless-arrow {
        right: 24px;
        top: 18px;
        font-size: 14px;
        z-index: 200;
    }
    
    .wid-gpc-main-btn {
        font-size: 15px;
        padding: 14px 24px;
    }
}
/* ========================================
   СТИЛИ ДЛЯ ЛЕНИВОЙ ЗАГРУЗКИ ВИДЖЕТОВ
   ДОБАВИТЬ в конец файла: gpc-widgets-common.css
======================================== */

/* КОНТЕЙНЕР ЛЕНИВОЙ ЗАГРУЗКИ */
.gpc-lazy-container {
    position: relative;
    min-height: 100px;
    background: #ffffff;
    border-radius: 8px;
    overflow: visible;
    z-index: 100;
}

/* СПИННЕР */
.gpc-lazy-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fafbfc;
}

/* АНИМИРОВАННОЕ КОЛЕСО СПИННЕРА */
.gpc-spinner-wheel {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e1e1;
    border-top: 3px solid #613EA6;
    border-radius: 50%;
    animation: gpc-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes gpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ТЕКСТ СПИННЕРА */
.gpc-spinner-text {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

/* КОНТЕНТ ПОСЛЕ ЗАГРУЗКИ */
.gpc-lazy-content {
    padding: 6px;
    background: #fafbfc;
    min-height: 60px;
}

/* СОСТОЯНИЕ ОШИБКИ */
.gpc-lazy-container.script-error .gpc-lazy-spinner {
    background: #fef2f2;
}

.gpc-error-text {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* СОСТОЯНИЕ ЗАГРУЖЕННОГО ВИДЖЕТА */
.gpc-lazy-container.script-loaded {
    background: transparent;
}

/* СТИЛИ ДЛЯ ЗАГРУЖЕННОГО КОНТЕНТА */
.fasttrack-content,
.border-run-content {
    text-align: center;
    padding: 20px;
}

.fasttrack-content h4,
.border-run-content h4 {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.fasttrack-content p,
.border-run-content p {
    margin: 0 0 16px 0 !important;
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.5 !important;
}

.gpc-widget-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #613EA6;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gpc-widget-btn:hover {
    background: #005a8b;
    text-decoration: none !important;
    color: #ffffff !important;
}

.gpc-widget-btn:active {
    transform: translateY(1px);
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 767px) {
    .gpc-lazy-spinner {
        padding: 30px 15px;
    }
    
    .gpc-spinner-wheel {
        width: 28px;
        height: 28px;
        border-width: 2px;
        margin-bottom: 10px;
    }
    
    .gpc-spinner-text {
        font-size: 13px;
    }
    
    .fasttrack-content,
    .border-run-content {
        padding: 15px;
    }
    
    .gpc-widget-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* ПЛАНШЕТЫ */
@media (min-width: 768px) and (max-width: 1023px) {
    .gpc-lazy-spinner {
        padding: 35px 20px;
    }
    
    .gpc-spinner-wheel {
        width: 30px;
        height: 30px;
    }
}

/* ДЕСКТОПЫ */
@media (min-width: 1024px) {
    .gpc-lazy-spinner {
        padding: 40px 25px;
    }
    
    .gpc-spinner-wheel {
        width: 32px;
        height: 32px;
    }
    
    .fasttrack-content,
    .border-run-content {
        padding: 25px;
    }
}
/* ========================================
   BORDER RUN WIDGET - НОВАЯ ВЕРСИЯ С ПОЛОСКОЙ МЕССЕНДЖЕРОВ
   ЗАМЕНИТЬ в: gpc-widgets-common.css (весь блок border run)
======================================== */

/* ПОЛОСКА МЕССЕНДЖЕРОВ - НОВАЯ */
.wid-gpc-messenger-bar {
    display: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 6px 10px;
    font-size: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.wid-gpc-main-container.wid-gpc-main-expanded .wid-gpc-messenger-bar,
.wid-gpc-main-container.wid-gpc-main-headerless .wid-gpc-messenger-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: wid-gpc-slideDown 0.3s ease-out;
}

.wid-gpc-messenger-label {
    font-weight: 700;
    color: #613EA6;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
}

.wid-gpc-messenger-buttons-inline {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wid-gpc-btn-telegram-inline,
.wid-gpc-btn-whatsapp-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 7px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.wid-gpc-btn-telegram-inline {
    background: linear-gradient(135deg, #0088cc 0%, #005999 100%);
    
}

.wid-gpc-btn-whatsapp-inline {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);

}

.wid-gpc-btn-telegram-inline:hover {
    transform: translateY(-1px) scale(1.05);
    background: linear-gradient(135deg, #0099dd 0%, #0066aa 100%);
    color: #ffffff !important;
    text-decoration: none;
}

.wid-gpc-btn-whatsapp-inline:hover {
    transform: translateY(-1px) scale(1.05);
    background: linear-gradient(135deg, #2ee477 0%, #20bf62 100%);
    color: #ffffff !important;
    text-decoration: none;
}

/* ПЕРЕОПРЕДЕЛЕНИЕ РОДИТЕЛЬСКИХ СТИЛЕЙ */
.wid-gpc-main-content .border-run-content ul,
.wid-gpc-main-content .border-run-content .gpc-rotatable-benefits {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
}

.wid-gpc-main-content .border-run-content li {
    margin: 0 !important;
}

/* Высокая специфичность для изоляции */
.wid-gpc-main-container .border-run-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e5e7;
    border-radius: 16px;
    padding: 18px;
    margin: 0 0 16px 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
    width: 100%;
}

.wid-gpc-main-container .border-run-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Текст объяснения */
.wid-gpc-main-container .border-run-content p,
.wid-gpc-main-container .border-run-content .gpc-rotatable-explanation {
    display: block;
    margin: 0 0 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1f;
    text-align: center;
    background: none;
    border: none;
    text-decoration: none;
    list-style: none;
}

/* Список - ЖЕСТКАЯ ИЗОЛЯЦИЯ */
.wid-gpc-main-container .border-run-content ul,
.wid-gpc-main-container .border-run-content .gpc-rotatable-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    list-style-type: none;
    list-style-image: none;
    list-style-position: outside;
    background: none;
    border: none;
    width: 100%;
}

/* Элементы списка - ТОЧНЫЕ РАЗМЕРЫ */
.wid-gpc-main-container .border-run-content li {
    position: relative;
    display: block;
    margin: 0;
    padding: 14px 12px 14px 40px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #1d1d1f;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    list-style: none;
    list-style-type: none;
    list-style-image: none;
    list-style-position: outside;
    text-decoration: none;
    width: 100%;
    min-height: auto;
    max-height: none;
}

/* Убираем все возможные маркеры */
.wid-gpc-main-container .border-run-content li::marker {
    display: none;
    content: none;
}

.wid-gpc-main-container .border-run-content li::-webkit-details-marker {
    display: none;
}

/* Кружочек с галочкой - ТОЧНЫЕ РАЗМЕРЫ */
.wid-gpc-main-container .border-run-content li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #613EA6 0%, #7B4ED6 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(97, 62, 166, 0.3);
    transition: all 0.2s ease;
    display: block;
    z-index: 1;
}

/* Галочка поверх кружочка - ТОЧНЫЕ РАЗМЕРЫ */
.wid-gpc-main-container .border-run-content li::after {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wid-gpc-main-container .border-run-content li:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wid-gpc-main-container .border-run-content li:hover::before {
    transform: translateY(-50%) scale(1.1);
    background: linear-gradient(135deg, #7B4ED6 0%, #9F6EE8 100%);
    box-shadow: 0 3px 10px rgba(97, 62, 166, 0.4);
}

/* CTA секция - ГРАДИЕНТНЫЙ ФОН БЕЗ BORDER */
.wid-gpc-main-container .border-run-cta {
    position: relative;
    display: block;
    margin: 8px 0 0 0;
    padding: 16px;
    background: radial-gradient(ellipse at center, 
        rgba(97, 62, 166, 0.12) 0%, 
        rgba(97, 62, 166, 0.06) 40%, 
        rgba(97, 62, 166, 0.02) 70%,
        rgba(255, 255, 255, 0.8) 100%);
    border: none;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: none;
}

.wid-gpc-main-container .border-run-cta p {
    margin: 0;
    padding: 0;
}

.wid-gpc-main-container .border-run-cta strong,
.wid-gpc-main-container .border-run-cta .gpc-rotatable-cta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #613EA6;
    text-decoration: none;
    display: inline;
}

/* Мобильная адаптация - ТОЧНЫЕ РАЗМЕРЫ */
@media (max-width: 767px) {
    .wid-gpc-messenger-bar {
        padding: 8px 14px;
    }
    
    .wid-gpc-messenger-label {
        font-size: 14px;
    }
    
    .wid-gpc-messenger-buttons-inline {
        gap: 8px;
    }
    
    .wid-gpc-main-container .border-run-content {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    
    .wid-gpc-main-container .border-run-content p,
    .wid-gpc-main-container .border-run-content .gpc-rotatable-explanation {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .wid-gpc-main-container .border-run-content ul,
    .wid-gpc-main-container .border-run-content .gpc-rotatable-benefits {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .wid-gpc-main-container .border-run-content li {
        padding: 12px 10px 12px 36px;
        font-size: 12px;
        border-radius: 10px;
    }
    
    .wid-gpc-main-container .border-run-content li::before {
        width: 16px;
        height: 16px;
        left: 10px;
    }
    
    .wid-gpc-main-container .border-run-content li::after {
        left: 14px;
        font-size: 10px;
    }
    
    .wid-gpc-main-container .border-run-cta {
        padding: 14px;
        border-radius: 10px;
    }
    
    .wid-gpc-main-container .border-run-cta strong,
    .wid-gpc-main-container .border-run-cta .gpc-rotatable-cta {
        font-size: 14px;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1023px) {
    .wid-gpc-main-container .border-run-content {
        padding: 20px;
    }
    
    .wid-gpc-main-container .border-run-content ul,
    .wid-gpc-main-container .border-run-content .gpc-rotatable-benefits {
        gap: 12px;
    }
}