/* ===== КАК МЫ РАБОТАЕМ ===== */
.how-we-work {
    margin: 80px 0;
    width: 100%;
}

.how-we-work h2 {
    font-size: 56px;
    font-weight: 500;
    color: #433f45;
    margin-bottom: 40px;
}

.how-we-work-container {
    border-radius: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    counter-reset: step-counter;
}

.step-card {
    position: relative;
    padding: 30px 20px;
    background: white;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 250px;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(164, 60, 207, 0.15);
}

/* Стили для обычного состояния */
.step-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.step-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #433f45;
    margin: 0;
    line-height: 1.0;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    margin-left: 15px;
    flex-shrink: 0;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-card p {
    font-size: 14px;
    color: #7b777d;
    line-height: 1.5;
    margin: 0;
}

/* Стили для фонового изображения при наведении */
.step-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.step-hover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-card:hover .step-content {
    opacity: 0;
    visibility: hidden;
}

.step-card:hover .step-hover-bg {
    opacity: 1;
    visibility: visible;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .how-we-work h2 {
        font-size: 48px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .how-we-work-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .how-we-work {
        margin: 60px 0;
    }

    .how-we-work h2 {
        font-size: 42px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 200px;
    }

    .step-header h3 {
        font-size: 20px;
    }

    .step-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .how-we-work h2 {
        font-size: 36px;
    }

    .how-we-work-container {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .step-header h3 {
        font-size: 18px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
    }

    .step-card {
        padding: 20px 15px;
    }
}