.how-page {
    background: var(--color-white);
}

.how-page main {
    overflow: hidden;
}

.how-page-label {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--color-brand-surface);
    color: #5e2392;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.how-page-label svg {
    width: 28px;
    height: 28px;
}

.how-hero {
    position: relative;
    isolation: isolate;
    min-height: 780px;
    overflow: hidden;
    background:
        radial-gradient(circle at 77% 48%, rgba(161, 106, 204, 0.15), transparent 29%),
        linear-gradient(118deg, #fff 0 58%, #faf7fc 100%);
}

.how-hero::before {
    position: absolute;
    z-index: -1;
    right: -220px;
    bottom: -330px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(100, 23, 165, 0.1);
    border-radius: 50%;
    content: "";
}

.how-hero__inner {
    display: grid;
    min-height: 780px;
    grid-template-columns: minmax(0, 0.92fr) minmax(530px, 1.08fr);
    align-items: center;
    gap: 78px;
    padding-top: 56px;
    padding-bottom: 70px;
}

.how-hero__content {
    position: relative;
    z-index: 2;
    max-width: 670px;
}

.how-hero h1 {
    max-width: 670px;
    margin: 31px 0 0;
    color: #35106b;
    font-size: var(--font-size-display);
    font-weight: 600;
    letter-spacing: -2.2px;
    line-height: 1.08;
    text-wrap: balance;
}

.how-hero__description {
    max-width: 630px;
    margin: 27px 0 0;
    color: var(--color-text-body);
    font-size: 19px;
    line-height: 1.58;
}

.how-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
}

