.sd-home-flow,
.sd-home-offers {
    --sd-flow-green: #07962f;
    --sd-flow-green-dark: #057d28;
    --sd-flow-text: #1c2228;
    --sd-flow-muted: #69737d;
    color: var(--sd-flow-text);
}

.sd-home-flow {
    padding: 56px 0 62px;
    margin-top: 0;
    border-top: 1px solid #e8e2d8;
    background: linear-gradient(180deg, #faf8f3 0%, #f2eee7 100%);
}

.sd-home-flow__heading,
.sd-home-offers__heading {
    margin-bottom: 30px;
}

.sd-home-flow__heading {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
    text-align: center;
}

.sd-home-flow__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--sd-flow-green-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sd-home-flow h2,
.sd-home-offers h2 {
    margin: 0;
    color: var(--sd-flow-text);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 750;
}

.sd-home-flow__heading p,
.sd-home-offers__heading p {
    margin: 12px 0 0;
    color: var(--sd-flow-muted);
    font-size: 17px;
    line-height: 1.55;
}

.sd-home-flow__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-home-flow__steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 8%;
    right: 8%;
    border-top: 2px dashed rgba(7, 150, 47, .28);
}

.sd-home-flow__step {
    position: relative;
    min-height: 276px;
    padding: 28px 24px 24px;
    border: 1px solid #dde8e0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(27, 59, 37, .07);
    text-align: left;
}

