:root {
    --primary: #0a0a0a;
    --secondary: #121212;
    --accent: #00b894;
    --accent-dark: #009975;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #333;
    --card-bg: rgba(30, 30, 30, 0.8);
    --terminal-bg: #000;
    --terminal-text: #00ff00;
    --terminal-prompt: #ffff00;
    --powershell-bg: #012456;
    --powershell-text: #ffffff;
    --powershell-prompt: #ffcc00;
    --powershell-header-bg: #002c54;
    --links-bg: #1a1a2e;
    --map-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Стили для фиксированного логотипа */
.fixed-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transition: all 0.3s ease;
}

.fixed-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 184, 148, 0.7));
    transition: all 0.3s ease;
    border-radius: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

.fixed-logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 184, 148, 1));
}

.fixed-logo.scrolled {
    top: 10px;
}

.fixed-logo.scrolled img {
    width: 100px;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.1);
    animation: float 15s infinite ease-in-out;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate 30s infinite linear;
}

.shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #00b894, #0984e3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 70%;
    left: 80%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #6c5ce7, #e84393);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    top: 40%;
    left: 85%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #fdcb6e, #e17055);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    top: 80%;
    left: 20%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #0984e3, #00b894);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-delay: -15s;
}

.energy-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0,184,148,0.05) 0%, rgba(0,0,0,0) 70%);
    animation: pulseWave 20s infinite linear;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,184,148,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,184,148,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 40s infinite linear;
}

.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.matrix-digit {
    position: absolute;
    color: rgba(0,255,0,0.3);
    font-family: 'Ubuntu Mono', monospace;
    font-size: 14px;
    animation: matrixFall linear infinite;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.logo {
    max-width: 300px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 184, 148, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--accent);
}

.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 184, 148, 0.5);
    margin: 2rem 0;
    line-height: 1;
    animation: electricFlicker 3s infinite;
}

.error-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
    margin-bottom: 2rem;
    animation: shake 5s infinite;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.client-info, .server-info, .links, .map-container, .ip-details, .ip-info-box, .speed-test {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.client-info:hover, .server-info:hover, .links:hover, .map-container:hover, .ip-details:hover, .ip-info-box:hover, .speed-test:hover {
    transform: translateY(-5px);
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.link-icon {
    width: auto;
    height: 50px;
    margin-right: 15px;
    border-radius: 5px;
    filter: drop-shadow(0 0 5px rgba(0, 184, 148, 0.5));
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.link-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
}

.link-url {
    color: var(--accent);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.link-url:hover {
    text-decoration: underline;
}

.link-desc {
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.map-container {
    background: var(--map-bg);
    padding: 0;
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.map-title {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}

.map-buttons {
    display: flex;
    gap: 5px;
}

.map-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.map-button.close {
    background: #ff5f56;
}

.map-button.minimize {
    background: #ffbd2e;
}

.map-button.maximize {
    background: #27ca3f;
}

.map-content {
    height: 400px;
    position: relative;
}

#ip-map {
    height: 100%;
    width: 100%;
    border-radius: 0 0 15px 15px;
}

.map-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 12px 15px;
    color: white;
    font-size: 0.85rem;
    z-index: 1000;
    line-height: 1.4;
}

.map-info strong {
    color: var(--accent);
}

.warning-info {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
    font-size: 0.85rem;
}

.warning-info i {
    color: #ffc107;
    font-size: 1.2rem;
}

.ip-info-box {
    background: var(--card-bg);
    padding: 1.5rem;
    text-align: center;
}

.ip-basic-info {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.provider-status {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.provider-success {
    color: #00b894;
}

.provider-error {
    color: #ff6b6b;
}

.custom-ip-marker {
    background: transparent !important;
    border: none !important;
}

.ip-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--accent);
    height: 100%;
}

.ip-info-category {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-info-item {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.ip-info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.ip-info-value {
    color: var(--text);
    font-weight: bold;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.ip-info-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(0, 184, 148, 0.5));
}

footer p {
    margin-bottom: 1rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.seo-links {
    margin-top: 1rem;
}

.seo-links a {
    margin: 0 0.5rem;
}

.seo-hidden-links {
    display: none;
}

/* Анимации */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes electricFlicker {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 184, 148, 0.8);
    }
    2%, 4%, 6%, 8%, 10%, 12%, 14%, 16%, 18%, 20% {
        opacity: 0.9;
        text-shadow: 0 0 25px rgba(0, 184, 148, 1), 0 0 30px rgba(0, 184, 148, 0.8);
    }
    1%, 3%, 5%, 7%, 9%, 11%, 13%, 15%, 17%, 19% {
        opacity: 0.7;
        text-shadow: 0 0 15px rgba(0, 184, 148, 0.5);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(0, 184, 148, 0.3);
    }
    70% {
        opacity: 0.8;
        text-shadow: 0 0 18px rgba(0, 184, 148, 0.7);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .links-row {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-text {
        font-size: 1.4rem;
    }
    
    .logo {
        max-width: 200px;
    }

    .fixed-logo {
        top: 10px;
        right: 10px;
    }
    
    .fixed-logo img {
        width: 80px;
    }
    
    .fixed-logo.scrolled img {
        width: 70px;
    }
}