/* Sticky kapcsolat sáv — sablon: .am-bar.is-on */

@keyframes am-bar-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.12);
    }
}

.am-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    padding: 0 18px 18px;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}

.am-bar[hidden] {
    display: none;
}

.am-bar.is-on {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.am-bar-inner {
    max-width: 1001px;
    margin: 0 auto;
    background: #1e3a38;
    border-radius: 18px;
    box-shadow: 0 23px 54px rgba(11, 24, 21, 0.4);
    border: 1px solid rgba(167, 194, 186, 0.18);
    padding: 14px 16px 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.am-bar-left {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.am-bar-left > div {
    min-width: 0;
}

.am-bar .am-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a7ebdd;
    flex: none;
}

.am-bar .am-dot.is-pulse {
    animation: am-bar-pulse 1.8s ease-in-out infinite;
}

.am-bar-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
}

.am-bar-sub {
    font-size: 12px;
    color: #9fb6ae;
    font-weight: 500;
    margin-top: 3px;
}

.am-bar-right {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.am-bar-cta {
    text-decoration: none;
    background: #a7ebdd;
    color: #1e3a38;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 13px 23px;
    border-radius: 100px;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.25s ease, background 0.25s ease;
}

.am-bar-cta:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #1e3a38;
}

.am-bar-close {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(167, 194, 186, 0.3);
    color: #9fb6ae;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.am-bar-close:hover {
    color: #fff;
    border-color: rgba(167, 235, 221, 0.55);
}

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

    .am-bar-inner {
        flex-wrap: wrap;
        padding: 12px 12px 12px 16px;
        gap: 12px;
        border-radius: 16px;
    }

    .am-bar-left {
        width: 100%;
        gap: 10px;
    }

    .am-bar-title {
        font-size: 13px;
    }

    .am-bar-sub {
        font-size: 11px;
    }

    .am-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .am-bar-cta {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
        font-size: 12px;
    }

    .am-bar-close {
        width: 40px;
        height: 40px;
    }
}

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

    .am-bar .am-dot.is-pulse {
        animation: none;
    }

    .am-bar-cta:hover {
        transform: none;
    }
}
