.x-related-boxes {
    --p-color: #202A32;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.section-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;

}

.x-related-boxes .primary-green-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    margin-top: 24px;
}

@media screen and (min-width: 768px) {
    .section-container {
        max-width: 750px;
    }
}

@media screen and (min-width: 992px) {
    .section-container {
        max-width: 970px;
    }
}

@media screen and (min-width: 1200px) {
    .section-container {
        max-width: 1200px;
    }
}

.x-related-boxes__title > * {
    color: var(--p-color);
    font-weight: 700;
    font-family: Lato;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .x-related-boxes__title > * {
        font-size: 24px;
        line-height: 33px;
    }
}

@media (min-width: 1200px) {
    .x-404__related-boxes .x-related-boxes__title > * {
        font-size: 32px;
        line-height: 120%;
        text-align: left;
    }
}

.x-404__related-boxes {
    margin-top: 48px;
}

@media screen and (min-width: 768px) {
    .x-404__related-boxes {
        margin-top: 64px;
    }
}

.x-related-boxes__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (min-width: 640px) {
    .x-related-boxes__cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .x-related-boxes__cards {
        gap: 24px;
    }
}

.x-related-boxes__cards--item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;

    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out
}

.x-related-boxes__cards--item img {
    width: 100%;
    height: 100%;
    min-height: 84px;
    max-height: 84px;
    object-fit: cover;

}

@media (min-width: 768px) {
    .x-related-boxes__cards--item img {
        min-height: 114px;
        max-height: 114px;
    }
}

@media (min-width: 1024px) {
    .x-related-boxes__cards--item img {
        max-height: 130px;
        min-height: 130px;
    }
}

.x-realted-boxes-button {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(/images/related-boxes-bg.png);
    background-size: cover;
    width: 100%;
    font-weight: 800;
    font-size: 14px;
    margin-top: -4px;
    text-align: center;
    min-height: 30px;
    height: 100%;
    padding: 0 4px;

}

@media (min-width: 1024px) {
    .x-realted-boxes-button {
        font-size: 16px;
        min-height: 54px;
    }
}

.x-related-boxes__cards--item:hover {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out
}