.how-page {
    overflow: hidden;
    width: 100%;
    background: var(--site-background);
    color: var(--site-heading);
}

.how-page *,
.how-page *::before,
.how-page *::after {
    box-sizing: border-box;
}

.how-container {
    width: var(--site-content-width);
    margin: 0 auto;
}

.how-hero {
    position: relative;
    padding: 55px 0 75px;
    background:
        radial-gradient(
            circle at 78% 30%,
            color-mix(in srgb, var(--site-primary) calc(100% * 0.1), transparent),
            transparent 36%
        ),
        var(--site-gradient-hero);
}

.how-hero::after {
    content: "";
    position: absolute;
    right: -5%;
    bottom: -50px;
    width: 110%;
    height: 100px;
    border-radius: 50% 50% 0 0;
    background: var(--site-background);
}

.how-hero__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 80px;
    align-items: center;
}

.how-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 26px;
    padding: 9px 17px;

    border-radius: var(--site-radius-pill);
    background: var(--site-primary-soft);
    color: var(--site-primary-dark);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    line-height: 1;
    text-transform: uppercase;
}

.how-label span {
    color: var(--site-primary);
    font-size: 0.72rem;
}

.how-hero h1 {
    margin: 0;
    color: var(--site-heading);
    font-size: clamp(52px, 5.8vw, 78px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -4px;
}

.how-hero h1 span {
    color: var(--site-primary);
}

.how-hero__description {
    max-width: 580px;
    margin: 27px 0 0;
    color: var(--site-text);
    font-size: 18px;
    line-height: 1.7;
}

.how-heading-line {
    width: 74px;
    height: 4px;
    margin-top: 31px;
    border-radius: var(--site-radius-pill);
    background: var(--site-primary);
}


.how-benefits-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--site-primary-soft) 85%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--site-background) 88%, transparent);
    box-shadow: 0 18px 45px color-mix(in srgb, var(--site-navigation-text) 7%, transparent);
    backdrop-filter: blur(8px);
}

.how-benefit {
    display: flex;
    gap: 17px;
    min-height: 142px;
    padding: 26px 22px;
}

.how-benefit__icon,
.how-step__icon,
.how-option__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--site-primary-soft);
    color: var(--site-primary);
}

.how-benefit__icon {
    width: 55px;
    height: 55px;
}

.how-benefit__icon svg,
.how-step__icon svg,
.how-option__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.how-benefit h2 {
    margin: 4px 0 7px;
    color: var(--site-heading);
    font-size: 17px;
    font-weight: 800;
}

.how-benefit p {
    margin: 0;
    color: var(--site-text);
    font-size: 14px;
    line-height: 1.6;
}

.how-process-section {
    padding: 47px 0 20px;
    background: var(--site-background);
}

