/* body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Кнопка открытия модального окна */
.open-btn {
    position: relative; /* Критично для позиционирования подсказки */
    top: -30px;
    padding: 10px 2px;
    background: #d52500;
    /*background: -moz-linear-gradient(#fb6b00, #d52500);
    background: -webkit-linear-gradient(#fb6b00, #d52500);
    background: -o-linear-gradient(#fb6b00, #d52500);*/
    outline: 0 !important;
    font-family: News Cycle;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.open-btn:hover {
    background: #fb6b00;
}

/* Контейнер подсказки (тело с текстом) */
.open-btn::after {
    content: attr(data-title);
    position: absolute;
    top: 120%; /* Окно появится под кнопкой */
    
    /* --- ВЫРАВНИВАНИЕ СТРОГО ПО ШИРИНЕ КНОПКИ --- */
    left: 0;                   /* Прижимаем к левому краю кнопки */
    width: 100%;               /* Растягиваем ровно на 100% ширины кнопки */
    box-sizing: border-box;    /* Паддинги и бордеры теперь считаются внутри этой ширины */
    
    background: #d52500;
    color: #fff;
    padding: 8px 12px;
    
    border-radius: 5px;
    border: 3px solid #d52500; 
    
    font-size: 17px;
    font-family: News Cycle;
    line-height: 1.1;
    white-space: pre-wrap;      
   
    text-align: center;         
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: normal;
}

/* Маленькая стрелочка-треугольник НАД подсказкой */
.open-btn::before {
    content: '';
    position: absolute;
    top: 88%; 
    left: 50%;
    transform: translateX(-50%);
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent rgba(213, 37, 0, 0.95) transparent; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

/* Показываем подсказку и стрелочку при наведении мыши */
.open-btn:hover::after,
.open-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Анимация легкого опускания подсказки сверху вниз при появлении */
.open-btn:hover::after {
    transform: translateY(5px);
}

/* Задний фон модального окна (затемнение) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* По умолчанию скрыто */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Контейнер модального окна */
.modal-content {
    background: #e68040;
    background: -moz-linear-gradient(#fb6b00, #d52500);
    background: -webkit-linear-gradient(#fb6b00, #d52500);
    background: -o-linear-gradient(#fb6b00, #d52500);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 220px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    min-height: 80px; /* Минимальная высота */

    /* --- РЕГУЛИРОВКА ВЫСОТЫ --- */
    /* Раскомментируйте нужную строку, если авто-высота вас не устраивает: */
    /* height: 350px; */    /* Жесткая высота */
}

/* Анимация плавного появления 
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}*/

/* Кнопка закрытия (крестик)
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #808080
    cursor: pointer;
}

.close-btn:hover {
    color: #FFF;
}*/

h2 {
    font-family: News Cycle;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #FFF;
}

/* Поле ввода */
input[type="password"] {
    font-family: News Cycle;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 0px solid #808080;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
}

/* Кнопка отправки формы */
.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #808080;
    font-family: News Cycle;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Сообщение об ошибке */
.error-message {
    color: #FFFFFF;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Задний фон модального окна (затемнение) 
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* По умолчанию скрыто 
    justify-content: center;
    align-items: center;
    z-index: 1000;
} */

/* Контейнер модального окна 
.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 320px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
} */


/* Кнопка закрытия (крестик) 
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
} */