/* [admax_lepesek] — 3 lépéses sor; Lucide SVG ikonok öröklik a doboz színét. */

.how__steps {
    position: relative;
}

.how__steps-line {
    position: absolute;
    top: 30px;
    left: 16.6%;
    right: 16.6%;
    height: 2px;
    z-index: 0;
    overflow: hidden;
}

.how__steps-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -14px;
    background: repeating-linear-gradient(90deg, rgba(167, 235, 221, 0.5) 0 7px, rgba(167, 235, 221, 0) 7px 14px);
    animation: how-line-flow 1.4s linear infinite;
}

@keyframes how-line-flow {
    to {
        transform: translateX(14px);
    }
}

.how__steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 29px;
    position: relative;
    z-index: 1;
}

.how__step {
    text-align: center;
}

.how__step-icon {
    width: 61px;
    height: 61px;
    border-radius: 16px;
    background: #20463f;
    border: 1px solid rgba(167, 194, 186, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 13px 27px rgba(11, 24, 21, 0.4);
    color: #a7ebdd;
}

.how__step-icon--main {
    background: #2c8b74;
    border: 1px solid #5fbda8;
    box-shadow: 0 16px 36px rgba(44, 139, 116, 0.5);
    color: #fff;
}

.how__step-icon svg {
    width: 24px;
    height: 24px;
}

.how__step-shape {
    width: 18px;
    height: 18px;
    background: #a7ebdd;
    transform: rotate(45deg);
    border-radius: 3px;
}

.how__step-shape--circle {
    border-radius: 50%;
    background: #5fbda8;
}

.how__step-logo {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    letter-spacing: -0.01em;
}

.how__step-logo .c-mint {
    color: #a7ebdd;
}

.how__step-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #5fbda8;
    margin-bottom: 7px;
}

.how__step-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    color: #F1F7F4;
    font-size: 17px;
    margin-bottom: 7px;
}

.how__step-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #a7c2ba;
    margin: 0 auto;
    max-width: 232px;
    font-weight: 500;
}

/* [admax_lepesek megjelenes="szamok"] — számozott lépés-rács sötét szekcióra. */
.am-lsteps {
    display: grid;
    grid-template-columns: repeat(var(--am-lsteps-n, 4), minmax(0, 1fr));
    gap: 28px;
    position: relative;
    z-index: 1;
}

.am-lsteps-line {
    position: absolute;
    top: 34px;
    left: calc(50% / var(--am-lsteps-n, 4));
    /* Csonka sornál (pl. 3+2) a vonal csak az utolsó lépésig tart. */
    right: calc(100% * (var(--am-lsteps-n, 4) - var(--am-lsteps-k, var(--am-lsteps-n, 4))) / var(--am-lsteps-n, 4) + 50% / var(--am-lsteps-n, 4));
    height: 2px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.am-lsteps-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -14px;
    background: repeating-linear-gradient(90deg, rgba(167, 235, 221, 0.5) 0 7px, rgba(167, 235, 221, 0) 7px 14px);
    animation: how-line-flow 1.4s linear infinite;
}

.am-lsteps .am-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.am-lsteps .am-step-num {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #20463F;
    border: 1px solid rgba(167, 194, 186, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 14px 30px rgba(11, 24, 21, .4);
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #A7EBDD;
}

.am-lsteps .am-step-t {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 10px;
    color: #fff;
}

.am-lsteps .am-step-d {
    font-size: 14.5px;
    line-height: 1.55;
    color: #A7C2BA;
    margin: 0 auto;
    max-width: 270px;
    font-weight: 500;
}

/* [admax_lepesek megjelenes="dobozok"] — sima ikonos kártyarács sötét szekcióra (a targeting sötét kártyáinak mintájára). */
.am-ldobozok {
    display: grid;
    grid-template-columns: repeat(var(--am-ldobozok-n, 3), minmax(0, 1fr));
    gap: 18px;
}

.am-ldoboz {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 24px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(167, 194, 186, .18);
    transition: border-color .35s ease, box-shadow .45s cubic-bezier(.16, .84, .3, 1), background-color .35s ease;
}

.am-ldoboz:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(167, 235, 221, .45);
    box-shadow: 0 24px 54px rgba(11, 24, 21, .35);
}

.am-ldoboz__ikon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(167, 235, 221, .12);
    color: #A7EBDD;
    box-shadow: inset 0 0 0 1px rgba(167, 235, 221, .22);
    transition: background-color .35s ease, color .35s ease, transform .45s cubic-bezier(.16, .84, .3, 1);
}

.am-ldoboz:hover .am-ldoboz__ikon {
    background: #A7EBDD;
    color: #16332E;
    transform: translateY(-3px) rotate(-4deg);
}

.am-ldoboz__ikon svg {
    width: 24px;
    height: 24px;
}

.am-ldoboz__cim {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #F1F7F4;
}

.am-ldoboz__szoveg {
    margin: 8px 0 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    color: #C4DBD4;
}

@media (max-width: 1024px) {
    .am-ldobozok {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-ldoboz,
    .am-ldoboz__ikon {
        transition: none;
    }

    .am-ldoboz:hover .am-ldoboz__ikon {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .how__steps-line::before,
    .am-lsteps-line::before {
        animation: none;
    }
}

/* 5+ lépés: 3-as sorok egymás alatt. */
.am-lsteps-rows {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (max-width: 767px) {
    .how__steps-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .how__steps-line {
        display: none;
    }

    .how__step-icon {
        margin-bottom: 14px;
    }

    .how__step-desc {
        max-width: 280px;
    }

    .am-lsteps-rows {
        gap: 26px;
    }

    .am-lsteps {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .am-lsteps-line {
        display: none;
    }

    .am-ldobozok {
        grid-template-columns: minmax(0, 1fr);
    }
}
