:root {
    --am-primary: #0c5be0;
    --am-primary-ink: #093188;
    --am-muted: #5f6f86;
    --am-surface: #f5f8ff;
    --am-title: #0a1a42;
}

.section-title {
    font-size: clamp(1.52rem, 1.2rem + 1.08vw, 2.08rem);
    font-weight: 840;
    letter-spacing: -.025em;
    line-height: 1.08;
    color: var(--am-title);
    position: relative;
    display: inline-block;
    padding-bottom: .52rem;
    margin-bottom: .3rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0c5be0 0%, #8ec0ff 100%);
    box-shadow: 0 8px 20px rgba(12, 91, 224, .26);
}

.how-hero {
    position: relative;
    width: 100vw;
    margin-top: -1.5rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: min(84svh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background:
        linear-gradient(108deg, rgba(3, 15, 38, .94) 0%, rgba(8, 39, 103, .82) 46%, rgba(12, 73, 176, .70) 100%),
        radial-gradient(circle at 82% 22%, rgba(255, 225, 140, .16) 0%, rgba(255, 225, 140, 0) 42%),
        url("../images/categories/activities-loEMYJ-.png") no-repeat center 43%/cover;
}

.how-hero-inner {
    position: relative;
    z-index: 1;
    width: min(700px, calc(100% - 2.5rem));
    margin-left: clamp(1rem, 7vw, 8rem);
    margin-right: auto;
    padding: clamp(3.2rem, 8vh, 6rem) 0;
    animation: rise-in .55s ease-out both;
}

.how-hero-title {
    font-weight: 840;
    line-height: 1.05;
    letter-spacing: -.026em;
    font-size: clamp(2rem, 3.7vw, 3.4rem);
    text-wrap: balance;
}

.how-hero-lead {
    opacity: .95;
    max-width: 51ch;
    font-size: clamp(1rem, .96rem + .4vw, 1.16rem);
    text-wrap: pretty;
}

.how-hero .badge-soft {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .97);
    font-weight: 620;
    letter-spacing: .01em;
    padding: .4rem .7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.hero-actions .btn {
    border-radius: .78rem;
    font-weight: 700;
    min-height: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-meta {
    font-size: .92rem;
    text-shadow: 0 1px 1px rgba(8, 24, 56, .25);
}

.hero-contact {
    margin-top: .8rem;
    color: rgba(255, 255, 255, .9);
    font-size: .99rem;
}

.hero-contact a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-watermark {
    position: absolute;
    inset: auto -5% -20% auto;
    width: 520px;
    max-width: 55vw;
    aspect-ratio: 561/513;
    background: url("../images/logo_transparent_white-V0SQbv6.png") no-repeat center/contain;
    opacity: .16;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
    pointer-events: none;
    animation: drift 10s ease-in-out infinite;
}

.hero-divider {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
    height: 22px;
    position: relative;
    transform: translateY(-11px);
    z-index: 2;
    pointer-events: none;
}

.hero-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(11, 87, 208, 0), rgba(11, 87, 208, .30), rgba(11, 87, 208, 0));
    transform: translateY(-50%);
}

.hero-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 170px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(47, 126, 255, .26) 0%, rgba(47, 126, 255, 0) 70%);
    transform: translate(-50%, -50%);
    filter: blur(4px);
}

.container.py-4.py-md-5 {
    max-width: 1160px;
    padding-top: clamp(1.6rem, 1.2rem + 1vw, 2.35rem) !important;
}

.container.py-4.py-md-5 > section.mb-5 {
    margin-bottom: clamp(2.4rem, 2.1rem + 1.1vw, 3.2rem) !important;
}

.steps {
    margin: 0;
    padding: 0;
}

.step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: rise-in .45s ease-out both;
}

.step:nth-child(2) {
    animation-delay: .05s;
}

.step:nth-child(3) {
    animation-delay: .1s;
}

.step:last-child {
    margin-bottom: 0;
}

