﻿/* ContactAction.css */

.bk-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999
}

    .bk-modal.is-open {
        display: block
    }

.bk-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55)
}

.bk-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) scale(.98);
    width: min(420px,92vw);
    background: #0d0f12;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    padding: 18px 18px 16px;
}

.bk-modal.is-open .bk-modal__panel {
    transform: translate(-50%,-50%) scale(1);
    transition: transform .12s ease-out;
}

.bk-modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 28px;
    cursor: pointer;
    opacity: .75;
}

    .bk-modal__close:hover {
        opacity: 1
    }

.bk-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px
}

/* CTA-кнопка вне модалки: те же стили, что и внутри .bk-modal */
.bk-contactaction {
    display: flex;
    justify-content: center;
}

    .bk-contactaction .bk-modal__btn--cta {
        width: 100%;
        max-width: 276px; /* ровно как модалка */
    }

    .bk-contactaction .bk-modal__btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        /*border-radius: 12px;*/
        border: 1px solid rgba(255,255,255,.10);
        text-decoration: none;
        color: #fff !important; /* перебиваем .News a { color: ... } */
        font-size: 16px;
        font-weight: 600;
        text-align: left;
    }

    .bk-contactaction .bk-modal__btn:hover {
        transform: translateY(-1px);
    }

    .bk-contactaction .bk-modal__btn:active {
        transform: translateY(0);
    }


/* ВАЖНО: делаем селектор достаточно специфичным, чтобы не перебивался .News a { color: ... } */
.bk-modal .bk-modal__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

    .bk-modal .bk-modal__btn:hover {
        transform: translateY(-1px)
    }

    .bk-modal .bk-modal__btn:active {
        transform: translateY(0)
    }

.bk-modal__btn--tg {
    background: rgba(46,136,209,.16)
}

.bk-modal__btn--wa {
    background: rgba(37,211,102,.14)
}

/* MAX */
.bk-modal__btn--max {
    /*background: linear-gradient(135deg, #2F6BFF 0%, #8A3BFF 100%);*/
    background: linear-gradient(135deg, rgba(47,107,255,.35), rgba(138,59,255,.35));
}

.bk-ico {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(255,255,255,.10)
}

/* вариант поживее */
.bk-ico--cta {
    background: rgba(255,153,0,.22);
}

.bk-modal__btn--cta {
    background: rgba(255,153,0,.16); /* #ff7700 */
    justify-content: center; /* ⬅️ ВАЖНО */
}


.bk-ico--tg {
    background: rgba(46,136,209,.18)
}

.bk-ico--wa {
    background: rgba(37,211,102,.16)
}

.bk-ico--max {
    background: rgba(255,255,255,.15);
}

.bk-ico svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    display: block
}
