/* ===== Formal Corporate Pixel Style - Hyperpony.ru ===== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bg: #e8e8e8;
    --panel: #f0f0f0;
    --border-light: #ffffff;
    --border-dark: #808080;
    --accent: #2a5a8c;
}

body {
    background: var(--bg);
    color: #222222;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 30px 15px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle Floating Corporate Pixels */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(3px 3px at 15% 25%, #555555, transparent),
        radial-gradient(4px 4px at 65% 45%, #777777, transparent),
        radial-gradient(3px 3px at 85% 75%, #555555, transparent);
    background-size: 220px 220px, 180px 180px, 260px 260px;
    pointer-events: none;
    z-index: 0;
    animation: floatPixels 35s linear infinite;
    opacity: 0.12;
}

@keyframes floatPixels {
    0%   { background-position: 0 0, 100px 80px, 200px 150px; }
    100% { background-position: 400px 300px, -80px 250px, 350px -100px; }
}

/* Main containers */
.main-container, .content-wrapper {
    background: var(--panel);
    border: 4px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 6px 8px 0 rgba(0,0,0,0.3);
}

.content {
    background: #ffffff;
    border: 3px inset #c0c0c0;
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* ===== FONT MIX ===== */

/* Headings + Links = Pixel Art + All Caps */
h1, h2, h3, a, nav a {
    font-family: 'Press Start 2P', system-ui;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Normal text = Clean & Easy to Read */
p, li, footer {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* Typography */
h1 { 
    font-size: 19px; 
    line-height: 1.4; 
    margin: 24px 0 18px; 
    color: var(--accent); 
}

h2 { 
    font-size: 16px; 
    line-height: 1.5; 
    margin: 28px 0 14px; 
}

h3 { 
    font-size: 14.5px; 
}

p, li {
    font-size: 15px;
    margin: 18px 0;
    text-align: justify;
}

/* Gradient on Links Only */
a {
    background: linear-gradient(90deg, #2a5a8c, #4a8ac0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    padding: 2px 4px;
    transition: all 0.2s;
}

a:hover {
    background: linear-gradient(90deg, #1e4a7a, #3a7ab0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-1px);
}

/* Navigation */
nav {
    background: var(--panel);
    border: 4px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    padding: 10px;
    margin-bottom: 30px;
}

nav a {
    display: inline-block;
    padding: 10px 18px;
    margin: 4px;
    font-size: 12px;
    border: 2px solid;
    border-color: var(--border-light) var(--border-dark) var(--border-dark) var(--border-light);
    color: #222;
}

/* Images */
img {
    border: 4px solid #a0a0a0;
    border-top-color: #e0e0e0;
    border-left-color: #e0e0e0;
    padding: 6px;
    background: #ffffff;
    image-rendering: pixelated;
}

/* Footer */
footer {
    font-size: 13px;
    text-align: center;
    color: #555555;
    padding: 30px;
}