/* Стили для блока сравнения */
.comparison-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comparison-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 50px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 360px;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    touch-action: none;
}

.comparison-before,
.comparison-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.comparison-before {
    z-index: 5;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.comparison-after {
    z-index: 1;
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.comparison-before img {
    border-right: 1px solid rgba(255,255,255,0.35);
}

.comparison-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.comparison-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.comparison-slider-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
}

.comparison-slider-button svg {
    width: 18px;
    height: 18px;
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.comparison-label-before {
    left: 20px;
}

.comparison-label-after {
    right: 20px;
}

.comparison-companies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.company-info {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.company-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.company-description {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .comparison-container {
        margin: 0 24px 36px;
    }
}

@media (max-width: 810px) {
    .comparison-section {
        padding: 45px 0;
    }

    .comparison-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .comparison-container {
        margin: 0 16px 28px;
        border-radius: 14px;
    }

    .comparison-slider {
        aspect-ratio: 5 / 4;
        min-height: 320px;
        border-radius: 14px;
    }

    .comparison-label {
        font-size: 13px;
        padding: 6px 12px;
        bottom: 14px;
    }

    .comparison-companies {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
        margin-top: 32px;
    }
}

@media (max-width: 500px) {
    .comparison-section {
        padding: 40px 0;
    }

    .comparison-slider {
        aspect-ratio: 1 / 1;
        min-height: 260px;
    }

    .comparison-label {
        font-size: 11px;
        bottom: 12px;
        padding: 6px 10px;
    }

    .comparison-slider-line {
        width: 3px;
    }

    .comparison-slider-button {
        width: 42px;
        height: 42px;
    }

    .comparison-slider-button svg {
        width: 14px;
        height: 14px;
    }

    .comparison-companies {
        margin-top: 24px;
    }

    .company-info {
        padding: 20px 18px;
    }

    .company-name {
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    .comparison-subtitle {
        font-size: 14px;
    }

    .comparison-slider {
        min-height: 220px;
        border-radius: 12px;
    }

    .comparison-slider-button {
        width: 36px;
        height: 36px;
    }

    .comparison-slider-button svg {
        width: 12px;
        height: 12px;
    }

    .comparison-label {
        font-size: 10px;
        bottom: 8px;
        padding: 5px 10px;
    }
}