.how-section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.how-section-heading > p:first-child {
    margin: 0 0 13px;
    color: var(--site-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.how-section-heading h2 {
    margin: 0;
    color: var(--site-heading);
    font-size: clamp(35px, 4vw, 49px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.how-section-heading h2 span {
    color: var(--site-primary);
}

.how-section-heading__description {
    margin: 13px 0 0;
    color: var(--site-text);
    font-size: 17px;
}


.how-process {
    max-width: 800px;
    margin: 0 auto;
}

.how-step {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 34px;
    min-height: 125px;
}

.how-step__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.how-step__visual::after {
    content: "";
    position: absolute;
    top: 86px;
    bottom: -5px;
    left: 50%;
    border-left: 3px dotted color-mix(in srgb, var(--site-primary) calc(100% * 0.22), transparent);
    transform: translateX(-50%);
}

.how-step--last .how-step__visual::after {
    display: none;
}

.how-step__icon {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
}

.how-step__icon svg {
    width: 35px;
    height: 35px;
}

.how-step__number {
    position: absolute;
    z-index: 3;
    top: 15px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 4px solid var(--site-background);
    border-radius: 50%;
    background: var(--site-primary);
    color: var(--site-background);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 15px color-mix(in srgb, var(--site-primary) calc(100% * 0.18), transparent);
}

.how-step__content {
    padding: 7px 0 22px;
    border-bottom: 1px solid var(--site-border);
}

.how-step--last .how-step__content {
    border-bottom: none;
}

.how-step__content h3 {
    margin: 0 0 9px;
    color: var(--site-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.how-step__content p {
    max-width: 620px;
    margin: 0;
    color: var(--site-text);
    font-size: 15.5px;
    line-height: 1.7;
}


.how-options-section {
    padding: 10px 0 22px;
}

.how-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: var(--site-gradient-card);
    overflow: hidden;
}

.how-option {
    padding: 34px 36px;
    text-align: center;
}

.how-option + .how-option {
    border-left: 1px solid var(--site-border);
}

.how-option__icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
}

.how-option__icon svg {
    width: 32px;
    height: 32px;
}

.how-option h2 {
    margin: 0 0 10px;
    color: var(--site-heading);
    font-size: 19px;
    font-weight: 800;
}

.how-option p {
    margin: 0;
    color: var(--site-text);
    font-size: 14.5px;
    line-height: 1.65;
}


.how-cta-section {
    padding: 0 0 35px;
}

.how-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 24px 34px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: var(--site-gradient-cta);
}

.how-cta__content {
    display: flex;
    align-items: center;
    gap: 22px;
}

.how-cta__sparkle {
    color: var(--site-primary);
    font-size: 46px;
    line-height: 1;
}

.how-cta h2 {
    margin: 0 0 5px;
    color: var(--site-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.how-cta p {
    margin: 0;
    color: var(--site-text);
    font-size: 15px;
}

.how-cta__buttons {
    display: flex;
    gap: 16px;
    flex: 0 0 auto;
}

.how-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 50px;
    padding: 13px 23px;
    border: 2px solid var(--site-primary);
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.how-button--primary {
    background: var(--site-primary);
    color: var(--site-background);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--site-primary) calc(100% * 0.18), transparent);
}

.how-button--primary:hover {
    border-color: var(--site-primary-dark);
    background: var(--site-primary-dark);
    color: var(--site-background);
}

.how-button--outline {
    background: var(--site-background);
    color: var(--site-primary-dark);
}

.how-button--outline:hover {
    background: var(--site-primary-soft);
    color: var(--site-primary-dark);
}


@media (max-width: 980px) {
    .how-hero {
        padding-top: 60px;
    }

    .how-hero__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-hero__content {
        max-width: 680px;
    }

    .how-benefits-card {
        max-width: 680px;
    }

    .how-options {
        grid-template-columns: 1fr;
    }

    .how-option + .how-option {
        border-top: 1px solid var(--site-border);
        border-left: none;
    }

    .how-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 680px) {
    .how-container {
        width: var(--site-content-width-compact);
    }

    .how-hero {
        padding: 48px 0 85px;
    }

    .how-hero h1 {
        font-size: 50px;
        letter-spacing: -2.8px;
    }

    .how-label {
        margin-bottom: 22px;
        padding: 10px 15px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .how-hero__description {
        font-size: 16px;
    }

    .how-benefits-card {
        grid-template-columns: 1fr;
    }

    .how-benefit {
        min-height: auto;
        padding: 22px 19px;
    }

    .how-benefit:nth-child(1),
    .how-benefit:nth-child(2),
    .how-benefit:nth-child(3) {
        border: 0;
    }

    .how-process-section {
        padding-top: 62px;
    }

    .how-section-heading {
        margin-bottom: 42px;
    }

    .how-section-heading h2 {
        font-size: 37px;
    }

    .how-section-heading__description {
        font-size: 15px;
    }

    .how-step {
        grid-template-columns: 74px 1fr;
        gap: 19px;
        min-height: 175px;
    }

    .how-step__icon {
        width: 64px;
        height: 64px;
    }

    .how-step__icon svg {
        width: 29px;
        height: 29px;
    }

    .how-step__visual::after {
        top: 72px;
    }

    .how-step__number {
        top: 10px;
        right: -2px;
        width: 30px;
        height: 30px;
        border-width: 3px;
        font-size: 12px;
    }

    .how-step__content {
        padding-top: 5px;
    }

    .how-step__content h3 {
        font-size: 18px;
    }

    .how-step__content p {
        font-size: 14px;
        line-height: 1.65;
    }

    .how-option {
        padding: 29px 23px;
    }

    .how-cta {
        padding: 27px 23px;
    }

    .how-cta__content {
        align-items: flex-start;
        gap: 14px;
    }

    .how-cta__sparkle {
        font-size: 34px;
    }

    .how-cta h2 {
        font-size: 23px;
    }

    .how-cta p {
        font-size: 14px;
        line-height: 1.5;
    }

    .how-cta__buttons {
        flex-direction: column;
        width: 100%;
    }

    .how-button {
        width: 100%;
    }
}
