/* ==============================================
   Steps — Как мы выводим ваш бизнес в ТОП
   ============================================== */

.steps {
    background: #0D0D0D;
    padding: 90px 0 100px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
}

.steps__wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---------- Badge (из GBP) ---------- */
.steps__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 26px;
    border: 2px solid rgba(219, 43, 43, 0.3);
    border-radius: 100px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1;
    background: #141414;
}

/* ---------- Title (Inter) ---------- */
.steps__heading {
    font-family: 'Wix Madefor Display', sans-serif;
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;

    line-height: 1.12;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0 0 14px;
    max-width: 1120px;
}

.steps__accent {
    color: #EA4335;
}
.steps__accent {
    color: #EA4335;
}
/* ---------- Subtitle ---------- */
.steps__sub {
    font-family: 'Wix Madefor Display', sans-serif;
    color: #999999;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 36px;
    max-width: 920px;
}

/* ---------- Cards grid ---------- */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 0;
}

/* ---------- Card — фон: radial glow 10% в цвете шага ---------- */
.steps__card {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(var(--s-rgb), 0.10) 0%, transparent 70%),
        rgba(255, 255, 255, 0.03);

    border-radius: 16px;
    padding: 24px 20px;
    text-align: left;
    transition: background .3s ease;
    margin-bottom: 12px;
}

/* Треугольник — цвет карточки, совпадает с фоном */
.steps__card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid rgba(var(--s-rgb), 0.12);
}

.steps__card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.steps__num {
    display: block;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 32px;
    font-weight: 900;

    line-height: 1;
    margin-bottom: 14px;
}

.steps__card-title {
    font-family: 'Wix Madefor Display', sans-serif;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.steps__card-desc {
    font-family: 'Wix Madefor Text', sans-serif;
    color: #bcbbbb;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
}

/* ==============================================
   Timeline
   ============================================== */
.steps__timeline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px; /* треугольники карточек уже занимают 12px */
    padding: 0 calc(100% / 11);
}

.steps__line {
    position: absolute;
    top: 50%;
    left: calc(100% / 10);
    right: calc(100% / 10);
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #4285F4 0%,
        #FFFFFF 12.5%,
        #EA4335 25%,
        #FFFFFF 37.5%,
        #FBBC05 50%,
        #FFFFFF 62.5%,
        #34A853 75%,
        #FFFFFF 87.5%,
        #EA4335 100%
    );
}

.steps__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* ==============================================
   Tablet
   ============================================== */
@media (max-width: 1024px) {
    .steps__heading {
        font-size: 40px;
    }

    .steps__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .steps__card {
        padding: 20px 16px;
    }

    .steps__card-title {
        font-size: 14px;
    }

    .steps__card-desc {
        font-size: 12px;
    }
}

/* ==============================================
   Mobile — вертикальный стек
   ============================================== */
@media (max-width: 768px) {
    .steps {
        padding: 60px 0 72px;
    }

    .steps__wrap {
        padding: 0 16px;
    }

    .steps__heading {
        font-size: 28px;
        max-width: 100%;
    }

    .steps__sub {
        font-size: 14px;
        margin-bottom: 32px;
    }

    /* Карточки в столбик */
    .steps__grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .steps__card {
        width: 100%;
        padding: 20px 16px;
        border-radius: 14px;
        margin-bottom: 0;
    }

    .steps__card::after {
        display: none;
    }

    .steps__num {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .steps__card-title {
        font-size: 16px;
    }

    .steps__card-desc {
        font-size: 13px;
    }

    /* Таймлайн скрыт на мобилке */
    .steps__timeline {
        display: none;
    }
}