.program {
    position: relative;
    --block-radius: 40px;
    --block-radius-m: 20px;
    --program-radius: 20px;
    --block-color: #8868ff;
    --block-padding: 40px 32px;
    --blur-amount: 5px;
    --row-bg: rgba(255, 255, 255, 0.54);
    --time-bg: rgba(255, 255, 255, 0.54);
    
    --text-color: #363636;
    --title-color: var(--text-color);
    --time-color: var(--text-color);
    --program-title-color: var(--text-color);

    --time-font: 24px;
    --time-font-m: 20px;
    --text-font: 24px;
    --text-font-m: 16px;
    --text-big-font: 32px;
    --text-big-font-m: 24px;

    --top-bar-height: 80px;
    --top-bar-start: 704px;
    --top-bar-end: calc(100% - 230px);
    --top-bar-curve: 110px;
}

.program.dark {
    --row-bg: #4C4C5299;
    --time-bg: #FFFFFF3D;
    --text-color: #fff;
    --program-title-color: #FFFFFFCC;
}

.program .program__block-wrapper::before {
    content: "";
    background-color: var(--block-color);
    z-index: -10;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--block-radius);
}

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

.program .block-title {
    color: var(--title-color);
}

.program .program__block {
    color: var(--text-color);
    padding: var(--block-padding);
    border-radius: var(--block-radius);
    position: relative;
    padding-bottom: 40px;
    position: relative;
}

.program.svg-cutout .program__block-wrapper {
    position: relative;
}

.program.clippath .program__block {
    padding-top: var(--top-bar-height);
    margin-top: calc(-1 * var(--top-bar-height));
}

.program.clippath .program__block-wrapper::before {
    content: none;
}

.program.clippath .program__block {
    background-color: var(--block-color);
    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-top {
    display: flex;
    height: var(--top-bar-height);
    width: 100%;
    position: absolute;
    bottom: calc(100% - 1px);
    right: 0;
    padding-right: 75px;
    padding-left: 500px;
    pointer-events: none;
}

.program .program__block-top .svg-curve {
    flex-shrink: 0;
    height: 100%;
    display: flex;
}

.program .program__block-top-center {
    width: 100%;
    height: 100%;
    background-color: var(--block-color);
    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.clippath .program__block::before {
    content: "";
    display: block;
    width: calc(var(--top-bar-end) - var(--top-bar-start));
    height: 16.59px;
    position: absolute;
    top: 40.98px;
    left: var(--top-bar-start);

    background: rgba(255, 255, 255, 0.24);
    box-shadow: 3.48485px 6.9697px 13.9394px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5.22727px);
    border-radius: var(--block-radius);
    border: 2.32px solid #fff;
}

.program .program__bg-picture {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -5;
    display: flex;
}

.program .program__bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--block-radius);
}

.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: var(--program-radius);
    padding: 40px;
    display: grid;
    grid-template-columns: 104px 1fr 444px;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    border-radius: var(--radius);
    background: var(--row-bg);
    box-shadow: 3.48485px 6.9697px 13.9394px rgba(0, 0, 0, 0.08);
}

.program.blur .program__row {
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
}

.program .program__time {
    color: var(--time-color);
    --radius: 20px;
    border-radius: var(--radius);
    height: 55px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--time-font);
    line-height: 130%;
    letter-spacing: 0%;
    position: relative;
    margin-bottom: auto;
    background: var(--time-bg);
    box-shadow: 3.48485px 6.9697px 13.9394px rgba(0, 0, 0, 0.08);
}

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

.program .program__text {
    font-weight: 400;
    font-size: var(--text-font);
    line-height: 130%;
    letter-spacing: 0%;
    margin-bottom: auto;
    width: 100%;
}

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

.program .program__title {
    color: var(--program-title-color);
}

.program .program__row.big-text .program__text.theme {
    font-weight: 800;
    font-size: var(--text-big-font);
    align-self: center;
    margin-bottom: auto;
    margin-top: 6.5px;
}

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

.program .program__title-wrapper {
    width: fit-content;
    position: relative;
}

.program.clippath .program__title-wrapper,
.program.svg-cutout .program__title-wrapper {
    padding: 20px 0; 
}

.program.clippath .program__title-wrapper {
    padding-bottom: 40px;
}

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

.program.svg-cutout .program__blocks {
    margin-top: 0;
}

.program .program__decorative-text {
    position: absolute;
    z-index: -2;
}

.program .program__decorative-text.program {
    top: -48.85px;
    right: -208.4px;
}

.program .program__decorative-text.clients {
    top: 50%;
    left: -67px;
}

.program .program__decorative-text.product {
    bottom: -85px;
    right: 116.8px;
}

/* Detect Safari */
@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;
    }
}

.program .program__logo {
    width: auto;
    height: 40px;
    margin-left: auto;
}

.program .program__logo.hybrid {
    height: 52px;
}

.program .program__logo.fish {
    height: 44px;
}

.program .program__logo.covalev {
    height: 88px;
}

.program__logo.webcanape {
    height: 37px;

}

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

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

@media screen and (max-width: 1220px) {
    .program .program__row {
        padding: 24px;
        grid-template-columns: 104px 1fr 350px;
    }

    .program .program__text-big {
        font-size: var(--text-big-font-m);
        margin-top: 12px;
    }

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

    .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;
    }
}

@media screen and (max-width: 920px) {
    .program .program__row {
        grid-template-columns: 104px 200px 1fr;
    }

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

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

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

    .program .program__logo {
        position: absolute;
        top: 24px;
        right: 24px;
    }

    .program .program__bg-img,
    .program .program__block,
    .program.clippath .program__block::before,
    .program .program__block-wrapper::before {
        border-radius: var(--block-radius-m);
    }
}

@media screen and (max-width: 800px) {
    .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__row {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .program .program__time {
        width: 88px;
    }
}

@media screen and (max-width: 750px) {
    .program.clippath .program__block::before {
        display: none;
    }

    .program.clippath .program__block {
        clip-path: none;
        padding-top: 20px;
        margin-top: 0;
    }

    .program.clippath .program__blocks {
        margin-top: 0;
    }

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

@media screen and (max-width: 680px) {
    .program .program__row {
        grid-template-columns: 77px 1fr;
        gap: 24px 16px;
    }

    .program .program__group,
    .program .program__right {
        grid-column: 1/3;
    }

    .program .program__time {
        font-size: var(--time-font-m);
        height: 42px;
    }

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

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

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

    .program {
        margin-top: 30px;
    }

    .program .program__text {
        font-size: var(--text-font-m);
    }

    .program .program__logo.hybrid {
        height: 34px;
    }

    .program .program__logo.fish {
        height: 29.2px;
    }

    .program .program__logo.covalev {
        height: 54.7px;
    }

    .program__logo.webcanape {
        height: 25px;
    }
}

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

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

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

    .program .program__decorative-text.program {
        top: 21.1px;
        right: -65.4px;
        width: 273px;
        height: auto;
    }

    .program .program__decorative-text.product {
        bottom: -27px;
        right: 113.8px;
        width: 274px;
    }

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

    .program .program__blocks {
        margin-top: 16px;
        gap: 16px;
    }
}

