/* [admax_mukodes] — „Hogyan működik" scrollytelling. */

.am-how-sec {
    background: #1E3A38;
    color: #F1F7F4;
    padding: 98px 0 107px;
    position: relative;
    overflow: clip;
}

.am-how-sec::before {
    content: "";
    position: absolute;
    top: 12%;
    right: -8%;
    width: 554px;
    height: 554px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 189, 168, .18), rgba(95, 189, 168, 0) 68%);
    pointer-events: none;
}

.am-how-sec .am-container {
    position: relative;
    z-index: 2;
}

/* .am-container alapszabály: lásd css/admax-global.css (mindig betöltve). */

.am-how-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 72px;
    align-items: start;
}

.am-how-steps {
    display: flex;
    flex-direction: column;
    gap: 54px;
    padding-bottom: 36px;
}

.am-sstep {
    display: flex;
    gap: 21px;
    align-items: stretch;
    opacity: .4;
    transition: opacity .55s ease;
}

.am-sstep.on {
    opacity: 1;
}

.am-sbar {
    flex: none;
    width: 3px;
    border-radius: 2px;
    transform-origin: top;
    transform: scaleY(.3);
    background: rgba(167, 235, 221, .25);
    transition: transform .6s cubic-bezier(.16, .84, .3, 1), background .5s ease;
}

.am-sstep.on .am-sbar {
    transform: scaleY(1);
    background: #A7EBDD;
}

.am-sstep-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #5FBDA8;
    margin-bottom: 11px;
}

.am-sstep-title {
    color: #F1F7F4;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin-bottom: 13px;
}

.am-sstep-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #a7c2ba;
    margin: 0;
    font-weight: 500;
    max-width: 384px;
}

.am-how-sticky {
    position: sticky;
    top: 107px;
}

.am-spanel {
    position: relative;
    background: #20463f;
    border: 1px solid rgba(167, 194, 186, .2);
    border-radius: 23px;
    padding: 27px;
    height: 376px;
    box-shadow: 0 36px 80px rgba(11, 24, 21, .4);
    overflow: hidden;
}

.am-slayer {
    position: absolute;
    inset: 0;
    padding: 27px;
    opacity: 0;
    transform: translateY(13px);
    transition: opacity .55s ease, transform .6s cubic-bezier(.16, .84, .3, 1);
    pointer-events: none;
}

.am-slayer.on {
    opacity: 1;
    transform: none;
}

/* Panel-réteg belső tartalma (a wp_kses-en átengedett user HTML-e ezekre az osztályokra épül). */
.am-slayer-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #5FBDA8;
    margin-bottom: 18px;
}

.am-sfoot {
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid rgba(167, 194, 186, .18);
    font-size: 12px;
    color: #9fb6ae;
    font-weight: 600;
}

.am-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.am-tag-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.am-tag-ico {
    flex: none;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: rgba(167, 235, 221, .16);
}

.am-tag-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .2);
}

.am-tag-bar.o2 {
    background: rgba(255, 255, 255, .2);
}

.am-tag-bar.o16 {
    background: rgba(255, 255, 255, .16);
}

.am-tag-bar.o14 {
    background: rgba(255, 255, 255, .14);
}

.am-tag-bar.o18 {
    background: rgba(255, 255, 255, .18);
}

.am-tag-name {
    font-size: 10px;
    color: #A7EBDD;
    font-weight: 700;
}