.sd-home-flow__number {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #f1f8f3;
    border-radius: 50%;
    background: var(--sd-flow-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.sd-home-flow__step-icon {
    width: 84px;
    height: 84px;
    margin: 30px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sd-flow-green-dark);
}

.sd-home-flow__step-icon img {
    width: 84px;
    height: 84px;
    display: block;
}

.sd-home-offers__project-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sd-home-flow__step h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.sd-home-flow__step p {
    margin: 0;
    color: var(--sd-flow-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sd-home-flow__assurances {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #dbe7de;
    border-radius: 15px;
    background: rgba(255, 255, 255, .8);
}

.sd-home-flow__assurances > div {
    position: relative;
    min-height: 92px;
    padding: 18px 18px 16px 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sd-home-flow__assurances > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 0;
    width: 1px;
    height: 48px;
    background: #dce5df;
}

.sd-home-flow__assurance-icon {
    position: absolute;
    left: 18px;
    top: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-home-flow__assurance-icon img {
    width: 44px;
    height: 44px;
    display: block;
}

.sd-home-flow__assurances strong {
    font-size: 14px;
    line-height: 1.3;
}

.sd-home-flow__assurances small {
    margin-top: 4px;
    color: var(--sd-flow-muted);
    font-size: 12px;
    line-height: 1.35;
}

.sd-home-flow__consultation {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.sd-home-flow__consult-button {
    min-width: 300px;
    min-height: 52px;
    padding: 12px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 2px solid var(--sd-flow-green);
    border-radius: 9px;
    background: #fff;
    color: var(--sd-flow-green-dark);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(24, 52, 33, .06);
    transition: .2s ease;
}

.sd-home-flow__consult-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sd-home-flow__consult-button:hover {
    background: var(--sd-flow-green);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(7, 150, 47, .18);
}

.sd-home-offers {
    padding: 68px 0 72px;
    background: #fff;
}

.sd-home-offers__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.sd-home-offers__heading > div {
    max-width: 760px;
}

.sd-home-offers__all {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: var(--sd-flow-green-dark);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.sd-home-offers__all:hover {
    color: var(--sd-flow-green);
    text-decoration: none;
}

.sd-home-offers__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sd-home-offers__card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e6e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(31, 48, 36, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sd-home-offers__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px rgba(31, 48, 36, .13);
}

.sd-home-offers__image {
    min-height: 210px;
    background-size: cover;
    background-position: center;
}

.sd-home-offers__card--gift .sd-home-offers__image {
    background-position: center 45%;
}

.sd-home-offers__image--project {
    background-position: center 52%;
}

.sd-home-offers__project-icon {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5eb 0%, #f7fbf8 100%);
    color: var(--sd-flow-green-dark);
}

.sd-home-offers__project-icon svg {
    width: 92px;
    height: 92px;
    stroke-width: 1.7;
}

.sd-home-offers__body {
    flex: 1;
    padding: 24px 24px 25px;
    display: flex;
    flex-direction: column;
}

.sd-home-offers__badge {
    align-self: flex-start;
    margin-bottom: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ebf7ee;
    color: var(--sd-flow-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sd-home-offers__card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 750;
}

.sd-home-offers__card p {
    flex: 1;
    margin: 0 0 20px;
    color: var(--sd-flow-muted);
    font-size: 15px;
    line-height: 1.55;
}

.sd-home-offers__card a {
    min-height: 48px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    background: var(--sd-flow-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.sd-home-offers__card a:hover {
    background: var(--sd-flow-green-dark);
    color: #fff;
    text-decoration: none;
}

.sd-home-offers__note {
    margin: 17px 0 0;
    color: #7a838b;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .sd-home-flow__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-home-flow__steps::before {
        display: none;
    }

    .sd-home-flow__step {
        min-height: 250px;
    }

    .sd-home-flow__assurances {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-home-flow__assurances > div:nth-child(2)::after {
        display: none;
    }

    .sd-home-flow__assurances > div:nth-child(-n+2) {
        border-bottom: 1px solid #dce5df;
    }
}

@media (max-width: 991.98px) {
    .sd-home-flow,
    .sd-home-offers {
        padding: 52px 0;
    }

    .sd-home-offers__grid {
        grid-template-columns: 1fr;
    }

    .sd-home-offers__card {
        display: grid;
        grid-template-columns: minmax(220px, .72fr) 1fr;
    }

    .sd-home-offers__image,
    .sd-home-offers__project-icon {
        min-height: 100%;
    }

}

@media (max-width: 767.98px) {
    .sd-home-flow__heading,
    .sd-home-offers__heading {
        margin-bottom: 24px;
    }

    .sd-home-flow__heading p,
    .sd-home-offers__heading p {
        font-size: 15px;
    }

    .sd-home-flow__steps {
        grid-template-columns: 1fr;
    }

    .sd-home-flow__step {
        min-height: 0;
        padding: 22px 20px 22px 104px;
    }

    .sd-home-flow__number {
        top: 18px;
        left: 18px;
    }

    .sd-home-flow__step-icon {
        position: absolute;
        top: 54px;
        left: 18px;
        width: 64px;
        height: 64px;
        margin: 0;
    }

    .sd-home-flow__step-icon svg {
        width: 42px;
        height: 42px;
    }

    .sd-home-flow__step h3 {
        min-height: 0;
    }

    .sd-home-flow__assurances {
        grid-template-columns: 1fr;
    }

    .sd-home-flow__assurances > div {
        border-bottom: 1px solid #dce5df;
    }

    .sd-home-flow__assurances > div::after {
        display: none;
    }

    .sd-home-flow__assurances > div:last-child {
        border-bottom: 0;
    }

    .sd-home-flow__consult-button {
        min-width: 0;
        width: 100%;
        max-width: 360px;
    }

    .sd-home-offers__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .sd-home-offers__card {
        display: flex;
    }

    .sd-home-offers__image,
    .sd-home-offers__project-icon {
        min-height: 200px;
    }
}

@media (max-width: 479px) {
    .sd-home-flow,
    .sd-home-offers {
        padding: 42px 0;
    }

    .sd-home-flow__step {
        padding-left: 92px;
    }

    .sd-home-flow__step-icon {
        width: 56px;
        height: 56px;
    }

    .sd-home-flow__step-icon svg {
        width: 36px;
        height: 36px;
    }

    .sd-home-offers__body {
        padding: 20px;
    }
}


.sd-home-flow h2 {
    margin: 0;
}

.sd-home-flow + .sd-home-offers {
    padding-top: 22px;
}

@media (max-width: 991.98px) {
    .sd-home-flow {
        margin-top: 0;
        padding: 46px 0 50px;
    }

    .sd-home-flow__heading {
        margin-bottom: 24px;
    }

    .sd-home-flow__step-icon {
        width: 72px;
        height: 72px;
    }

    .sd-home-flow__step-icon img {
        width: 72px;
        height: 72px;
    }

    .sd-home-flow__assurances > div {
        padding-left: 68px;
    }

    .sd-home-flow__assurance-icon {
        width: 38px;
        height: 38px;
        top: 24px;
    }

    .sd-home-flow__assurance-icon img {
        width: 38px;
        height: 38px;
    }
}
