/* Объединенная секция поиска, фильтров и избранного */
.unified-search-section {
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.unified-search-section.on-dark {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
}

.unified-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.unified-search-section .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.unified-search-section .section-label {
    display: inline-block;
    color: #ffd700;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.unified-search-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center;
}

.unified-search-section .section-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9) !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Список функций в виде строк */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.feature-row {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 40px;
    background: transparent;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.unified-search-section.on-dark .feature-row {
    background: transparent;
    box-shadow: 0 8px 26px rgba(0,0,0,0.35);
}


.feature-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.unified-search-section.on-dark .feature-row:hover {
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}

/* Изображение функции */
.feature-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: #f8fafc;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.feature-row:hover .feature-image img {
    transform: scale(1.05);
}

/* Содержимое функции */
.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.feature-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.highlight-item i {
    color: #fff;
    opacity: 0.9;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Секция преимуществ */
.benefits-section {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.benefits-section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.benefit-item i {
    color: #667eea;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.benefit-item span {
    color: #4a5568;
    font-weight: 500;
}

/* Лайтбокс для увеличения изображений */
.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 24px;
}

.image-zoom-overlay.visible { display: flex; }

.image-zoom-wrapper {
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.image-zoom-overlay:active .image-zoom-img { transform: scale(0.99); }

/* Закрывающая подсказка */
.image-zoom-close-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    user-select: none;
}


/* Адаптивность */
@media (max-width: 768px) {
    .unified-search-section {
        padding: 24px 0;
    }
    
    .unified-search-section .section-title {
        font-size: calc(2.2rem * 0.7) !important;
    }
    
    .unified-search-section .section-subtitle {
        font-size: calc(1.1rem * 0.7) !important;
    }
    
    .features-list {
        gap: 24px !important;
        margin-bottom: 24px !important;
    }
    
    .feature-row {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
        text-align: center;
    }
    
    .feature-image {
        width: 100%;
        max-width: 300px;
        height: 180px;
    }
    
    .feature-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .unified-search-section .feature-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
    
    .unified-search-section .section-header {
        margin-bottom: 16px !important;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .unified-search-section .benefits-section {
        margin-bottom: 24px !important;
    }
    /* Поднимаем нижнюю границу секции к уровню контента */
    .unified-search-section {
        padding-bottom: 1px !important;
      }
    .unified-search-section .features-list {
        margin-bottom: 0 !important;
        gap: 16px !important;
    }
    .unified-search-section .features-list > .feature-row:last-child {
        margin-bottom: 0 !important;
    }
    .unified-search-section .benefits-section {
        margin-bottom: 0 !important;
        display: none !important; /* убираем блок преимуществ на мобильном для плотной подгонки */
    }
    .unified-search-section .section-subtitle {
        margin-bottom: 6px !important;
    }
}

@media (max-width: 480px) {
    .unified-search-section .section-title {
        font-size: 1.8rem;
    }
    
    .unified-search-section .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-row {
        padding: 20px;
    }
    
    .feature-header h3 {
        font-size: 1.5rem;
    }
    
    .feature-image {
        height: 150px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
} 