/* Предотвращаем скроллинг при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Модальное окно с видеообращением */
.vi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vi-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.vi-modal h3, .vi-modal a, .vi-modal p{
    font-family: Exo2, sans-serif;
}
.vi-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vi-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.vi-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vi-modal-close:hover {
    color: #333;
}

.vi-modal-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.vi-modal-video {
    margin-bottom: 20px;
}

.vi-modal-video video {
    width: 270px;
    height: 358px;
    border-radius: 8px;
}

.vi-modal-text p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.vi-modal-text ul {
    list-style: none;
    padding: 0;
}

.vi-modal-text li {
    margin-bottom: 10px;
}

.vi-modal-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.vi-modal-text a:hover {
    text-decoration: underline;
}

/* Панель для ручного открытия */
.vi-truth-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vi-truth-text {
    font: 500 16px Exo2;
}

.vi-truth-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font: 600 14px Exo2;
    transition: all 0.3s ease;
}

.vi-truth-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .vi-modal {
        width: auto;
        margin: 0;
        max-height: 100vh;
    }
    
    .vi-modal-header h3 {
        font-size: 18px;
    }
    
    .vi-truth-panel {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .vi-truth-text {
        font-size: 14px;
    }
    .vi-modal-body {
        flex-direction: column;
        align-items: center;
    }
    .vi-modal-video video {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-width: 360px;
    }
    .vi-modal-text, .vi-modal-text ul{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .vi-modal-text, .vi-modal-text ul li{
        text-align: center;
    }
    .vi-modal-video{
        margin-bottom: 0;
    }
} 