/* Базовые стили для десктопа */
body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.error_page {
    position: relative;
    height: 100vh;
    line-height: 700px; /* Используем vh для корректного вертикального центрирования */
    text-align: center;
}

.error_box {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3em;
    position: relative;
    /*max-width: 600px; !* Устанавливаем максимальную ширину *!*/
    /*width: 90%;*/
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.error_page img {
    width: 100%;
}

.error_content {
    position: absolute;
    top: 50%;
    left: 23%; /* Центрируем по горизонтали */
    /*transform: translate(-50%, -50%); !* Корректируем для идеального центрирования *!*/
    /*width: 100%; !* Занимает всю ширину родителя *!*/
    /*padding: 0 20px;*/
    /*box-sizing: border-box;*/
}

.ee_ttl {
    font-size: 26px;
    color: #fff;
    /*margin: 10px 0;*/
    line-height: 1.3em;
    /*text-align: left;*/
}

.btype_one {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #ffc107;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    /*transition: background-color 0.3s ease;*/
}

.btype_one:hover {
    /*background-color: #e0a800;*/
}

/* Стили для контактов (общие для десктопа и мобильных) */
.contact-options {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    /*transition: color 0.3s ease;*/
}

.contact-item:hover {
    /*color: #007bff;*/
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.messenger-buttons-row {
    display: flex; /* Делает кнопки в одну строку */
    gap: 15px; /* Отступ между кнопками */
    justify-content: center;
    width: 50%; /* Занимает всю доступную ширину */
    /*max-width: 450px; !* Ограничивает ширину контейнера, чтобы он не вылезал *!*/
}

.messenger-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    flex-grow: 1; /* Кнопки будут растягиваться */
    transition: all 0.3s ease;
}

.messenger-button:hover {
    /*background-color: #e0e0e0;*/
    /*border-color: #ccc;*/
    /*transform: translateY(-2px);*/
}

.messenger-button img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-button {
    background-color: #fff;
    border-color: #c9e8d1;
}
.whatsapp-button:hover {
    /*background-color: #d1f7d9;*/
}

.telegram-button {
    background-color: #fff;
    border-color: #d0e4f5;
}
.telegram-button:hover {
    /*background-color: #d8edf8;*/
}

/* Мобильная вёрстка (применяется на экранах до 768px) */
@media (max-width: 768px) {
    .error_page {
        height: auto;
    }
    .error_box {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }
    .error_content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 15px 10px;
        background-color: #0a70b9;
        border-radius: 5px;
    }
    .ee_ttl {
        font-size: 18px;
        line-height: 1.4;
    }
    .btype_one {
        font-size: 14px;
        padding: 10px 20px;
    }
    .contact-options {
        margin-top: 20px;
    }
    .contact-item {
        font-size: 16px;
        justify-content: center;
    }
    .contact-item img {
        width: 20px;
        height: 20px;
    }
    .messenger-buttons-row {
        flex-direction: column;
        gap: 10px;
        max-width: 90%;
    }
    .messenger-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    .messenger-button img {
        width: 18px;
        height: 18px;
    }
}