/* Стили для интерактивных карточек "Возражения" */

.objection-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.objection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.objection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.objection-card:hover::before {
    opacity: 0.5;
}

.objection-card:active {
    transform: translateY(-1px);
}

/* Выбранное состояние */
.objection-card--selected {
    border-color: rgba(37, 99, 235, 0.5) !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
    position: relative;
}

.objection-card--selected::before {
    opacity: 1 !important;
}

.objection-card--selected:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.6);
}

/* Галочка выбора */
.objection-card-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    animation: checkmarkAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes objectionCardPulse {
    0% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    }
    100% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }
}

/* Улучшенный дизайн модуля возражений */
.section-objections {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* В debug-режиме разрешаем overflow для плашки */
body.debug-modules .section-objections {
    overflow: visible !important;
}

/* Но контент внутри должен оставаться с overflow: hidden */
body.debug-modules .section-objections > *:not(::before) {
    overflow: hidden;
}

/* Декоративная линия - только если нет debug-плашки */
.section-objections:not(.debug-modules)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.2) 50%, transparent 100%);
}

/* В debug-режиме ::before используется для плашки модуля (main.css) — декоративную линию не показываем */

/* Используем ::after для декоративной линии в debug-режиме (если нужно) */
body.debug-modules .section-objections::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.2) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Улучшенные заголовки секции */
.section-objections .section__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-objections .section__subtitle {
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
    color: rgba(15, 23, 42, 0.75);
}

/* Улучшенная сетка карточек */
.objections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Улучшенные карточки */
.objection-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.objection-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(15, 23, 42, 0.9);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.objection-card:hover .objection-title {
    color: var(--color-primary);
}

.objection-card--selected .objection-title {
    color: var(--color-primary);
    font-weight: 800;
}

.objection-text {
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.6;
    font-size: 15px;
    transition: color 0.2s ease;
}

.objection-card--selected .objection-text {
    color: rgba(15, 23, 42, 0.85);
}

/* Фокус для доступности */
.objection-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
    border-radius: 14px;
}

/* Улучшенная кнопка "Показать 3 плана" */
#show-3-plans-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#show-3-plans-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#show-3-plans-btn:hover::before {
    width: 300px;
    height: 300px;
}

#show-3-plans-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

/* Улучшенная таблица 3 планов */
#three-plans-table {
    background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.plan-card {
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3) !important;
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
    .objections-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }
    
    .objection-card {
        padding: 20px;
    }
    
    .objection-card-checkmark {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
    
    .objection-title {
        font-size: 16px;
    }
    
    .objection-text {
        font-size: 14px;
    }
    
    .objection-card:hover {
        transform: none; /* Отключаем на мобильных */
    }
    
    .objection-card--selected:hover {
        transform: none;
    }
}

/* Плавное появление галочки */
.objection-card-checkmark {
    will-change: transform, opacity;
}

/* Улучшенная визуальная обратная связь */
.objection-card:active {
    transform: scale(0.98);
}

.objection-card--selected:active {
    transform: scale(0.98);
}
