/* =================================
   1. ОБЩИЕ СТИЛИ И GIF-ФОН
   ================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: transparent !important; 
    color: #ecf0f1; 
    display: flex; 
    /* Используем flex-start, чтобы карточка и дисклеймер не накладывались друг на друга */
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh; 
    margin: 0;
    overflow-x: hidden; 
    padding-top: 5vh; /* Небольшой отступ сверху */
    padding-bottom: 5vh; /* Небольшой отступ снизу */
    flex-direction: column; /* Элементы идут сверху вниз */
    align-items: center; /* Центрируем по горизонтали */
}

/* СТИЛИ ДЛЯ GIF-ФОНА */
#gif-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999; 
    overflow: hidden;

    background-image: url('shrek_background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    filter: brightness(0.5) contrast(1.5); 
}

/* =================================
   2. СТИЛИ КАРТОЧКИ (КОМПАКТНЫЕ)
   ================================= */
.business-card {
    width: 350px; 
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(10px); 
    border-radius: 18px; 
    box-shadow: 0 0px 50px rgba(0, 0, 0, 0.8); 
    padding: 0; 
    text-align: center;
    z-index: 10; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    opacity: 1; 
    transition: none; 
}

.card-body {
    padding: 25px 20px 20px; 
}

/* ССЫЛКИ-КОНТАКТЫ (БЕЗ ПОЛОС) */
.contact-links {
    margin: 0; 
}
.contact-links a {
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 10px; 
    text-decoration: none;
    color: #e0f2f7; 
    padding: 12px 0; 
    font-size: 1em;
    transition: background-color 0.2s, color 0.2s;
}

.contact-links a:hover {
    background-color: rgba(255, 255, 255, 0.15); 
    color: #20c997; 
}

/* КНОПКА "СОБУТЫЛЬНИК" */
.action-btn {
    width: 100%;
    box-sizing: border-box; 
    margin: 20px 0 0 0; 
    padding: 14px 15px; 
    background: linear-gradient(145deg, #ff8c00, #e06d00); 
    color: white;
    border: none;
    border-radius: 10px; 
    cursor: pointer;
    font-size: 1.1em; 
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(255,140,0,0.4); 
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.action-btn:hover {
    background: linear-gradient(145deg, #e06d00, #ff8c00); 
    transform: translateY(-2px) scale(1.01); 
    box-shadow: 0 8px 20px rgba(255,140,0,0.6);
}

/* =================================
   3. ФОРМА
   ================================= */
.anon-section {
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 20px 20px 25px; 
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}
h4 {
    color: white;
    margin-bottom: 10px; 
    font-size: 1em;
}
#anon-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px; 
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.8); 
    color: #e0f2f7; 
    border: 1px solid #34495e;
    border-radius: 8px;
    resize: none;
    height: 60px; 
    font-size: 0.95em;
}
#send-btn {
    width: 100%;
    padding: 12px; 
    background: linear-gradient(145deg, #2ecc71, #27ae60); 
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em; 
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.2s ease-in-out;
}
#send-btn:hover {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}
.status-message {
    margin-top: 10px;
    font-weight: bold;
}

/* =================================
   4. ЮРИДИЧЕСКИЙ ОТКАЗ ОТ ОТВЕТСТВЕННОСТИ (ФИНАЛЬНЫЕ СТИЛИ)
   ================================= */
.disclaimer-container {
    width: 100%;
    text-align: center;
    padding: 20px; 
    z-index: 5; 
    background-color: transparent; /* УБРАН ЧЕРНЫЙ ФОН */
    opacity: 1;
    transition: none; 
    box-sizing: border-box;
    margin-top: 20px; /* Отступ от визитной карточки */
}
.disclaimer-text {
    font-size: 0.75em; 
    color: rgba(255, 255, 255, 0.75); 
    margin: 0 auto; 
    font-weight: normal; 
    max-width: 450px; /* Ограничиваем ширину, чтобы не растягивался */
}


/* =================================
   5. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
   ================================= */
@media (max-width: 400px) {
    body {
        padding-top: 10px; 
        padding-bottom: 10px; 
    }
    .business-card {
        width: 95vw; 
        max-width: none; 
        margin: 10px 0; 
    }
    .card-body, .anon-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 20px;
    }
    .anon-section {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .contact-links a {
        font-size: 0.9em;
    }
    .action-btn {
        font-size: 1em;
        padding: 12px;
    }
    .disclaimer-text {
        font-size: 0.65em;
    }
}

body {
    overflow: hidden; 
    overflow-x: hidden;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;         
    -webkit-touch-callout: none;
}

#anon-input {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}