:root {
    --bg-dark: #0a1929;
    --bg-secondary: #1a2a3a;
    --text-primary: #e0e7ed;
    --text-secondary: #8f9ba8;
    --accent-blue: #4dabf5;
    --accent-red: #ff5252;
    --border-blue: #2979ff;
    --link-orange: #FFA500;
    --link-hover: #ff7700;
    --card-shadow: 0 4px 20px rgba(0, 15, 40, 0.6);
}

/* Базовые стили */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    padding-bottom: 90px;
    font-size: 14px;

    /* ДОБАВИТЬ ЭТУ СТРОКУ */
    overflow-y: scroll;
}

.main-content {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

h1 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.8rem;
}

.simple-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Ссылки */
a {
    color: var(--link-orange);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    opacity: 0.9;
}

/* Блоки серверов */
.server-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.server-block {
    background: var(--bg-secondary);
    border: 2px solid var(--border-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.server-code {
    color: var(--accent-blue);
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-word;
    display: block;
    margin-bottom: 0.5rem;
}

.server-description {
    color: var(--text-secondary);
    margin-top: 0.8rem;
    line-height: 1.5;
}

.server-instruction {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(41, 121, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 4px 4px 0;
}

.security-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-blue);
    border-radius: 8px;
    text-align: center;
}

.footer-iframe {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Обязательно для iframe! */
    height: 60px;
    box-sizing: border-box;
    border: none;
    border-top: 2px solid var(--border-blue);
    background: var(--bg-secondary);
    box-shadow: 0 -4px 12px rgba(41, 121, 255, 0.15);
    z-index: 1000;
    display: block;
}

.back-btn {
    text-decoration: none;
    color: #e3f2fd !important;
    background: #1565c0;
    font-size: 0.95rem;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
   
}

.back-btn:hover {
    background: var(--border-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none !important;
}


/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        margin-top: 40px;
        padding: 15px;
    }

    .nav-links {
        position: static;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .server-block {
        padding: 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}
