/* Изоляция стилей */
#eng-wrapper-fix.eng-compare-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 100px 20px; 
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    display: block; 
}

/* --- 1. Заголовок --- */
#eng-wrapper-fix .eng-header-only {
    text-align: center;
    margin-bottom: 30px;
}

#eng-wrapper-fix .eng-title {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

#eng-wrapper-fix .eng-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #E3D4AB;
    margin: 20px auto 0;
}

/* --- 2. Текст --- */
#eng-wrapper-fix .eng-text-only {
    text-align: center;
    margin-bottom: 60px; 
    position: relative;
    z-index: 2;
}

#eng-wrapper-fix .eng-text-only p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- 3. Слайдеры --- */
#eng-wrapper-fix .ba-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0; 
}

#eng-wrapper-fix .ba-item {
    flex: 1 1 calc(50% - 40px);
    min-width: 300px;
    max-width: 650px;
    height: auto; 
}

/* Обертка картинки */
#eng-wrapper-fix .ba-wrapper {
    position: relative;
    width: 100%;
    height: 0; 
    padding-bottom: 66.66%; 
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    user-select: none;
    -webkit-user-select: none;
}

/* Overlay */
#eng-wrapper-fix .ba-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.35); 
    z-index: 20; 
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#eng-wrapper-fix .ba-wrapper.is-dragging .ba-overlay { opacity: 0; }

/* --- ЛЕЙБЛЫ --- */
#eng-wrapper-fix .ba-label {
    position: absolute;
    top: 25px;
    padding: 8px 18px;
    background-color: #111;
    color: #E3D4AB;
    border: 1px solid #E3D4AB;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
#eng-wrapper-fix .ba-wrapper.is-dragging .ba-label { opacity: 0; }
#eng-wrapper-fix .label-left { left: 25px; }
#eng-wrapper-fix .label-right { right: 25px; }

/* Z-INDEX система */
#eng-wrapper-fix .layer-after .ba-label { z-index: 5; } 
#eng-wrapper-fix .layer-before { 
    position: absolute; top: 0; left: 0; width: 50%; height: 100%; 
    overflow: hidden; z-index: 10; 
}
#eng-wrapper-fix .layer-before .ba-label { z-index: 15; }

/* Картинки */
#eng-wrapper-fix .ba-img-layer img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    pointer-events: none; -webkit-user-drag: none; user-drag: none;
}
#eng-wrapper-fix .layer-before img { width: 200%; }

/* --- Ползунок --- */
#eng-wrapper-fix .ba-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 0;
    z-index: 30; pointer-events: none;
}
#eng-wrapper-fix .ba-handle-line {
    position: absolute; top: 0; bottom: 0; left: -2px; width: 4px;
    background: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#eng-wrapper-fix .ba-handle-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    background: rgba(0,0,0,0.2); border: 3px solid #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4); transition: transform 0.2s ease;
}
#eng-wrapper-fix .ba-handle-circle svg {
    width: 28px; height: 28px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

/* --- 4. Кнопка (Fingerprint) --- */
#eng-wrapper-fix .eng-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

#eng-wrapper-fix .eng-fingerprint-btn {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    max-width: 500px;
    padding: 22px 35px;
    background-color: #0b0b0b;
    /* РАМКА 2px */
    border: 2px solid #E3D4AB;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#eng-wrapper-fix .eng-fingerprint-btn:hover {
    background-color: #1a1a1a;
    box-shadow: 0 0 15px rgba(227, 212, 171, 0.2);
}

#eng-wrapper-fix .btn-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap; 
}

#eng-wrapper-fix .btn-icon {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
    z-index: 10;
}

/* ФИЛЬТР ДЛЯ КАРТИНКИ */
#eng-wrapper-fix .btn-icon img {
    height: 42px; 
    width: auto;
    display: block;
    /* 1. Делаем черным (brightness 0) 
       2. Инвертируем в белый (invert 1) */
    filter: brightness(244) invert(0) !important;
    opacity: 1 !important;
}


/* --- МОБИЛЬНЫЙ АДАПТИВ --- */
@media (max-width: 768px) {
    #eng-wrapper-fix.eng-compare-section {
        display: flex;
        flex-direction: column;
        padding: 40px 15px 60px 15px;
    }

    #eng-wrapper-fix .eng-header-only { order: 1; margin-bottom: 20px; }
    #eng-wrapper-fix .ba-gallery-container { order: 2; margin-bottom: 30px; }
    #eng-wrapper-fix .eng-text-only { order: 3; margin-bottom: 20px; }
    
    #eng-wrapper-fix .eng-btn-container { 
        order: 4; 
        margin-top: 10px;
    }

    #eng-wrapper-fix .ba-item { flex: 1 1 100%; }
    
    #eng-wrapper-fix .eng-title { font-size: 24px; }
    
    #eng-wrapper-fix .ba-label {
        font-size: 10px;
        padding: 5px 10px;
        top: 15px;
    }
    #eng-wrapper-fix .label-left { left: 15px; }
    #eng-wrapper-fix .label-right { right: 15px; }

    #eng-wrapper-fix .eng-fingerprint-btn {
        padding: 15px 20px; 
    }
    #eng-wrapper-fix .btn-text {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    #eng-wrapper-fix .btn-icon img {
        height: 32px;
    }
}