/* modules/steps/steps.css */

.steps-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
    font-family: 'Gilroy', sans-serif;
}

.steps-carousel-wrapper {
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 4px 15px var(--card-shadow);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, var(--primary), transparent);
    opacity: 0.2;
    z-index: 0;
}

.step-card:hover {
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.step-number {
    font-size: 70px;
    font-weight: 700;
    color: var(--card-number);
    line-height: 1;
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 0;
}

.step-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 16px;
    position: relative;
    z-index: 1;
    padding-right: 50px;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    text-align: left;
    font-family: 'Gilroy', sans-serif;
}

.step-icon {
    width: 100%;
    height: auto;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.step-icon img {
    max-width: 220px;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

.steps-carousel {
    display: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.steps-carousel::-webkit-scrollbar {
    display: none;
}

.steps-carousel .step-card {
    min-width: 280px;
    scroll-snap-align: start;
}

.carousel-nav {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .steps-grid { display: none; }
    .steps-carousel { display: flex; }
    .carousel-nav { display: flex; }
}

@media (max-width: 768px) {
    .steps-section { padding: 0; }
    .section-title { font-size: 26px; }
}

@media (max-width: 480px) {
    .step-card { padding: 20px; min-height: 380px; }
    .step-icon img { max-height: 220px; }
}