/* Глобальные стили для всего сайта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Шапка сайта */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.header .logo {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #a0aec0;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Карточки */
.card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.3);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        justify-content: center;
    }
}
/* Яндекс Метрика - плавающий счетчик */
.metrika-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-size: 0.75rem;
    color: #667eea;
    z-index: 9999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    user-select: none;
}

.metrika-counter:hover {
    transform: scale(1.05);
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
}

.metrika-counter .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(0.8); }
}

.metrika-counter .count {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 0.85rem;
}

.metrika-counter .label {
    color: #a0aec0;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .metrika-counter {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    .metrika-counter .count {
        font-size: 0.75rem;
    }
}
