.promo-box {
    min-height: 640px;
    display: flex;
    flex-direction: column;
    .promo {
        margin-top: auto;
    }
    h1 {
        text-wrap: balance;
        line-height: 1;
    }
}
.page-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 20px;
    padding-bottom: 50px;
    &:has(.content + :where(.slider, .right-box)) {
        grid-template-columns: 1fr 400px;
    }
    > .right-box {
        position: sticky;
        top: 90px;
        align-self: start;
    }
    .slider {
        overflow: hidden;
        width: 100%;
        padding-bottom: 80px;
        margin-bottom: -80px;
        h2 {
            color: var(--5);
            text-align: center;
            font-size: 20px;
            font-weight: 700;
            line-height: 1.4;
            letter-spacing: 0.04px;
            text-transform: uppercase;
            margin-bottom: 40px;
        }
        .slides {
            display: flex;
            margin-bottom: 5px;
            gap: 20px;
        }
        .slide {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            width: 100%;
            position: relative;
            & > a.link {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 0;
            }
            img {
                max-width: 276px;
                aspect-ratio: 276/306;
                border-bottom: 1px solid var(--2);
                margin-bottom: 16px;
                pointer-events: none;
                user-select: none;
                object-fit: contain;
                object-position: center bottom;
                filter: drop-shadow(52px 61px 48px rgba(0, 0, 0, 0.05)) drop-shadow(23px 27px 35px rgba(0, 0, 0, 0.09)) drop-shadow(6px 7px 20px rgba(0, 0, 0, 0.1));
            }
            > * {
                color: var(--white);
                text-align: center;
                letter-spacing: 0.2px;
            }
            .name {
                color: var(--text);
                font-size: 30px;
                font-weight: 500;
                letter-spacing: 0.2px;
                text-shadow: 52px 61px 48px rgba(0, 0, 0, 0.05), 23px 27px 35px rgba(0, 0, 0, 0.09), 6px 7px 20px rgba(0, 0, 0, 0.1);
                position: relative;
                &::after {
                    content: '';
                    position: absolute;
                    top: calc(100% + 4px);
                    height: 1px;
                    width: 100px;
                    background: hsl(0, 0%, 100%);
                    left: 50%;
                    transform: translateX(-50%);
                }
            }
            > p {
                color: var(--5);
                font-size: 20px;
                font-weight: 300;
                letter-spacing: 0.2px;
                margin-bottom: 2px;
                text-shadow: 52px 61px 48px rgba(0, 0, 0, 0.05), 23px 27px 35px rgba(0, 0, 0, 0.09), 6px 7px 20px rgba(0, 0, 0, 0.1);
            }
            .white-btn {
                padding-inline: 40px;
                box-shadow: 52px 61px 48px 0 rgba(0, 0, 0, 0.05), 23px 27px 35px 0 rgba(0, 0, 0, 0.09), 6px 7px 20px 0 rgba(0, 0, 0, 0.1);
            }
        }
        .controls {
            display: none;
            grid-template-columns: 50px 200px 50px;
            align-items: center;
            justify-content: center;
            margin-inline: auto;
            padding-top: 24px;
            &:has(.bubbles div:nth-child(2)) {
                display: grid;
            }
            .bubbles {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
                div {
                    width: 20px;
                    height: 1px;
                    background-color: rgba(152, 152, 152, 0.4);
                    pointer-events: none;
                    &.selected {
                        height: 3px;
                        width: 40px;
                        background-color: var(--2);
                    }
                }
            }
            .white-btn {
                border: none;
                background: rgba(255, 255, 255, 0.2);
                &:last-child {
                    transform: scaleX(-1);
                }
                .text-h b::after {
                    content: '\e905';
                    font: 100 20px / 1 icon;
                }
                &.ws-arrow-disabled {
                    opacity: .2;
                    pointer-events: none;
                    .text-h b::after {
                        color: var(--text);
                    }
                }
            }
        }
    }
}
:is(.partner-modal, .project-contact-modal) .window-body {
    /* max-width: 720px;
    padding: 40px;
    background: url(../images/modal-text.webp) top center/auto no-repeat; */
    .content {
        display: grid;
        grid-template-columns: .53fr .47fr;
        gap: 40px;
    }
    .image {
        width: 100%;
        aspect-ratio: 320/354;
        border-bottom: 1px solid var(--white);
        img {
            height: 100%;
            object-fit: contain;
            object-position: bottom center;
        }
    }
    .info {
        display: flex;
        flex-direction: column;
    }
    .title {
        --m: 4px;
    }
    .post {
        color: #BD6C7E;
        font-size: 20px;
        font-weight: 300;
        letter-spacing: 0.2px;
        margin-bottom: 10px;
    }
    .contacts {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            &[href=""] {
                display: none;
            }
            .text-h b {
                display: flex;
                align-items: center;
                gap: 6px;
                transform: translateY(calc(-100% - var(--g)));
                &::after {
                    font: 100 20px/1 icon;
                }
                &:first-child {
                    color: var(--5);
                }
            }
            &::before {
                transform: translateY(0);
            }
            &.telegram .text-h b::after {
                content: '\e907';
            }
            &.tel .text-h b::after {
                content: '\e912';
            }
            &.mail .text-h b::after {
                content: '\e913';
            }
        }
    }
}

@media (max-width: 1280px) {
    .page-content {
        &:has(.content + :where(.slider, .right-box)) {
            grid-template-columns: 1fr 320px;
            gap: 10px;
        }
        .slider .slide {
            .name {
                font-size: 24px;
            }
            > p {
                font-size: 16px;
            }
            img {
                max-width: 200px;
            }
        }
    }
}
@media (max-width: 1080px) {
    .page-content {
        &:has(.content + :where(.slider, .right-box)) {
            grid-template-columns: 100%;
        }
        .slider {
            grid-row: auto;
            width: 100vw;
            margin-left: -10px;
            h2 {
                margin-bottom: 20px;
            }
            .slide {
                .name {
                    font-size: 20px;
                }
                >p {
                    font-size: 16px;
                }
                img {
                    margin-inline: auto;
                    width: min(200px, 100%);
                    margin-bottom: 0px;
                }
            }
            .controls {
                padding-top: 15px;
            }
        }
    }
    :is(.partner-modal, .project-contact-modal) .window-body {
        .content {
            grid-template-columns: .5fr .5fr;
            gap: 20px;
        }
        .title {
            font-size: 20px;
        }
        .post {
            font-size: 16px;
        }
        .contacts {
            gap: 10px;
        }
    }
}
@media (max-width: 768px) {
    :is(.partner-modal, .project-contact-modal) .window-body {
        max-width: 300px;
        .content {
            display: flex;
            flex-direction: column;
        }
    }
}
@media (hover:hover) {
    :is(.partner-modal, .project-contact-modal) .window-body .contacts a:hover {
        .text-h b {
            transform: translateY(0);
        }
        &::before {
            transform: translateY(calc(-100% - 1px));
        }
    }
}