.how-primary-button,
.how-secondary-button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.how-primary-button {
    min-width: 260px;
    background: linear-gradient(115deg, #43107a, #651c9e);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(54, 8, 112, 0.13);
}

.how-primary-button svg {
    width: 22px;
    height: 22px;
    margin-left: auto;
}

.how-secondary-button {
    min-width: 190px;
    border: 2px solid #5c1798;
    color: #45117b;
}

.how-primary-button:hover,
.how-secondary-button:hover {
    transform: translateY(-2px);
}

.how-secondary-button:hover {
    background: var(--color-brand-surface);
}

.how-primary-button:focus-visible,
.how-secondary-button:focus-visible,
.how-cta a:focus-visible {
    outline: 3px solid rgba(100, 23, 165, 0.35);
    outline-offset: 4px;
}

.how-hero__route {
    position: relative;
    width: min(100%, 585px);
    min-height: 560px;
    justify-self: end;
    padding: 57px 48px 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 42px;
    background: #35106b;
    color: var(--color-white);
    box-shadow: 0 26px 65px rgba(52, 16, 107, 0.18);
}

.how-hero__route::before {
    position: absolute;
    top: 28px;
    right: 30px;
    width: 135px;
    height: 135px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

.how-hero__route-line {
    position: absolute;
    top: 91px;
    bottom: 104px;
    left: 84px;
    width: 2px;
    background: linear-gradient(#ff747b, #c9a8e3 28%, #c9a8e3 72%, #ff747b);
}

.how-hero__route ol {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-hero__route li {
    display: grid;
    min-height: 94px;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.how-hero__route li > span {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border: 9px solid #35106b;
    border-radius: 50%;
    background: var(--color-white);
    color: #5f169c;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.how-hero__route small {
    display: block;
    color: #d8bdeb;
    font-size: 13px;
    font-weight: 500;
}

.how-hero__route strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.how-hero__route > p {
    position: relative;
    margin: 37px 0 0 96px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #d8bdeb;
    font-size: 13px;
    font-weight: 500;
}

.how-start {
    padding: 115px 0 125px;
    background: var(--color-white);
}

.how-start__inner {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 95px;
}

.how-start__heading h2,
.how-steps__heading h2 {
    margin: 28px 0 0;
    color: var(--color-text-strong);
    font-size: var(--font-size-heading);
    font-weight: 600;
    letter-spacing: -1.6px;
    line-height: 1.17;
    text-wrap: balance;
}

.how-start__information > p {
    max-width: 680px;
    margin: 0 0 33px;
    color: var(--color-text-body);
    font-size: 18px;
    line-height: 1.62;
}

.how-start__information ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid #ded6e5;
    list-style: none;
}

.how-start__information li {
    display: grid;
    min-height: 122px;
    grid-template-columns: 52px minmax(170px, 0.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid #ded6e5;
}

.how-start__information li > span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-brand-surface);
    color: #6b22a2;
    font-size: 13px;
    font-weight: 700;
}

.how-start__information strong {
    color: var(--color-text-strong);
    font-size: 18px;
    font-weight: 600;
}

.how-start__information li p {
    margin: 0;
    color: var(--color-text-body);
    font-size: 15px;
    line-height: 1.55;
}

.how-steps {
    padding: 116px 0 126px;
    background: #f7f5f9;
}

.how-steps__heading {
    max-width: 760px;
}

.how-steps__heading > p:last-child {
    margin: 23px 0 0;
    color: var(--color-text-body);
    font-size: 18px;
    line-height: 1.6;
}

.how-steps__list {
    margin-top: 68px;
    border-top: 1px solid #dcd3e4;
}

.how-step {
    display: grid;
    min-height: 350px;
    grid-template-columns: 140px minmax(0, 1fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 45px;
    padding: 48px 0;
    border-bottom: 1px solid #dcd3e4;
}

.how-step__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.how-step__marker > span {
    color: #8c4cc1;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.how-step__marker svg {
    width: 104px;
    height: 104px;
    padding: 22px;
    border-radius: 26px;
    background: var(--color-white);
    color: #60189a;
    box-shadow: var(--shadow-soft);
}

.how-step__content > p:first-child {
    margin: 0;
    color: #8650b5;
    font-size: 14px;
    font-weight: 600;
}

.how-step__content h3 {
    margin: 8px 0 0;
    color: var(--color-text-strong);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.22;
}

.how-step__content > p:nth-of-type(2) {
    max-width: 690px;
    margin: 15px 0 0;
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 1.62;
}

.how-step__content ul {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    color: #373141;
    font-size: 15px;
    line-height: 1.45;
    list-style: none;
}

.how-step__content li {
    position: relative;
    padding-left: 24px;
}

.how-step__content li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 9px;
    height: 9px;
    border: 2px solid #7e3daf;
    border-radius: 50%;
    content: "";
}

.how-step aside {
    min-height: 190px;
    padding: 28px;
    border-left: 3px solid #8d4fbd;
    background: rgba(255, 255, 255, 0.7);
}

.how-step aside span {
    color: #8650b5;
    font-size: 13px;
    font-weight: 600;
}

.how-step aside strong {
    display: block;
    margin-top: 13px;
    color: #35105f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.how-support {
    padding: 110px 0 118px;
    background: var(--color-white);
}

.how-support__inner {
    display: grid;
    grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
    gap: 86px;
}

.how-support__inner > div > p {
    margin: 0;
    color: #8650b5;
    font-size: 14px;
    font-weight: 600;
}

.how-support h2 {
    max-width: 550px;
    margin: 22px 0 0;
    color: var(--color-text-strong);
    font-size: var(--font-size-heading);
    font-weight: 600;
    letter-spacing: -1.6px;
    line-height: 1.17;
}

.how-support ul {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid #ded6e5;
    list-style: none;
}

.how-support li {
    display: grid;
    min-height: 120px;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #ded6e5;
}

.how-support li svg {
    width: 58px;
    height: 58px;
    padding: 11px;
    border-radius: 17px;
    background: var(--color-brand-surface);
    color: #6417a5;
}

.how-support li strong,
.how-support li span {
    display: block;
}

.how-support li strong {
    color: var(--color-text-strong);
    font-size: 18px;
    font-weight: 600;
}

.how-support li span {
    margin-top: 7px;
    color: var(--color-text-body);
    font-size: 15px;
    line-height: 1.5;
}

.how-cta {
    padding: 34px 0;
    background: var(--color-white);
}

.how-cta__inner {
    display: grid;
    min-height: 340px;
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
    align-items: center;
    gap: 70px;
    padding: 66px 72px;
    border-radius: 40px;
    background: #35106b;
    color: var(--color-white);
}

.how-cta__inner > div > p {
    margin: 0;
    color: #d6b8eb;
    font-size: 14px;
    font-weight: 600;
}

.how-cta h2 {
    max-width: 800px;
    margin: 20px 0 0;
    font-size: clamp(34px, 3vw, 47px);
    font-weight: 500;
    letter-spacing: -1.7px;
    line-height: 1.18;
    text-wrap: balance;
}

.how-cta a {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    border-radius: 999px;
    background: var(--color-white);
    color: #45117b;
    font-size: 16px;
    font-weight: 600;
}

.how-cta a svg {
    width: 22px;
    height: 22px;
}

.how-faq {
    min-height: 0;
    padding: 42px 0;
}

.how-faq .faq__panel {
    min-height: 0;
}

.how-faq .faq__content {
    padding-bottom: 12px;
}

.how-page .contact__intro h2 {
    max-width: 510px;
}

.how-page .contact__description {
    max-width: 520px;
}

@media (max-width: 1270px) {
    .how-hero__inner {
        grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
        gap: 40px;
    }

    .how-start__inner,
    .how-support__inner {
        gap: 58px;
    }

    .how-step {
        grid-template-columns: 120px minmax(0, 1fr) minmax(270px, 0.68fr);
        gap: 30px;
    }
}

@media (max-width: 1080px) {
    .how-hero,
    .how-hero__inner {
        min-height: 0;
    }

    .how-hero__inner {
        grid-template-columns: 1fr;
        gap: 62px;
        padding-top: 70px;
        padding-bottom: 84px;
    }

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

    .how-hero__route {
        width: min(100%, 700px);
        justify-self: center;
    }

    .how-start__inner,
    .how-support__inner {
        grid-template-columns: 1fr;
    }

    .how-start__heading,
    .how-support__inner > div {
        max-width: 720px;
    }

    .how-step {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .how-step aside {
        min-height: 0;
        grid-column: 2;
    }

    .how-cta__inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .how-cta a {
        max-width: 460px;
    }
}

@media (max-width: 760px) {
    .how-page-label {
        min-height: 42px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .how-page-label svg {
        width: 24px;
        height: 24px;
    }

    .how-hero__inner {
        gap: 50px;
        padding-top: 54px;
        padding-bottom: 68px;
    }

    .how-hero h1 {
        font-size: clamp(34px, 8.5vw, 43px);
        letter-spacing: -1.5px;
    }

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

    .how-hero__actions {
        display: grid;
    }

    .how-primary-button,
    .how-secondary-button {
        width: 100%;
        min-width: 0;
    }

    .how-hero__route {
        min-height: 0;
        padding: 38px 24px 34px;
        border-radius: 28px;
    }

    .how-hero__route-line {
        top: 68px;
        bottom: 100px;
        left: 57px;
    }

    .how-hero__route ol {
        gap: 28px;
    }

    .how-hero__route li {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 15px;
    }

    .how-hero__route li > span {
        width: 66px;
        height: 66px;
        border-width: 7px;
    }

    .how-hero__route strong {
        font-size: 18px;
    }

    .how-hero__route > p {
        margin-left: 81px;
    }

    .how-start,
    .how-steps,
    .how-support {
        padding-top: 78px;
        padding-bottom: 84px;
    }

    .how-start__heading h2,
    .how-steps__heading h2,
    .how-support h2 {
        font-size: 32px;
        letter-spacing: -1.1px;
    }

    .how-start__information li {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .how-start__information li p {
        grid-column: 2;
    }

    .how-steps__list {
        margin-top: 50px;
    }

    .how-step {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 22px;
        min-height: 0;
        padding: 36px 0;
    }

    .how-step__marker svg {
        width: 76px;
        height: 76px;
        padding: 16px;
        border-radius: 20px;
    }

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

    .how-step aside {
        grid-column: 1 / -1;
        margin-left: 102px;
    }

    .how-cta {
        padding: 24px 0;
    }

    .how-cta__inner {
        min-height: 0;
        padding: 48px 28px;
        border-radius: 28px;
    }

    .how-cta h2 {
        font-size: 32px;
        letter-spacing: -1.1px;
    }
}

@media (max-width: 520px) {
    .how-hero h1 {
        font-size: 34px;
    }

    .how-hero__route::before {
        display: none;
    }

    .how-start__heading h2,
    .how-steps__heading h2,
    .how-support h2,
    .how-cta h2 {
        font-size: 30px;
    }

    .how-start__information > p,
    .how-steps__heading > p:last-child {
        font-size: 17px;
    }

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

    .how-step__marker {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .how-step aside {
        margin-left: 0;
    }

    .how-faq {
        padding: 16px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-primary-button,
    .how-secondary-button {
        transition: none;
    }
}
