/* =========================================
   1. Базовые стили и сброс (Reset)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* =========================================
   2. Главная страница (index.html)
   ========================================= */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #4a5568;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.domain {
    font-size: 1.8rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 20px;
}

.status {
    display: inline-block;
    padding: 8px 24px;
    background: #48bb78;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Для анимации появления */
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #4a5568;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.card p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.server-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.server-info h3 {
    color: #4a5568;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    color: #2d3748;
    font-size: 1.1rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* =========================================
   3. Страницы ошибок (404.html, 500.html)
   ========================================= */
.error-container {
    max-width: 600px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-code.code-404 { color: #667eea; text-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
.error-code.code-500 { color: #e53e3e; text-shadow: 0 4px 20px rgba(229, 62, 62, 0.3); }

.error-title {
    font-size: 2rem;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 30px;
}

.error-icon.icon-404 { animation: float 3s ease-in-out infinite; }
.error-icon.icon-500 { animation: shake 0.5s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-home {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-retry {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-retry:hover {
    background: #667eea;
    color: white;
}

.search-box {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus { border-color: #667eea; }

.search-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover { background: #5568d3; }

.status-info {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #e53e3e;
    text-align: left;
}

.status-info h4 { color: #4a5568; margin-bottom: 10px; font-size: 1rem; }
.status-info p { color: #718096; font-size: 0.95rem; margin-bottom: 5px; }

/* =========================================
   4. Баннер технических работ
   ========================================= */
.maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-text { flex: 1; }
.banner-text strong { font-size: 1.1rem; display: block; margin-bottom: 5px; }
.banner-subtext { font-size: 0.9rem; opacity: 0.9; }

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

.banner-close:hover { background: rgba(255, 255, 255, 0.3); }

/* =========================================
   5. Адаптивность (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .logo { font-size: 2.5rem; }
    .domain { font-size: 1.4rem; }
    .container { padding: 20px 15px; }
    .error-code { font-size: 5rem; }
    .error-title { font-size: 1.5rem; }
    .error-card { padding: 40px 25px; }
    .btn-retry { margin-left: 0; margin-top: 10px; }
    .banner-content { flex-direction: column; text-align: center; gap: 10px; }
    .banner-icon { margin-right: 0; margin-bottom: 10px; }
    .banner-close { margin-left: 0; margin-top: 10px; }
}
