/* tg-contact 1.2.0 — окно Telegram. Все классы с префиксом tgc, чтобы не пересекаться с темой. */
.tgc-lock { overflow: hidden; }

.tgc {
    position: fixed; inset: 0; z-index: 2147483000;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .45);
    font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    animation: tgc-fade .15s ease-out;
}
.tgc *, .tgc *::before, .tgc *::after { box-sizing: border-box; }

.tgc__box {
    position: relative; width: 360px; max-width: calc(100% - 32px);
    padding: 24px 20px 20px; border-radius: 14px;
    background: #fff; color: #222; text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.tgc__close {
    position: absolute; top: 6px; right: 8px; width: 36px; height: 36px;
    border: 0; background: none; color: #888; font-size: 28px; line-height: 1; cursor: pointer;
}
.tgc__close:hover { color: #222; }
.tgc__title { margin: 0 24px 16px; font-size: 19px; font-weight: 600; }

.tgc__btn {
    display: block; width: 100%; margin: 0 0 10px; padding: 12px 14px;
    border: 1px solid #2f9bd1; border-radius: 10px;
    background: #fff; color: #2f9bd1 !important; font: inherit; font-weight: 500;
    text-decoration: none !important; cursor: pointer;
}
.tgc__btn:hover { background: #eef7fc; }
.tgc__btn--main { background: #2f9bd1; color: #fff !important; }
.tgc__btn--main:hover { background: #278ac0; }
.tgc__btn--small { display: inline-block; width: auto; margin: 0; padding: 6px 12px; font-size: 14px; }

.tgc__hint { margin: 8px 0 6px; color: #666; font-size: 14px; }
.tgc__copy {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 14px; border-radius: 10px; background: #f3f5f7;
}
.tgc__name { font-weight: 600; word-break: break-all; user-select: all; }
.tgc__extra { margin-top: 14px; color: #555; font-size: 14px; }
.tgc__extra a { color: #2f9bd1; }

/* Телефон: окно выезжает снизу */
@media (max-width: 600px) {
    .tgc { align-items: flex-end; }
    .tgc__box {
        width: 100%; max-width: 100%; border-radius: 16px 16px 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        animation: tgc-up .2s ease-out;
    }
}
@keyframes tgc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tgc-up { from { transform: translateY(100%); } to { transform: none; } }

/* ppsprint: длинное @имя не переносим по буквам — кнопка уходит на новую строку */
.tgc__copy { flex-wrap: wrap; justify-content: center; }
.tgc__name { white-space: nowrap; word-break: normal; font-size: 15px; }

/* ppsprint: окно Max в фирменном цвете */
.tgc--max .tgc__btn { border-color: #5a4dff; color: #5a4dff !important; }
.tgc--max .tgc__btn:hover { background: #f0eeff; }
.tgc--max .tgc__btn--main { background: #5a4dff; color: #fff !important; }
.tgc--max .tgc__btn--main:hover { background: #4a3de6; }
