* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    background-image: url('kirya.png');
    background-repeat: repeat;
}

.loading::before {
    content: '⏳ Загрузка...';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    z-index: 1000;
}

#server-stats {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.uptime-full {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.other-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

#services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service.online {
    border: 3px solid #10b981;
}

.service.offline {
    opacity: 0.6;
    border: 3px solid #ef4444;
}

