﻿#how-work-overview .hw-layout {
    grid-template-columns: minmax(0, 1fr);
}

#how-work-overview,
#how-work-overview * {
    box-sizing: border-box;
}

    #how-work-overview img {
        max-width: 100%;
        height: auto;
    }

    #how-work-overview a {
        color: var(--site-primary-dark);
    }

    #how-work-overview p:last-child {
        margin-bottom: 0;
    }

.how-work-intro__lead {
    margin: 0 0 17px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.65;
}

.how-work-intro__text {
    margin: 0 0 14px;
    color: #5d7077;
    font-size: 17px;
    line-height: 1.82;
}

.how-work-intro__actions {
    margin-top: 24px;
}

.how-work-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--site-primary);
    border-radius: 9px;
    background: linear-gradient(135deg, #159fca, #087aa1);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(21,159,202,.16);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

    .how-work-button:hover {
        background: linear-gradient(135deg, #087aa1, #159fca);
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(21,159,202,.20);
    }

.how-work-block--soft {
    background: linear-gradient(135deg, #f7fbfc 0%, #ffffff 80%);
}

.how-work-block__header {
    margin-bottom: 24px;
}

.how-work-block__intro,
.how-work-block p,
.how-work-feature p,
.how-work-cta p {
    color: var(--site-text);
    font-size: 15px;
    line-height: 1.78;
}

.how-work-block__intro {
    max-width: 900px;
    margin: 0;
}

.how-work-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 34px;
    align-items: center;
    background: #fff;
}

.how-work-feature__content {
    min-width: 0;
}

    .how-work-feature__content p {
        margin: 0 0 14px;
    }

.how-work-feature__visual {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #f1f7f8;
    box-shadow: 0 12px 30px rgba(38,54,58,.06);
}

    .how-work-feature__visual img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform .7s var(--site-ease), filter .7s ease;
    }

    .how-work-feature__visual:hover img {
        transform: scale(1.025);
        filter: saturate(1.05);
    }

.how-work-process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.how-work-process-card {
    position: relative;
    min-height: 165px;
    padding: 22px 22px 20px 76px;
    border: 1px solid #d3e6ea;
    border-radius: 16px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 7px 22px rgba(21,159,202,.045);
    transition: transform .35s var(--site-ease), box-shadow .3s ease, border-color .3s ease;
}

    .how-work-process-card:hover {
        transform: translateY(-5px);
        border-color: #a9d5de;
        box-shadow: 0 16px 34px rgba(21,159,202,.11);
    }

.how-work-process-card__number {
    position: absolute;
    top: 22px;
    left: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #087aa1, #22c9df);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(21,159,202,.22);
    transition: transform .3s var(--site-ease), box-shadow .3s ease;
}

.how-work-process-card:hover .how-work-process-card__number {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 11px 24px rgba(21,159,202,.27);
}

.how-work-process-card h3 {
    margin: 0 0 9px;
    color: var(--site-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.how-work-process-card p {
    margin: 0;
}

.how-work-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.how-work-value-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 8px 24px rgba(38,54,58,.04);
    transition: transform .35s var(--site-ease), box-shadow .35s ease, border-color .35s ease;
}

    .how-work-value-card::after {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        right: -82px;
        bottom: -86px;
        border-radius: 50%;
        background: rgba(34,201,223,.07);
        transition: transform .45s var(--site-ease);
    }

    .how-work-value-card:hover {
        transform: translateY(-5px);
        border-color: #bfdde4;
        box-shadow: 0 22px 48px rgba(38, 54, 58, .13);
    }

        .how-work-value-card:hover::after {
            transform: scale(1.18);
        }

.how-work-value-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    place-items: center;
    border: 1px solid #ccebf0;
    border-radius: 12px;
    background: #e9fafd;
    transition: transform .3s var(--site-ease), border-color .3s ease, box-shadow .3s ease;
}

.how-work-value-card:hover .how-work-value-card__icon {
    transform: translateY(-2px);
    border-color: #a9dce5;
    box-shadow: 0 8px 18px rgba(21,159,202,.10);
}

.how-work-value-card__icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.how-work-value-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--site-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.how-work-value-card p {
    position: relative;
    z-index: 1;
    margin: 0;
}

#how-work-project-types {
    background: linear-gradient(135deg, #f2faf7 0%, #ffffff 82%);
}

    #how-work-project-types::before,
    #how-work-project-types .how-work-block__title::after {
        background: #2e8b70;
    }

.how-work-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .how-work-project-grid > article {
        padding: 20px;
        border: 1px solid #d6e8e2;
        border-radius: 14px;
        background: rgba(255,255,255,.82);
        transition: transform .35s var(--site-ease), box-shadow .35s ease, border-color .35s ease;
    }

        .how-work-project-grid > article:hover {
            transform: translateY(-4px);
            border-color: #bad8cd;
            box-shadow: 0 14px 30px rgba(46,139,112,.08);
        }

    .how-work-project-grid h3 {
        margin: 0 0 8px;
        color: var(--site-heading);
        font-size: 18px;
        font-weight: 700;
    }

    .how-work-project-grid p {
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
    }

