.colored-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.colored-cards .colored-cards__card {
    --title-color: #3b82f6;
    --subtitle-color: #93c5fd;
    --corner-color: #eff6ff;
    --top-color: var(--title-color);

    background-color: #fff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 32px;
    flex: 1;
}

.colored-cards .colored-cards__card .colored-cards__text {
    max-width: 285px;
}

.colored-cards .colored-cards__card.yellow {
    --title-color: #d97706;
    --subtitle-color: #fcd34d;
    --corner-color: #fffbeb;
    --top-color: #f59e0b;
}

.colored-cards .colored-cards__card.red {
    --title-color: #ef4444;
    --subtitle-color: #fca5a5;
    --corner-color: #fef2f2;
}

.colored-cards .colored-cards__card:before {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--top-color);
}

.colored-cards .colored-cards__card:after {
    --size: 64px;
    content: "";
    position: absolute;
    height: var(--size);
    width: var(--size);
    bottom: calc(-1 * (var(--size) / 2));
    right: calc(-1 * (var(--size) / 2));
    background-color: var(--corner-color);
    transform: rotate(45deg);
}

.colored-cards .colored-cards__card hr {
    border: 1px solid #eff6ff;
    margin: 16px 0;
}

.colored-cards .colored-cards__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 36px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--title-color);
}

.colored-cards .colored-cards__subtitle {
    font-weight: 700;
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--subtitle-color);
}

@media screen and (max-width: 1100px) {
    .colored-cards .colored-cards__title {
        font-size: 28px;
    }

    .colored-cards .colored-cards__card {
        padding: 24px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 800px) {
    .colored-cards .colored-cards__title {
        font-size: 24px;
    }

    .colored-cards .colored-cards__card {
        padding: 16px;
        border-radius: 10px;
    }
}

@media screen and (max-width: 750px) {
    .colored-cards {
        flex-direction: column;
    }
}
