/* Фиксируем кликабельность кнопки в хедере */
.t-btn {
    z-index: 99999 !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Фикс для фиксированного меню */
.tp-menu {
    z-index: 10000 !important;
}

/* Убедимся что ссылки в меню кликабельны */
.t-menu__link-item {
    pointer-events: auto !important;
    z-index: 10001 !important;
    position: relative;
}

/* Для всех ссылок и кнопок в хедере */
header a, header button, header .t-btn {
    pointer-events: auto !important;
    z-index: 10002 !important;
}

/* СТИЛИ ДЛЯ УНИВЕРСАЛЬНОГО ПОПАПА */
.universal-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.universal-popup.active {
    display: flex !important;
}

.universal-popup-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.universal-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    font-weight: 300;
    transition: all 0.3s;
}

.universal-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Мобильная адаптация */
@media (max-width: 640px) {
    .universal-popup-content {
        padding: 30px 20px;
        width: 95%;
        margin: 10px;
    }
    
    .universal-popup-content h2 {
        font-size: 28px !important;
    }
}