.am-reader {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.am-reader-ava {
    flex: none;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: rgba(167, 235, 221, .16);
    border: 1px solid rgba(167, 235, 221, .3);
}

.am-reader-name {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.am-reader-sub {
    font-size: 11px;
    color: #9fb6ae;
    font-weight: 600;
    margin-top: 2px;
}

.am-probs {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.am-prob {
    display: flex;
    align-items: center;
    gap: 9px;
}

.am-prob-bar {
    flex: 1;
    height: 21px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .1);
}

.am-prob-bar.b94 {
    background: linear-gradient(90deg, #A7EBDD, rgba(167, 235, 221, .15));
}

.am-prob-bar.b81 {
    width: 82%;
    background: linear-gradient(90deg, rgba(95, 189, 168, .8), rgba(95, 189, 168, .12));
}

.am-prob-bar.b63 {
    background: linear-gradient(90deg, rgba(95, 189, 168, .5), rgba(95, 189, 168, .1));
}

.am-prob-v {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 900;
    width: 34px;
}

.am-prob-v.is-mint {
    color: #A7EBDD;
}

.am-prob-v.is-sage {
    color: #cfe6de;
}

.am-prob-v.is-gray {
    color: #9fb6ae;
}

.am-prob-v.is-dark {
    color: #7f9d95;
}

.am-mcards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.am-mimg {
    height: 59px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    margin-bottom: 8px;
}

.am-mimg.is-grad {
    background: linear-gradient(120deg, #2C8B74, #5FBDA8);
}

.am-mimg.is-sp {
    border: 1px solid rgba(167, 235, 221, .4);
}

.am-mln {
    height: 6px;
    border-radius: 4px;
    background: rgba(167, 235, 221, .2);
    margin-bottom: 5px;
}

.am-mln.m1 {
    background: rgba(167, 235, 221, .45);
}

.am-mln.m2 {
    width: 66%;
    background: rgba(167, 235, 221, .2);
}

.am-mln.m3 {
    background: rgba(167, 235, 221, .35);
}

.am-mln.m4 {
    width: 74%;
    background: rgba(167, 235, 221, .16);
}

.am-mln.m5 {
    background: rgba(167, 235, 221, .35);
}

.am-mln.m6 {
    width: 58%;
    background: rgba(167, 235, 221, .16);
}

.am-mln.m7 {
    width: 70%;
    background: rgba(167, 235, 221, .16);
}

.am-msp {
    position: relative;
}

.am-mbadge {
    position: absolute;
    top: -7px;
    right: 0;
    background: #A7EBDD;
    color: #1E3A38;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
}

.am-sbars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 134px;
    margin-bottom: 13px;
}

.am-sb {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: rgba(255, 255, 255, .14);
}

.am-sb.s1 {
    height: 38%;
}

.am-sb.s2 {
    height: 46%;
    background: rgba(255, 255, 255, .16);
}

.am-sb.s3 {
    height: 42%;
}

.am-sb.s4 {
    height: 60%;
    background: rgba(95, 189, 168, .55);
}

.am-sb.s5 {
    height: 76%;
    background: rgba(167, 235, 221, .75);
}

.am-sb.s6 {
    height: 100%;
    background: #A7EBDD;
}

.am-slabels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #7f9d95;
    font-weight: 600;
}

.am-sbig {
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid rgba(167, 194, 186, .18);
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.am-sbig-v {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 27px;
    color: #A7EBDD;
    line-height: 1;
}

.am-sbig-l {
    font-size: 12px;
    color: #9fb6ae;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .am-sstep,
    .am-sbar,
    .am-slayer {
        transition: none;
    }
}

/* Mobil @767: párosított elrendezés — display:contents + order: minden lépés ALATT a saját réteg-kártyája. */
@media (max-width: 767px) {
    .am-how-sec {
        padding: 56px 0 64px;
    }

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

    .am-how-steps,
    .am-how-sticky,
    .am-spanel {
        display: contents;
    }

    .am-sstep[data-sstep="0"] {
        order: 0;
    }

    .am-slayer[data-slayer="0"] {
        order: 1;
    }

    .am-sstep[data-sstep="1"] {
        order: 2;
    }

    .am-slayer[data-slayer="1"] {
        order: 3;
    }

    .am-sstep[data-sstep="2"] {
        order: 4;
    }

    .am-slayer[data-slayer="2"] {
        order: 5;
    }

    .am-sstep[data-sstep="3"] {
        order: 6;
    }

    .am-slayer[data-slayer="3"] {
        order: 7;
    }

    .am-sstep[data-sstep="4"] {
        order: 8;
    }

    .am-slayer[data-slayer="4"] {
        order: 9;
    }

    .am-sstep[data-sstep="5"] {
        order: 10;
    }

    .am-slayer[data-slayer="5"] {
        order: 11;
    }

    .am-sstep[data-sstep="6"] {
        order: 12;
    }

    .am-slayer[data-slayer="6"] {
        order: 13;
    }

    .am-sstep[data-sstep="7"] {
        order: 14;
    }

    .am-slayer[data-slayer="7"] {
        order: 15;
    }

    .am-sstep[data-sstep="8"] {
        order: 16;
    }

    .am-slayer[data-slayer="8"] {
        order: 17;
    }

    .am-sstep[data-sstep="9"] {
        order: 18;
    }

    .am-slayer[data-slayer="9"] {
        order: 19;
    }

    .am-sstep {
        opacity: 1;
    }

    .am-sstep .am-sbar {
        transform: scaleY(1);
    }

    .am-sstep-title {
        font-size: 22px;
    }

    .am-slayer {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: #20463f;
        border: 1px solid rgba(167, 194, 186, .2);
        border-radius: 16px;
        padding: 21px;
        margin: 0 0 26px;
        height: auto;
    }

    .am-slayer-label {
        margin-bottom: 14px;
    }
}
