/* region Grid */

.steps__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 24px;
    list-style: none;
    counter-reset: steps;
}

.steps__bottom {
    text-align: center;
    margin-top: 56px;
}

@media (max-width: 1023px) {
    .steps__list {
        gap: 16px;
    }

    .steps__bottom {
        margin-top: 48px;
    }
}

/* endregion Grid */

/* region Item */

.steps__item {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 32px;
    gap: 32px;
    background-color: var(--element-secondary);
    border-radius: 16px;
    width: calc(100% / 3 - 22px);
}

.steps__item:first-child:nth-last-child(4),
.steps__item:first-child:nth-last-child(4) ~ .steps__item {
    width: calc(100% / 4 - 72px);
    min-width: 290px;
}

.steps__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 32px;
    fill: var(--icon-primary);
}

.steps__figure {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
}

.steps__img {
    width: 64px;
    height: 64px;
}

.steps__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    fill: var(--text-secondary);
    cursor: pointer;
}

.steps__link:hover,
.steps__link:active {
    text-decoration: none;
    color: var(--text-secondary);
}

.steps__link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1439px) {
    .steps__item,
    .steps__item:first-child:nth-last-child(4),
    .steps__item:first-child:nth-last-child(4) ~ .steps__item {
        width: calc(50% - 24px);
    }
}

@media (max-width: 1023px) {
    .steps__item {
        padding: 24px;
        gap: 24px;
    }

    .steps__icon,
    .steps__figure {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .steps__item,
    .steps__item:first-child:nth-last-child(4),
    .steps__item:first-child:nth-last-child(4) ~ .steps__item {
        width: 100%;
    }
}

/* endregion Item */

/* region Modifications */

.steps__list.template-circle-icons .steps__icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background-color: var(--element-accent);
    fill: var(--icon-tertiary);
    border-radius: 50%;
}

[data-type="number"].steps__list .steps__item,
.steps__list.template-circle-numbers .steps__item {
    counter-increment: steps;
}

[data-type="number"].steps__list .steps__icon,
.steps__list.template-circle-numbers .steps__icon {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 12px;
    background-color: var(--element-accent);
    border-radius: 50%;
}

[data-type="number"].steps__list .gpbi-icon::before,
.steps__list.template-circle-numbers .steps__icon::after {
    position: absolute;
    left: 50%;
    content: counter(steps);
    color: var(--text-tertiary);
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    transform: translateX(-50%);
}

.steps__list.template-picture-bottom .steps__item {
    position: relative;
    padding-bottom: 192px;
}

.steps__list.template-picture-bottom .steps__figure {
    position: absolute;
    width: 160px;
    height: 160px;
    right: 0;
    bottom: 0;
    margin-bottom: 0;
}

.steps__list.template-picture-bottom .steps__img {
    width: 160px;
    height: 160px;
}

@media (max-width: 1023px) {
    .steps__list.template-picture-bottom .steps__item {
        padding-bottom: 184px;
    }
}

/* endregion Modifications */

/* Region styles of landings 24 block */

[data-hide-desc='["Y"]'].lpStepsDesc,
[data-hide-btn='["Y"]'].lpStepsButtonContainer,
[data-hide-item-title='["Y"]'] .lpStepsItemTitle,
[data-hide-item-desc='["Y"]'] .lpStepsItemDesc,
[data-hide-item-link='["Y"]'] .lpStepsItemLinkContainer {
    display: none;
}

/* End region styles of landings 24 block */