.step .step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(140deg, #0a4bc3 0%, #2984ff 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 .35rem .95rem rgba(12, 91, 224, .34);
    border: 2px solid #fff;
    z-index: 1;
}

.step::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(12, 91, 224, .30), rgba(12, 91, 224, .08));
}

.step:last-child::after {
    display: none;
}

.step .step-icon {
    font-size: 1.1rem;
    color: var(--am-primary);
    margin-right: .35rem;
}

.step h3 {
    color: #0f2356;
    font-weight: 740;
}

.values-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
}

.value-item,
.faq-item {
    padding: .24rem 0 .9rem 1rem;
    border-left: 3px solid #d9e7ff;
    background: transparent;
    transition: border-color .2s ease, transform .2s ease;
}

.value-item:hover,
.faq-item:hover {
    border-left-color: #0c5be0;
    transform: translateX(2px);
}

.value-head {
    display: flex;
    gap: .56rem;
    align-items: flex-start;
    margin-bottom: .35rem;
}

.value-head strong {
    color: #10214e;
    line-height: 1.24;
    font-weight: 740;
}

.value-head i {
    color: var(--am-primary);
    margin-top: .16rem;
}

.final-band {
    border-radius: 1.2rem;
    color: #fff;
    padding: 1.6rem;
    box-shadow: 0 16px 34px rgba(18, 40, 88, .18);
    background:
        linear-gradient(133deg, rgba(9, 50, 132, .96) 0%, rgba(14, 80, 201, .95) 58%, rgba(54, 138, 255, .92) 100%),
        url("../images/logo_transparent_white-V0SQbv6.png") no-repeat right -86px bottom -88px/260px;
}

.final-band h3 {
    font-weight: 780;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.cta-actions .btn {
    border-radius: .78rem;
    min-height: 50px;
    font-weight: 700;
}

.hero-actions .btn,
.cta-actions .btn {
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-actions .btn:hover,
.cta-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(8, 41, 107, .16);
}

.text-muted {
    color: var(--am-muted) !important;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-hero-inner,
    .step,
    .hero-watermark {
        animation: none !important;
    }
}

@media (max-width: 991.98px) {
    .how-hero {
        min-height: min(82svh, 700px);
    }

    .how-hero-inner {
        width: min(650px, calc(100% - 2.2rem));
        margin-left: clamp(1rem, 4vw, 2rem);
    }

    .values-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .container.py-4.py-md-5 {
        padding-top: 1.4rem !important;
    }

    .value-item,
    .faq-item {
        padding-left: .8rem;
    }
}

@media (max-width: 576px) {
    .hero-watermark {
        width: 320px;
        inset: auto -15% -10% auto;
        opacity: .2;
    }

    .how-hero {
        min-height: min(80svh, 660px);
        background-position: center 40%;
        margin-top: -1.2rem;
    }

    .how-hero-inner {
        width: calc(100% - 2rem);
        margin-left: auto;
        margin-right: auto;
        padding: 2.75rem 0 2.45rem;
    }

    .how-hero-title {
        font-size: 1.82rem;
        line-height: 1.1;
    }

    .hero-divider {
        transform: translateY(-7px);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: .55rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        padding: .78rem .95rem !important;
        font-size: .95rem;
        line-height: 1.2;
        justify-content: center;
    }

    .hero-meta {
        display: grid !important;
        gap: .4rem !important;
        align-items: flex-start !important;
        font-size: .9rem;
    }

    .hero-meta .vr {
        display: none;
    }

    .cta-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .section-title {
        font-size: 1.32rem;
    }

    .section-title::after {
        width: 58px;
        height: 2.5px;
    }

    .final-band {
        padding: 1.2rem;
        background-size: auto, 170px;
        background-position: 0 0, right -60px bottom -70px;
    }

    .final-band p {
        font-size: .95rem;
    }

    .hero-contact {
        font-size: .94rem;
        line-height: 1.3;
    }
}
