* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #4ade80;
    --bg-dark: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-color: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

body.light-theme {
    background: var(--bg-light);
    color: #2d3748;
}

body.light-theme nav {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme nav a {
    color: #2d3748;
}

body.light-theme .card,
body.light-theme .about-content,
body.light-theme .status-item,
body.light-theme .contact-info {
    background: rgba(255, 255, 255, 0.7);
    color: #2d3748;
}

body.light-theme footer {
    background: rgba(255, 255, 255, 0.7);
    color: #2d3748;
}

/* Навигация */
nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Бургер меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Параллакс секции */
.parallax-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    z-index: -1;
}

/* Главная страница */
.hero {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1s ease-in;
    position: relative;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5em;
    opacity: 0.9;
    margin-bottom: 40px;
}

.live-clock {
    margin: 30px auto;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: inline-block;
}

.clock-time {
    font-size: 2.5em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.clock-date {
    font-size: 1em;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: capitalize;
}

.status-badge {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(74, 222, 128, 0.3);
    border: 2px solid #4ade80;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    animation: pulse 2s infinite;
    margin-top: 20px;
}

.status-badge::before {
    content: "● ";
    color: #4ade80;
}

/* 3D Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card p {
    opacity: 0.9;
    line-height: 1.8;
}

/* SVG иконки */
.svg-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.svg-icon svg {
    width: 100%;
    height: 100%;
}

.svg-icon svg path {
    transition: all 0.3s ease;
}

.card:hover .svg-icon svg {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Счетчики */
.stats-section {
    margin-top: 80px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: #4ade80;
}

.stat-label {
    font-size: 1em;
    opacity: 0.8;
    margin-top: 10px;
}

/* Графики */
.chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    position: relative;
    height: 400px;
}

/* Погода */
.weather-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.weather-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.weather-temp {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.weather-city {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.weather-desc {
    font-size: 1em;
    opacity: 0.8;
}

/* Карта */
.map-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    height: 500px;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Терминал */
.terminal {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    margin-top: 40px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-body {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    color: #00ff00;
}

.terminal-line {
    margin-bottom: 10px;
    line-height: 1.6;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    flex: 1;
    outline: none;
}

.terminal-output {
    color: #ffffff;
    white-space: pre-wrap;
}

/* Анимированный логотип */
.logo-animated {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Страница About */
.about-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
}

.about-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Страница Status */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.status-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.status-item:hover {
    transform: scale(1.05);
}

.status-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.status-value {
    font-size: 2em;
    font-weight: 700;
    color: #4ade80;
}

.live-ping {
    font-size: 1.5em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

/* Прогресс бары */
.progress-bars {
    margin-top: 40px;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* Страница Contact */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-item span {
    margin-right: 15px;
    font-size: 1.5em;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    opacity: 0.9;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(102, 126, 234, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: left 0.3s ease;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav a {
        font-size: 1.3em;
        padding: 15px 30px;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .clock-time {
        font-size: 1.8em;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    /* Стили для кастомной карты */
.map-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    height: 500px;
    position: relative;
}

.server-marker {
    transition: all 0.3s ease;
}

.server-marker:hover circle {
    filter: brightness(1.3);
}

#server-info {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
}
