.pt-program-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0;
}

.pt-program-badge {
    display: inline-block;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pt-program-badge--distinction {
    background: #28274a;
    color: #fff;
}

.pt-program-badge-stars {
    color: #ffdc80;
    white-space: nowrap;
}

.pt-program-badge--varna {
    background: #e8f3fb;
    color: #174875;
}

.pt-program-badge--accent {
    background: #9c2c64;
    color: #fff;
}

.pt-program-top-card,
.pt-program-card-ribbon {
    position: relative;
}

.pt-program-top-distinction {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    max-width: calc(100% - 105px);
    text-align: right;
    pointer-events: none;
}

.pt-program-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 116px;
    height: 108px;
    overflow: hidden;
    pointer-events: none;
}

.pt-program-ribbon > span {
    display: block;
    width: 160px;
    padding: 4px 19px;
    transform: translate(-39px, 30px) rotate(-45deg);
    background: #b33073;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pt-program-card-ribbon .ioi-stars {
    top: 85px;
}

.index-offers-item > .pt-program-badges {
    margin: 6px 10px;
}

.list1info.pt-program-list-with-badges {
    height: auto;
    min-height: 200px;
}

.pt-program-list-with-badges > .pt-program-badges {
    clear: both;
    margin-left: 3%;
    margin-right: 3%;
}

.tbp-header > .pt-program-badges {
    margin-bottom: 10px;
}
