/* Keep the photograph decorative and respect banners with their own artwork. */
#site_content :is(
    .design-services-contact__box--backdrop,
    .sc-contact,
    .mobile-app-contact-panel,
    .wnm-final-card
):not(:where(.sc-salon *, [style*="url("], :has([data-smpls-bg-image], [data-platform-contact-photo], picture, img))) {
    --project-contact-surface: #12365f;
    --project-contact-copy-width: 51%;
    --project-contact-photo: url('/references/tym-u-stolu.jpg');
    --marketing-card-surface: var(--project-contact-surface);
    --marketing-card-ink: #fff;
    --marketing-card-muted: #e4efff;
    --marketing-card-line: transparent;
    --marketing-card-corner: transparent;
    --smplsColorSubHeading: #deebff;
    --smplsColorSubHeadingDark: #deebff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--project-contact-surface);
    background-image: none;
    color: #fff;

    &::before {
        position: absolute;
        z-index: -1;
        inset: 0;
        background:
            linear-gradient(90deg, var(--project-contact-surface) 50%, rgb(18 54 95 / 80%) 52%, transparent 57%),
            var(--project-contact-photo) right 30% / 49% auto no-repeat;
        pointer-events: none;
        content: "";
    }

    &::after {
        content: none !important;
    }

    & :where(h2, h3, p, .sc-contact-link, .theme-subheading) {
        color: #fff;
    }

    & > .smpls-box-content {
        width: 100%;
    }

    & :where(.sc-contact-symbol) {
        display: none;
    }
}

#site_content .sc-contact:not(:where(.sc-salon *, [style*="url("], :has([data-smpls-bg-image], [data-platform-contact-photo], picture, img))) > :first-child:not(.smpls-box-overlay),
#site_content .sc-contact:not(:where(.sc-salon *, [style*="url("], :has([data-smpls-bg-image], [data-platform-contact-photo], picture, img))) > .smpls-box-content > :first-child {
    max-width: var(--project-contact-copy-width);
}

#site_content :is(.wnm-final-card, .mobile-app-contact-panel):not(:where([style*="url("], :has([data-smpls-bg-image], picture, img))) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1.2rem, 2.5vw, 2rem);

    & > div:not(.smpls-box-overlay, .smpls-box-overlay-background, .smpls-box-content),
    & > .smpls-box-content > .cms-service-box {
        flex: 0 1 auto;
        max-width: var(--project-contact-copy-width);
    }

    & .smpls-button.-solid {
        border-color: #fff;
        background: #fff;
        color: var(--project-contact-surface);
    }

    & .smpls-button.-solid :is(.smpls-button-content, .smpls-button-icon) {
        color: inherit;
    }

    & .smpls-button.-solid:is(:hover, :focus-visible) {
        border-color: #e4efff;
        background: #e4efff;
    }
}

#site_content .mobile-app-contact-panel:not(:where([style*="url("], :has([data-smpls-bg-image], picture, img))) h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
    line-height: 1.18;
}

#site_content .mobile-app-contact-panel:not(:where([style*="url("], :has([data-smpls-bg-image], picture, img))) {
    min-height: 26rem;
    aspect-ratio: 1920 / 725;

    &::before {
        background:
            linear-gradient(90deg, rgb(18 54 95 / 97%) 0%, rgb(18 54 95 / 92%) 32%, rgb(18 54 95 / 42%) 55%, transparent 72%),
            url('/references/projekt-u-stolu.webp') center / cover no-repeat;
    }
}

@media (max-width: 850px) {
    #site_content :is(
        .design-services-contact__box--backdrop,
        .sc-contact,
        .mobile-app-contact-panel,
        .wnm-final-card
    ):not(:where(.sc-salon *, [style*="url("], :has([data-smpls-bg-image], [data-platform-contact-photo], picture, img))) {
        --project-contact-copy-width: 100%;
        --project-contact-photo-height: clamp(12rem, 48vw, 18rem);
        padding-bottom: calc(var(--project-contact-photo-height) + 1rem);

        &::before {
            inset: auto 0 0;
            height: var(--project-contact-photo-height);
            background:
                linear-gradient(180deg, var(--project-contact-surface) 0%, rgb(18 54 95 / 52%) 10%, transparent 27%),
                var(--project-contact-photo) center 24% / cover no-repeat;
        }
    }

    #site_content .mobile-app-contact-panel:not(:where([style*="url("], :has([data-smpls-bg-image], picture, img))) {
        min-height: 0;
        aspect-ratio: auto;
        --project-contact-photo-height: clamp(15rem, 62vw, 26rem);

        &::before {
            background:
                linear-gradient(180deg, var(--project-contact-surface), transparent 35%),
                url('/references/projekt-u-stolu.webp') right center / auto 100% no-repeat;
        }
    }
}
