/* Основные стили */
.how-to-buy-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    color: #252424;
    padding-left: 1rem;
    margin-bottom: 2rem;
    text-align: center; /* Текст по центру */
}

/* Контейнер карточек */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
    min-height: 300px; /* Минимальная высота для отладки */
}

/* Элементы карточек */
.step-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: rgba(211, 211, 211, 0.258); /* Фон для визуализации */
    min-height: 100px; /* Минимальная высота для карточки */
    padding: 1rem; /* Внутренние отступы */
}

.step-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-height: 50px; /* Минимальная высота для контента */
}

/* Адаптивность */
@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        max-width: 200px;
    }
    
    .step-icon {
        margin-bottom: 1rem;
    }
}

/* Стили текста */
.step-title {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #252424;
    margin-bottom: 0.5rem;
    text-align: left; /* Текст по левому краю */
}

.dmc-Button-root.step-title {
    color: #dc2626;
    padding: 0;
    background: none !important;
}

.step-description {
    font-size: 0.875rem;
    color:#252424;
    line-height: 1.5;
    text-align: left; /* Текст по левому краю */
}

/* Анимации */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Базовые стили элементов */
.step-item {
    opacity: 0; /* Начальное состояние - невидимы */
}

/* Десктопная анимация */
@media (min-width: 768px) {
    .step-item.active {
        animation: slideInRight 0.6s ease-out forwards;
    }
}

/* Мобильная анимация */
@media (max-width: 767px) {
    .step-item.active {
        animation: slideUp 0.6s ease-out forwards;
    }
}