.stories {
    margin: 120px 0 120px;
}

.stories__title {
    font-weight: 800;
    font-size: 58px;
    line-height: 120%;
    text-align: center;
}

.stories__description {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    text-align: center;
    margin: 30px auto 0;
    max-width: 850px;
}

.stories__blocks {
    margin: 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    .case-block__img a img {
        max-height: 240px;
    }
    .stories {
        margin: 40px 10px;
    }
}

@media (max-width: 567px) {
    .stories__title {
        font-weight: 700;
        font-size: 20px;
        line-height: 120%;
        text-align: left;
    }

    .stories__description {
        font-size: 14px;
        margin: 15px auto 0;
        text-align: left;
    }

    .stories__blocks {
        margin: 25px 0 0;
    }
}


.case-block {
    border: 1px solid #222222;
    border-radius: 10px;
    padding: 60px 70px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    column-gap: 50px;
}

.case-block__img {
    width: 100%;
}

.case-block__img a{
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-block__img a img {
    border-radius: 10px;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.case-block__text {
    width: 100%;
}

.case-block__text-category {
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    text-transform: uppercase;
    color: #5B3FBB;
    margin: 0 0 15px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.case-block__text-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
    text-align: center;
}

.case-block__text-title a {
    text-decoration: none;
    color: #222;
}

.case-block__text-description {
    margin: 30px 0 0;
}

.case-block__text-description p {
    margin: 0 0 20px;
    text-align: center;
}

.case-block__text-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-block__text-description ul li {
    position: relative;
    padding: 0 0 0 20px;
    margin-bottom: 20px;
}

.case-block__text-description ul li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #5B3FBB;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 8px;
}

.case-block__text-action {
    display: block;
    width: max-content;
    margin: 10px auto 30px;
}

@media (max-width: 767px) {
    .case-block {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .case-block__text {
        width: 100%;
    }

    .case-block__img {
        width: 100%;
    }
    .case-block__text-description ul {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 567px) {
    .case-block__text-title {
        font-size: 24px;
    }

    .case-block__text-action {
        width: 100%;
        text-align: center;
    }
}