/* Portfolio index, Legal Run and the two information-page introductions. */
body > .st-flow--portfolio ~ #wrapper:has(> :is(.st-flow-portfolio-index, .st-flow-legal-run)) {
    background: #fbfaf7;
}

body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index {
    padding-block-start: 16px;
}

body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index > .st-flow-content-return,
body > .st-flow--info ~ #wrapper .st-flow-info-page > .st-flow-info-back {
    display: block;
    width: fit-content;
    margin: 0;
    color: #284c34;
    font: 700 14px/17px var(--flow-font);
    text-underline-offset: 3px;
}

body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index > h1 {
    margin: 14px 0 19px;
    line-height: 52px;
}

body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index > .photo_list {
    gap: 15px 18px;
    align-items: start;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .photo_item > .photo_image {
    box-sizing: border-box;
    height: auto;
    border-color: #dddcd3;
    border-radius: 8px;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .photo_item > .photo_image > img {
    flex: none;
    border-radius: 7px;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .alb_text .alb_text_wrap {
    min-block-size: 0;
    padding: 10px 8px 8px;
    gap: 6px;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .alb_text_wrap .alb_snoska {
    margin: 0;
    color: #22251e;
    font: 400 13px/1.25 var(--flow-font);
}

body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .alb_snoska :is(p, strong) {
    color: inherit;
    font: inherit;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-legal-run .st-flow-project-cover img {
    object-position: center;
}

body > .st-flow--portfolio ~ #wrapper .st-flow-legal-run > .anons:not(.anons__nabor) {
    width: min(100%, 770px);
    margin: 0 0 24px;
    padding: 0;
}

body > .st-flow--info ~ #wrapper .st-flow-info-page {
    padding-top: 16px;
}

body > .st-flow--info ~ #wrapper .st-flow-info-page > h1 {
    margin: 14px 0 17px;
    line-height: 52px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page > h1 {
    margin-bottom: 24px;
}

body > .st-flow--info ~ #wrapper .st-flow-info-page > section {
    max-width: 770px;
}

body > .st-flow--info ~ #wrapper .st-flow-info-page > section > p {
    font-size: 17px;
    line-height: 21px;
}

body > .st-flow--info ~ #wrapper .st-flow-about > section:first-of-type > h2 {
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 32px;
}

body > .st-flow--info ~ #wrapper .st-flow-about > section + section {
    margin-top: 63px;
}

body > .st-flow--info ~ #wrapper .st-flow-about > section + section > h2 {
    margin-bottom: 17px;
    font-size: 23px;
    line-height: 28px;
}

body > .st-flow--info ~ #wrapper .st-flow-about > section + section > p {
    font-size: 16px;
    line-height: 20px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page > section > h2 {
    margin-bottom: 17px;
    font-size: 24px;
    line-height: 29px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page address {
    margin-top: 48px;
    gap: 20px;
    color: #284c34;
    font-size: 14px;
    line-height: 17px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page address a {
    color: inherit;
}

body > .st-flow--info ~ #wrapper .st-flow-info-actions {
    display: grid;
    grid-template-columns: minmax(0, 229px) minmax(0, 1fr);
    align-items: center;
    gap: 16px 24px;
    margin-top: 52px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page .st-flow-info-actions {
    margin-top: 32px;
}

body > .st-flow--info ~ #wrapper .st-flow-info-actions > .st-flow-info-button {
    width: min(229px, 100%);
    min-height: 45px;
    margin: 0;
    border-radius: 7px;
}

body > .st-flow--info ~ #wrapper .st-flow-info-actions > .st-flow-info-button--quote {
    width: min(228px, 100%);
    background: #fa7b27;
}

body > .st-flow--info ~ #wrapper .st-flow-info-actions > .st-flow-info-details {
    min-width: 0;
    margin: 0;
}

body > .st-flow--info ~ #wrapper .st-flow-info-actions > .st-flow-info-details[open] {
    grid-column: 1 / -1;
}

body > .st-flow--info ~ #wrapper .st-flow-about {
    padding-bottom: 26px;
}

body > .st-flow--info ~ #wrapper .st-flow-contact-page {
    padding-bottom: 19px;
}

@media (max-width: 700px) {
    body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index > .photo_list {
        gap: 12px;
    }
}

@media (max-width: 650px) {
    body > .st-flow--portfolio ~ #wrapper > .st-flow-portfolio-index > h1 {
        margin-bottom: 12px;
        line-height: 33px;
    }

    body > .st-flow--portfolio ~ #wrapper .st-flow-portfolio-index .alb_text_wrap .alb_snoska {
        font-size: 11px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-info-page > h1 {
        margin-bottom: 35px;
        line-height: 34px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-contact-page > h1 {
        margin-bottom: 42px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-about > section + section {
        margin-top: 21px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-contact-page address {
        margin-top: 27px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-info-actions {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 32px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-info-actions > .st-flow-info-button {
        width: 100%;
    }

    body > .st-flow--info ~ #wrapper .st-flow-about {
        padding-bottom: 39px;
    }

    body > .st-flow--info ~ #wrapper .st-flow-contact-page {
        padding-bottom: 44px;
    }
}
