.program {
    margin-top: 171px;
    position: relative;
}

.program .program__block-wrapper {
    filter: url('#round-20');
}

.program .block-title,
.program .program__title-wrapper.desktop .block-title {
    color: #fff;
}

.program .program__title-wrapper.mobile {
    display: none;
}

.program .program__top-picture {
    display: flex;
    width: 279px;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 433px
}

.program .program__top-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.program .program__block {
    color: #fff;
    background-color: #3392ff;
    padding: 0 32px;
    border-radius: 60px;
    position: relative;
    margin-top: 40px;
    padding-bottom: 40px;
    position: relative;

    --top-bar-height: 80px;
    --top-bar-start: 661px;
    --top-bar-end: calc(100% - 183px);
    --top-bar-curve: 65px;
    padding-top: var(--top-bar-height);
    clip-path: polygon(
        0 var(--top-bar-height),
        calc(var(--top-bar-start) - var(--top-bar-curve)) var(--top-bar-height),
        var(--top-bar-start) 0,
        var(--top-bar-end) 0,
        calc(var(--top-bar-end) + var(--top-bar-curve)) var(--top-bar-height),
        100% var(--top-bar-height),
        100% 100%,
        0 100%
    );
}

.program .program__block::before {
    --offset: 43px;
    content: "";
    display: block;
    width: calc((var(--top-bar-end) - var(--offset)) - (var(--top-bar-start) + var(--offset)));
    height: 16.59px;
    position: absolute;
    top: 40.98px;
    left: calc(var(--top-bar-start) + var(--offset));

    background: #fff;
    backdrop-filter: blur(5.22727px);
    border-radius: 40px;
}

.program .program__block-top {
    display: flex;
    height: 89px;
    width: 100%;
    position: absolute;
    bottom: calc(100% - 1px);
    right: 0;
    padding-right: 75px;
    padding-left: 500px;
    pointer-events: none;
}

.program .program__block-top-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: -1px;
    margin-right: -1px;
}

.program .program__block-top-center::before {
    content: "";
    width: 100%;
    height: 17px;
    border-radius: 59px;
    background-color: #E6DFFF;
}

.program .program__row {
    --radius: 20px;
    padding: 21px 40px;
    display: grid;
    grid-template-columns: 128px 1fr 444px;
    gap: 24px;
    align-items: center;
    position: relative;
    min-height: 135px;
    border-radius: var(--radius);
    border: 1px solid #FFF;
    border: 1px solid #FFFFFF;
    box-shadow: 3.48485px 6.9697px 13.9394px rgba(0, 0, 0, 0.08);
}

.program .program__row.inline {
    padding: 40px;
    padding-bottom: 34px;
}

.program .program__time {
    color: #3392FF;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;

    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    position: relative;
    margin-bottom: auto;

    border: 1px solid #FFFFFF;
    box-shadow: 3.48485px 6.9697px 13.9394px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

.program .program__time-inner {
    border-radius: 16px;
    background-color: #fff;
    padding: 12px 20px;
}

.program .program__time.center {
    align-self: center;
}

.program .program__text-big {
    font-weight: 800;
    font-size: 32px;
    line-height: 130%;
    letter-spacing: 0%;
    align-self: center;
    margin-bottom: auto;
}

.program .program__text {
    font-weight: 400;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    margin-bottom: auto;
}

.program .program__theme {
    margin-top: 8.5px;
}

.program .program__text b {
    font-weight: 800;
}

.program .program__group-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
}

.program .program__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program .program__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program .program__title-wrapper {
    width: fit-content;
    position: relative;
    padding-top: 40px;
}

.program .program__blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
    .program .program__block::before {
        content: none;
    }

    .program .program__block {
        clip-path: none;
        padding-top: 0;
    }
}

@media screen and (max-width: 1380px) {
    .program .program__block-top {
        padding-right: 45px;
        padding-left: 450px;
    }
}

@media screen and (max-width: 1080px) {
    .program .program__block {
        --top-bar-start: 500px;
    }

    .program .program__top-picture {
        width: 232px;
        left: 272px;
    }

    .program {
        margin-top: 0;
    }

    .block-title {
        font-size: 32px;
    }

    .program .program__row.inline,
    .program .program__row {
        padding: 20px;
        min-height: unset;
    }

    .program .program__text-big {
        font-size: 24px;
    }

    .program .program__time.center,
    .program .program__text-big {
        align-self: flex-start;
    }

    .program .program__text {
        font-size: 18px;
    }

    .program .program__block-top {
        height: 62px;
        padding-left: 310px;
        padding-right: 40px;
        max-width: 850px;
    }

    .program .program__block-top svg.corner-curve {
        width: 80px;
    }

    .program .program__block-top-center::before {
        height: 13px;
    }

    .program .program__row {
        min-height: 150px;
    }
}

@media screen and (max-width: 980px) {
    .program .program__row.inline, .program .program__row {
        grid-template-columns: 128px 1fr 300px;
    }
}

@media screen and (max-width: 920px) {
    .program .program__top-picture {
        width: 206px;
        left: 246px;
    }

    .program .program__row {
        grid-template-columns: 128px 200px 1fr;
    }

    .program .program__text {
        grid-column: 1/3;
    }

    .program .program__block {
        --top-bar-start: 400px;
        --top-bar-height: 60px;
        --top-bar-curve: 50px;
        --top-bar-end: calc(100% - 150px);
    }
    .program .program__block-wrapper {
        filter: url('#round-12');
    }

    .program .program__block::before {
        top: 25px;
        height: 12px;
    }
}

@media screen and (max-width: 920px) {
    .program .program__row.inline {
        grid-template-columns: 128px 1fr;
        align-items: center;
    }

    .program .program__row.inline .program__group {
        grid-column: 1/3;
    }

    .program .program__row.inline .program__text-big {
        height: 100%;
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 720px) {
    .program .program__top-picture {
        width: 180px;
        left: unset;
        right: 35px;
        top: -54px;
    }

    .program .program__block {
        clip-path: none;
        border-radius: 20px;
        overflow: hidden;
        padding: 10px 20px;
        padding-bottom: 20px;
    }

    .program .program__block::before {
        content: none;
    }

    .program .program__block-wrapper {
        filter: none;
    }

    .program .program__title-wrapper {
        padding-top: 0;
    }

    .program .block-title {
        padding-left: 0;
        padding-top: 15px;
    }

    .program .program__time-inner {
        padding: 6px 10px;
        border-radius: 10px;
    }

    .program .program__time {
        border-radius: 12px;
    }

    .program .program__row.inline,
    .program .program__row {
        grid-template-columns: 85px 1fr;
        gap: 24px 16px;
    }

    .program .program__time {
        font-size: 18px;
        height: 42px;
        padding: 25px;
    }

    .program .program__row.inline .program__text-big {
        margin-top: 0;
    }

    .program .program__text {
        margin-top: 0;
    }
}

@media screen and (max-width: 680px) {
    .program .program__group,
    .program .program__right {
        grid-column: 1/3;
    }

    .program .program__block-top {
        display: none;
    }

    .program .program__text-big {
        font-size: 20px;
        margin-top: 8px;
    }

    .program .program__block {
        margin-top: 16px;
    }
}

@media screen and (max-width: 550px) {
    .program__outer {
        padding: 0;
    }

    .program .program__block {
        padding: 10px 20px;
        padding-bottom: 20px;
        margin-top: 16px;
    }

    .program .program__row {
        padding: 16px;
        gap: 16px;
    }
}

@media screen and (max-width: 430px) {
    .program .program__top-picture {
        width: 108px;
        top: 2px;
    }
}