#how-work-contact.how-work-cta {
    position: relative;
    overflow: hidden;
    padding-top: 46px;
    padding-bottom: 46px;
    background: radial-gradient(circle at 92% 15%, rgba(34,201,223,.24), transparent 25%), linear-gradient(135deg, #eaf9fc 0%, #f8fcfd 100%);
}

    #how-work-contact.how-work-cta::after {
        content: "";
        position: absolute;
        width: 230px;
        height: 230px;
        right: -95px;
        bottom: -125px;
        border: 1px solid rgba(21,159,202,.18);
        border-radius: 50%;
        box-shadow: 0 0 0 28px rgba(21,159,202,.035), 0 0 0 56px rgba(21,159,202,.025);
        pointer-events: none;
        transition: transform .55s var(--site-ease);
    }

    #how-work-contact.how-work-cta:hover::after {
        transform: scale(1.12);
    }

.how-work-cta__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

    .how-work-cta__content p {
        margin: 0 0 20px;
    }

#how-work-overview.animation-ready .how-work-reveal {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .62s var(--site-ease) var(--how-work-delay, 0ms), transform .62s var(--site-ease) var(--how-work-delay, 0ms);
    will-change: opacity, transform;
}

#how-work-overview.animation-ready .how-work-feature__content.how-work-reveal {
    transform: translate3d(-24px, 10px, 0);
}

#how-work-overview.animation-ready .how-work-feature__visual.how-work-reveal {
    transform: translate3d(24px, 10px, 0);
}

#how-work-overview.animation-ready .how-work-block__header.how-work-reveal {
    transform: translate3d(0, 15px, 0);
}

#how-work-overview.animation-ready .how-work-cta__content.how-work-reveal {
    transform: translate3d(0, 16px, 0);
}

#how-work-overview.animation-ready .how-work-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
    #how-work-overview.animation-ready .how-work-process-card.how-work-reveal.is-visible:hover,
    #how-work-overview.animation-ready .how-work-value-card.how-work-reveal.is-visible:hover {
        transform: translate3d(0, -5px, 0);
    }

    #how-work-overview.animation-ready .how-work-project-grid > article.how-work-reveal.is-visible:hover {
        transform: translate3d(0, -4px, 0);
    }
}

@media (max-width: 1180px) {
    .hw-hero::before,
    .how-work-block::before,
    .how-work-feature::before,
    .how-work-cta::before {
        left: 36px;
    }

    .how-work-feature {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 960px) {
    .how-work-feature {
        grid-template-columns: 1fr;
    }

    .how-work-feature__visual {
        max-width: 760px;
    }
}

@media (max-width: 720px) {
    .hw-hero {
        padding-top: 30px;
        padding-bottom: 24px;
    }

        .hw-hero::before,
        .how-work-block::before,
        .how-work-feature::before,
        .how-work-cta::before {
            left: 22px;
        }

    .how-work-process-grid,
    .how-work-value-grid,
    .how-work-project-grid {
        grid-template-columns: 1fr;
    }

        .how-work-main,
        .how-work-feature__content,
        .how-work-feature__visual,
        .how-work-process-card,
        .how-work-value-card,
        .how-work-project-grid > article,
        .how-work-cta__content {
            min-width: 0;
            max-width: 100%;
        }

            .how-work-intro__lead,
            .how-work-intro__text,
            .how-work-block__title,
            .how-work-block__intro,
            .how-work-block p,
            .how-work-feature p,
            .how-work-process-card h3,
            .how-work-process-card p,
            .how-work-value-card h3,
            .how-work-value-card p,
            .how-work-project-grid h3,
            .how-work-project-grid p,
            .how-work-cta p {
                overflow-wrap: anywhere;
            }
}

@media (max-width: 480px) {
    .hw-hero {
        padding-top: 24px;
        padding-bottom: 20px;
    }

        .hw-hero::before,
        .how-work-block::before,
        .how-work-feature::before,
        .how-work-cta::before {
            left: 16px;
        }

    .how-work-intro__lead {
        font-size: 17px;
    }

    .how-work-intro__text {
        font-size: 16px;
        line-height: 1.75;
    }

    .how-work-process-card {
        min-height: 0;
        padding: 18px 18px 18px 64px;
    }

    .how-work-process-card__number {
        top: 18px;
        left: 15px;
        width: 38px;
        height: 38px;
    }

    .how-work-value-card,
    .how-work-project-grid > article {
        padding: 18px;
    }

    .how-work-intro__actions .how-work-button,
    .how-work-cta__content .how-work-button {
        width: 100%;
    }

    #how-work-contact.how-work-cta {
        padding-top: 36px;
        padding-bottom: 36px;
    }
}

@keyframes howWorkTitleIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes howWorkTextIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #how-work-overview *,
    #how-work-overview *::before,
    #how-work-overview *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    #how-work-overview.animation-ready .how-work-process-card,
    #how-work-overview.animation-ready .how-work-value-card,
    #how-work-overview.animation-ready .how-work-project-grid > article,
    #how-work-overview.animation-ready .how-work-feature__content,
    #how-work-overview.animation-ready .how-work-feature__visual,
    #how-work-overview.animation-ready .how-work-cta__content {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0ms !important;
    }
}

#how-work-overview .hw-hero {
    padding-bottom: 34px;
}

#how-work-overview .hw-title {
    animation: howWorkTitleIn .75s var(--site-ease) both;
}

#how-work-overview .how-work-intro__text {
    animation: howWorkTextIn .7s .12s var(--site-ease) both;
}

#how-work-overview .how-work-feature {
    display: grid;
}

@media (max-width: 720px) {
    #how-work-overview .hw-hero {
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    #how-work-overview .hw-hero {
        padding-bottom: 20px;
    }
}

/* Page-specific hero motion; the page shell uses site.css. */
#how-work-overview .hw-title {
    animation: howWorkTitleIn .75s var(--site-ease) both;
}
