/* CSS - добавьте в style.css вашей темы */

.hiw-section {
    position: relative;
    background: #f5f5f5;
    padding: 100px 0;
}

.hiw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hiw_card_wrapper {
    position: sticky;
    top: 0;
    padding-bottom: 100vh;
}

.hiw_card {
    position: relative;
}

.hiw_card_header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 24px 0 0;
}

.hiw_card_header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.card-number {
    font-size: 64px;
    font-weight: 900;
    opacity: 0.3;
}

.hiw_card_content {
    background: white;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 24px 24px;
    min-height: 70vh;
    position: relative;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.hiw_card_content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.content-spacer {
    height: 40vh;
}

/* Разные цвета для headers */
.hiw_card_wrapper:nth-child(1) .hiw_card_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hiw_card_wrapper:nth-child(2) .hiw_card_header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hiw_card_wrapper:nth-child(3) .hiw_card_header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hiw_card_wrapper:nth-child(4) .hiw_card_header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Z-index для правильного наложения */
.hiw_card_wrapper:nth-child(1) {
    z-index: 14;
}

.hiw_card_wrapper:nth-child(2) {
    z-index: 13;
}

.hiw_card_wrapper:nth-child(3) {
    z-index: 12;
}

.hiw_card_wrapper:nth-child(4) {
    z-index: 11;
}

/* Адаптив */
@media (max-width: 768px) {
    .hiw_card_header {
        padding: 30px 20px;
    }
    
    .hiw_card_header h2 {
        font-size: 24px;
    }
    
    .card-number {
        font-size: 48px;
    }
    
    .hiw_card_content {
        padding: 40px 20px;
    }
}