/* Стили для блоков сравнения */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.comparison-before {
    z-index: 1;
}

.comparison-after {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

.comparison-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 0.8);
    cursor: col-resize;
    z-index: 3;
    transform: translateX(-2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 4;
}

.comparison-before img,
.comparison-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .comparison-container {
        height: 350px;
    }

    .divider-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .comparison-container {
        height: 250px;
    }
}