body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0;
    background: radial-gradient(circle at calc(50% - 200px) calc(50% - 100px), #fffff8 0%, #9a98a5 100%);
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 40%;
    height: auto;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 10px 20px;
    border: 2px solid #865529;
    border-radius: 25px;
    text-decoration: none;
    color: #865529;
    font-weight: bold;
    text-align: center;
    height: auto;
    width: 220px;
    transition: 0.3s;
    #box-shadow: 0 0 1px 1px white;
    font-size: 16px;
    position: relative;       /* для корректного позиционирования индикатора */
}

.button img {
    display: block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.button:hover {
    background: #865529;
    color: white;
}

/* ---------- Status Indicator ---------- */
.status {
    position: absolute;
    right: 19px;                /* центр индикатора в центре скругления (25px - 6px) */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.3s;
    margin-left: 0;             /* убираем старый отступ */
}

/* Рабочее зеркало — зелёный с пульсацией */
.status.online {
    background-color: rgb(0, 212, 83);
    box-shadow: 0 0 6px rgba(0, 212, 83, 0.9);
    animation: pulse 2s infinite;
}

/* Кейфрейм пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 234, 111, 0.9);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* ===== Красный индикатор — схлопывание к центру ===== */
.status.offline {
    background-color: #f4433633;
    overflow: hidden;          /* обрезаем свечение по границам круга */
    box-shadow: none;
    animation: none;
}

.status.offline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.9);
    transform: scale(0);                /* начальное состояние — точка в центре */
    opacity: 0;
    animation: offline-collapse 2.2s infinite ease-in-out;
}

/* Кейфрейм пульсации */
@keyframes offline-collapse {
    0% {
        transform: scale(1);            /* полный размер — зеркало «ожило» на миг */
        opacity: 0.7;
    }
    70% {
        transform: scale(0);            /* сжимается в центр */
        opacity: 0;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo img {
        max-width: 60%;
    }

    .button {
        width: 180px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .button img {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .status {
        width: 10px;
        height: 10px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 80%;
    }

    .button {
        width: 160px;
        font-size: 13px;
    }

    .status {
        width: 8px;
        height: 8px;
        right: 21px;
    }
}


.message {
    max-width: 600px;
    width: 90%;
    margin: 15px auto;
    padding: 20px;
    background: rgba(185, 185, 185, 0.85);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    text-align: left;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .message {
        width: 85%;
        padding: 15px;
        margin: 8px auto;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .message {
        width: 80%;
        padding: 12px;
        margin: 6px auto;
        font-size: 14px;
        line-height: 1.5;
    }
}

.content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
