/* ==========================================
   ДИАГНОСТИЧЕСКИЙ ПОПАП - ПОЛНАЯ ИЗОЛЯЦИЯ
   Все классы начинаются с diagnostic-popup-
   ========================================== */

/* Оверлей */
.diagnostic-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

/* Показываем при открытии */
.diagnostic-popup-overlay.diagnostic-popup-active {
    display: flex;
    animation: diagnosticFadeIn 0.3s ease;
}

@keyframes diagnosticFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Основной контейнер */
.diagnostic-popup-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #f7f7f7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: diagnosticSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes diagnosticSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Кнопка закрытия */
.diagnostic-popup-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.diagnostic-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
    transform: rotate(90deg);
}

/* Контент - две колонки */
.diagnostic-popup-content {
    display: flex;
    padding: 50px 50px 40px;
    gap: 50px;
}

/* Левая колонка */
.diagnostic-popup-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagnostic-popup-title {
    font-size: 34px !important;
    line-height: 1.2;
    font-weight: 800;
    color: #123b8b;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Список с кастомными булетами */
.diagnostic-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diagnostic-popup-list li {
    position: relative;
    padding-left: 65px;
    margin-bottom: 28px;
    font-size: 20px;
    color: #333;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.diagnostic-popup-list li:last-child {
    margin-bottom: 0;
}

/* Кастомный булет */
.diagnostic-popup-bullet {
    position: absolute;
    left: 0;
    top: 2px;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Убираем старый псевдоэлемент */
.diagnostic-popup-list li::before {
    content: none;
}

/* Правая колонка */
.diagnostic-popup-right {
    width: 460px;
    flex-shrink: 0;
}

.diagnostic-popup-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    border: 2px solid #d7edf9;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
}

.diagnostic-popup-input {
    width: 100%;
    height: 75px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #f5f5f5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 0 20px;
    transition: all 0.2s;
}

.diagnostic-popup-input:focus {
    outline: none;
    border-color: #1195d4;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(17, 149, 212, 0.1);
}

.diagnostic-popup-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.diagnostic-popup-button {
    width: 100%;
    height: 85px;
    border: none;
    border-radius: 14px;
    background: #1189BF;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(17, 149, 212, 0.3);
    display: block;
}

.diagnostic-popup-button:hover {
    background: #0d7ab0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 149, 212, 0.4);
}

.diagnostic-popup-button:active {
    transform: translateY(0);
}

.diagnostic-popup-privacy {
    text-align: center;
    color: #bbb;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 500;
}

/* Баннер */
.diagnostic-popup-banner {
    background: #0F3077;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 30px;
}

.diagnostic-popup-banner-icon {
    font-size: 60px;
    flex-shrink: 0;
    animation: diagnosticBounce 2s infinite;
}

@keyframes diagnosticBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.diagnostic-popup-banner-text {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 1024px) {
    .diagnostic-popup-content {
        padding: 40px 35px 30px;
        gap: 35px;
    }
    
    .diagnostic-popup-title {
        font-size: 42px;
        margin-bottom: 30px;
    }
    
    .diagnostic-popup-right {
        width: 400px;
    }
    
    .diagnostic-popup-list li {
        font-size: 18px;
        margin-bottom: 22px;
        padding-left: 48px;
    }
    
    .diagnostic-popup-list li::before {
        font-size: 24px;
    }
    
    .diagnostic-popup-input {
        height: 65px;
        font-size: 20px;
    }
    
    .diagnostic-popup-button {
        height: 70px;
        font-size: 22px;
    }
    
    .diagnostic-popup-banner {
        padding: 20px 35px;
        gap: 25px;
    }
    
    .diagnostic-popup-banner-icon {
        font-size: 50px;
    }
    
    .diagnostic-popup-banner-text {
        font-size: 24px;
    }
}

/* Мобильные - перестраиваем в одну колонку */
@media (max-width: 768px) {
    .diagnostic-popup-overlay {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .diagnostic-popup-container {
        max-height: none;
        margin: 10px 0;
    }
    
    .diagnostic-popup-content {
        flex-direction: column;
        padding: 35px 25px 25px;
        gap: 30px;
    }
    
    .diagnostic-popup-right {
        width: 100%;
    }
    
    .diagnostic-popup-title {
    font-size: 20px !important;
        margin-bottom: 25px;
    }
    
    .diagnostic-popup-list li {
        font-size: 17px;
        margin-bottom: 18px;
    }
    
    .diagnostic-popup-form {
        padding: 25px;
    }
    
    .diagnostic-popup-input {
        height: 60px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .diagnostic-popup-button {
        height: 65px;
        font-size: 20px;
    }
    
    .diagnostic-popup-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 25px;
    }
    
    .diagnostic-popup-banner-icon {
        font-size: 44px;
    }
    
    .diagnostic-popup-banner-text {
        font-size: 20px;
    }
    
    .diagnostic-popup-close {
        right: 10px;
        top: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .diagnostic-popup-content {
        padding: 30px 20px 20px;
        gap: 25px;
    }
    
    .diagnostic-popup-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .diagnostic-popup-list li {
        font-size: 15px;
        margin-bottom: 15px;
        padding-left: 40px;
    }
    .diagnostic-popup-bullet {
    width: 24px;
    height: 24px;
}
    
    .diagnostic-popup-list li::before {
        font-size: 20px;
    }
    
    .diagnostic-popup-form {
        padding: 20px;
    }
    
    .diagnostic-popup-input {
        height: 55px;
        font-size: 16px;
    }
    
    .diagnostic-popup-button {
        height: 60px;
        font-size: 18px;
    }
    
    .diagnostic-popup-privacy {
        font-size: 14px;
        margin-top: 20px;
    }
    
    .diagnostic-popup-banner {
        padding: 18px 20px;
        gap: 12px;
    }
    
    .diagnostic-popup-banner-icon {
        font-size: 36px;
    }
    
    .diagnostic-popup-banner-text {
        font-size: 16px;
    }
}