.rsg-steps-cards {
    padding: 70px 0 60px;
    background: #ffffff;
}

.rsg-steps-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.rsg-steps-header {
    margin: 0 auto 80px;
}

.rsg-steps-heading {
    font-size: 35px;
    font-weight: 800;
    text-align: center;
    margin: 0;
}

.rsg-steps-description {
    font-size: 18px;
    line-height: 1.5;
    color: #1b1b1b;
    margin-top: 18px;
}

.rsg-steps-description p {
    margin: 0;
}

.rsg-steps-grid {
    padding-top: 51px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.rsg-step-card:hover, .rsg-step-card:focus {
    background: #5655E3;
}

.rsg-step-card {
    position: relative;
    min-height: 400px;
    border-radius: 22px;
    padding: 100px 38px 38px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: #0A0C99;
}

.rsg-step-number {
    font-family: var(--font-heading);
    position: absolute;
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #5655E3;
    color: #070096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
    line-height: 1;
    font-weight: 800;
    z-index: 2;
}

.rsg-step-title {
    color: #ffffff;
    font-size: 35px;
    line-height: normal;
    font-weight: 800;
    transition: all 0.25s ease;
}

.rsg-step-hover-description {
    display: none;
    color: #ffffff;
    font-size: 16px;
    margin-top: 16px;
    line-height: normal;
    transition: all 0.3s ease;
}

.rsg-step-hover-description p {
    margin: 0;
}

.rsg-step-card:hover .rsg-step-title,
.rsg-step-card:focus .rsg-step-title {
    font-size: 25px;
    margin-bottom: 18px;
}

.rsg-step-card:hover .rsg-step-hover-description,
.rsg-step-card:focus .rsg-step-hover-description {
    display: block;
}

.rsg-steps-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.rsg-steps-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



@media (max-width: 1024px) {
    .rsg-steps-grid {
        grid-template-columns: 1fr;
        gap: 90px;
    }

    .rsg-step-card {
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .rsg-steps-cards {
        padding: 50px 0;
    }

    .rsg-steps-container {
        width: min(100% - 28px, 1220px);
    }

    .rsg-steps-header {
        margin-bottom: 70px;
    }

    .rsg-step-card {
        padding: 88px 24px 30px;
    }

    .rsg-step-number {
        width: 100px;
        height: 100px;
        top: -50px;
        font-size: 60px;
    }

    .rsg-step-title {
        font-size: 30px;
    }

    .rsg-step-hover-description {
        font-size: 16px;
    }

    .rsg-steps-button {
        width: 100%;
        font-size: 17px;
        padding: 13px 24px;
        text-align: center;
    }
}