/* [admax_szolgaltatasok] — hover-accordion szolgáltatáslista. */

.svc__list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.am-acc {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 86px;
    background: #1e3a38;
    cursor: pointer;
}

.am-acc-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: right center;
    opacity: 0.2;
    transform: scale(1.05);
    filter: blur(3px);
    transition: opacity 0.7s ease, transform 1.4s ease, filter 0.7s ease;
    will-change: transform, filter, opacity;
    transform: translateZ(0) scale(1.05);
    backface-visibility: hidden;
}

.am-acc:hover .am-acc-bg {
    opacity: 1;
    transform: translateZ(0);
    filter: blur(0);
}

.am-acc-veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(30, 58, 56, 0.97) 30%, rgba(30, 58, 56, 0.62) 72%, rgba(30, 58, 56, 0.42) 100%);
}

.am-acc__inner {
    position: relative;
    padding: 15px 32px;
}

.am-acc__row {
    display: flex;
    align-items: center;
    gap: 23px;
    min-height: 86px;
}

.am-acc__index {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 13px;
    color: #5fbda8;
    width: 30px;
    flex: none;
}

.am-acc__title {
    flex: 1;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 29px;
    letter-spacing: -0.02em;
    margin: 0;
    color: #f1f7f4;
}

.am-acc-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8fa9a1;
    transition: color 0.3s;
}

.am-acc:hover .am-acc-cat {
    color: #a7ebdd;
}

.am-acc-plus {
    flex: none;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid #3a5651;
    color: #f1f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.3, 1), background 0.3s, color 0.3s, border-color 0.3s;
}

.am-acc:hover .am-acc-plus {
    transform: rotate(135deg);
    background: #2c8b74;
    color: #fff;
    border-color: #2c8b74;
}

.am-acc-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    translate: 0 11px;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 0.84, 0.3, 1), opacity 0.5s ease 0.1s, translate 0.5s cubic-bezier(0.16, 0.84, 0.3, 1) 0.1s;
    padding-left: 54px;
}

.am-acc:hover .am-acc-more {
    grid-template-rows: 1fr;
    opacity: 1;
    translate: 0 0;
}

.am-acc-more-in {
    overflow: hidden;
    min-height: 0;
}

.am-acc__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #d6e4df;
    margin: 0 0 16px;
    font-weight: 500;
    max-width: 554px;
}

.am-acc-more .am-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2c8b74;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 23px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s;
    margin-bottom: 27px;
}

.am-acc-more .am-cta:hover {
    background: #24715f;
}

@media (max-width: 767px) {
    .am-acc__inner {
        padding: 0 18px;
    }

    .am-acc__row {
        display: grid;
        grid-template-columns: 24px 1fr 32px;
        grid-template-areas:
            "index title plus"
            "index cat plus";
        column-gap: 14px;
        row-gap: 4px;
        align-items: center;
        min-height: 74px;
    }

    .am-acc__index {
        grid-area: index;
        width: auto;
        font-size: 12px;
    }

    .am-acc__title {
        grid-area: title;
        font-size: 18px;
    }

    .am-acc-cat {
        grid-area: cat;
        justify-self: start;
    }

    .am-acc-plus {
        grid-area: plus;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .am-acc-more {
        padding-left: 38px;
    }

    .am-acc-more .am-cta {
        margin-bottom: 20px;
    }

    .am-acc__desc {
        font-size: 13px;
        max-width: 100%;
    }
}
