/* =========================================
   DESKTOP STYLES (База)
   ========================================= */

/* --- Header Area --- */
.dp-transformative-header {
    text-align: center;
    /* Увеличили отступ сверху, чтобы меню не перекрывало заголовок */
    padding: 180px 20px 50px; 
    background-color: #fff;
}

.dp-transformative-header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
    font-family: 'PP Fraktion Sans', sans-serif;
    line-height: 1.1;
    color: #000;
}

.dp-transformative-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Filter Tabs --- */
.dp-results-filter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dp-filter-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 15px 20px; 
    color: #888;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-family: inherit;
}

.dp-filter-btn:after {
    content: '';
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.dp-filter-btn.active {
    color: #000;
}

.dp-filter-btn.active:after {
    width: 100%;
}

/* --- Results Grid --- */
.dp-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.dp-result-item {
    display: none; 
    animation: fadeIn 0.5s ease forwards;
}

.dp-result-item.show {
    display: block; 
}

/* Стилизация слайдера внутри сетки */
.dp-result-item .dp-ba-slider {
    aspect-ratio: 1 / 1; 
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    user-select: none; 
}

.dp-result-item .dp-ba-image img {
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MOBILE & TABLET STYLES (Адаптив)
   ========================================= */

@media (max-width: 1024px) {
    .dp-transformative-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* --- Header Mobile --- */
    .dp-transformative-header {
        /* На мобильном меню меньше, отступ можно чуть меньше, но все равно нужен */
        padding: 130px 15px 30px; 
    }
    
    .dp-transformative-header h1 {
        font-size: 2rem; 
        margin-bottom: 10px;
    }
    
    .dp-transformative-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* --- Filters Mobile --- */
    .dp-results-filter {
        gap: 0; 
        justify-content: space-around; 
        margin-bottom: 30px;
        width: 100%;
    }
    
    .dp-filter-btn {
        font-size: 0.95rem;
        padding: 12px 10px; 
        flex-grow: 1; 
        text-align: center;
    }

    /* --- Grid Mobile --- */
    .dp-results-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
        padding: 0 15px 60px;
    }

    /* --- Slider Elements Mobile Adjustments --- */
    
    .dp-result-item .dp-ba-slider {
        border-radius: 15px; 
    }

    .dp-ba-label {
        font-size: 10px !important; 
        padding: 4px 8px !important;
    }
    
    .dp-ba-handle svg {
        width: 40px; 
        height: 40px;
    }
}