/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

:root {
    /* Темная тема (по умолчанию) */
    --bg-primary: #0A0E14;
    --bg-secondary: #141923;
    --bg-tertiary: #1E2532;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --accent-blue: #00D1FF;
    --accent-green: #00FF88;
    --accent-yellow: #FFCC00;
    --accent-red: #FF3366;
    --accent-gray: #AAAAAA;
    --accent-orange: #FFAA33;
    --accent-purple: #AA33FF;
    --border-color: rgba(0, 209, 255, 0.2);
    --card-bg: rgba(30, 37, 50, 0.95);
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    --map-bg: #2d3748;
}

.dark-theme {
    /* Темная тема */
    --bg-primary: #0A0E14;
    --bg-secondary: #141923;
    --bg-tertiary: #1E2532;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --accent-blue: #00D1FF;
    --accent-green: #00FF88;
    --accent-yellow: #FFCC00;
    --accent-red: #FF3366;
    --accent-gray: #AAAAAA;
    --accent-orange: #FFAA33;
    --accent-purple: #AA33FF;
    --border-color: rgba(0, 209, 255, 0.2);
    --card-bg: rgba(30, 37, 50, 0.95);
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    --map-bg: #2d3748;
}

.light-theme {
    /* Светлая тема */
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #EFF2F7;
    --text-primary: #1A202C;
    --text-secondary: rgba(26, 32, 44, 0.8);
    --text-tertiary: rgba(26, 32, 44, 0.6);
    --accent-blue: #007BFF;
    --accent-green: #28A745;
    --accent-yellow: #FFC107;
    --accent-red: #DC3545;
    --accent-gray: #6C757D;
    --accent-orange: #FD7E14;
    --accent-purple: #6F42C1;
    --border-color: rgba(0, 123, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    --map-bg: #f8f9fa;
}

body {
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== HEADER ===== */
.header {
    height: 130px; /* Увеличена высота */
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow);
}

/* Левый сектор - Бренд */
.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atom-logo {
    position: relative;
    width: 50px;
    height: 50px;
}

.atom-core {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-blue) 0%, #00B8FF 100%);
    box-shadow: 0 0 15px var(--accent-blue);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 2s infinite alternate;
}

.electron {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    box-shadow: 0 0 8px var(--accent-green);
}

.electron-1 {
    animation: orbit1 3s linear infinite;
}

.electron-2 {
    animation: orbit2 3.5s linear infinite;
}

.electron-3 {
    animation: orbit3 4s linear infinite;
}

.electron-4 {
    animation: orbit4 4.5s linear infinite;
}

.electron-5 {
    animation: orbit5 5s linear infinite;
}

.atom-ring {
    position: absolute;
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.ring-1 {
    width: 40px;
    height: 40px;
    animation-delay: -5s;
}

.ring-2 {
    width: 30px;
    height: 30px;
    animation: spin 15s linear infinite reverse;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

/* Центральный сектор - Навигация, Поиск и Легенда */
.center-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Увеличен отступ */
    flex: 1;
    margin: 0 30px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 10px 25px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: linear-gradient(90deg, var(--accent-blue), #00B8FF);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.5);
}

/* Стили для поиска */
.search-container {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    z-index: 2;
}

#station-search {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

#station-search:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

#station-search::placeholder {
    color: var(--text-tertiary);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    box-shadow: var(--shadow);
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-country {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

.legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 15px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Увеличен отступ */
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 14px; /* Увеличен размер */
    height: 14px; /* Увеличен размер */
    border-radius: 4px;
}

.legend-color.operational { background: linear-gradient(135deg, #00FF88, #00CCAA); }
.legend-color.stopped { background: linear-gradient(135deg, #FFCC00, #FFAA33); }
.legend-color.construction { background: linear-gradient(135deg, #33AAFF, #0088FF); }
.legend-color.closed { background: linear-gradient(135deg, #AAAAAA, #777777); }
.legend-color.abandoned { background: linear-gradient(135deg, #8B4513, #A0522D); }
.legend-color.accident { background: linear-gradient(135deg, #FF3366, #FF0055); }

/* Правый сектор - Инструменты */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.telegram-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088CC, #24A1DE);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.vfd-clock {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: bold;
    color: #00FF88;
    text-shadow: 0 0 5px #00FF88;
    letter-spacing: 1px;
    padding: 8px 12px;
    background: rgba(0, 20, 0, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 180px;
}

.digit-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.segment-display {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.clock-colon {
    animation: blink 1s infinite;
    color: #00FF88;
    margin: 0 2px;
}

.clock-label {
    font-size: 9px;
    color: rgba(0, 255, 136, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.map-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(0, 209, 255, 0.1);
    border-color: var(--accent-blue);
    transform: rotate(5deg);
}

.control-btn.active {
    background: rgba(0, 209, 255, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

/* ===== MAP CONTAINER ===== */
.map-container {
    position: absolute;
    top: 130px; /* Увеличено из-за увеличения высоты шапки */
    left: 0;
    width: 100%;
    height: calc(100vh - 130px); /* Увеличено из-за увеличения высоты шапки */
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--map-bg);
}

/* Кастомные маркеры Leaflet */
.custom-marker {
    background: none;
    border: none;
}

/* Значки АЭС в виде пинов Google Maps */
.station-pin {
    position: relative;
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: all 0.3s ease;
}

.station-pin:hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.pin-body {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color, #FF3366);
    top: 0;
    left: 8px;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pin-body .atom {
    transform: rotate(45deg);
    width: 18px;
    height: 18px;
    position: relative;
}

.pin-body .atom-core {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pin-body .electron {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: white;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}

.pin-body .electron-1 {
    animation: miniOrbit1 2s linear infinite;
    transform: rotate(0deg) translateX(8px) rotate(0deg);
}

.pin-body .electron-2 {
    animation: miniOrbit2 2.5s linear infinite;
    transform: rotate(120deg) translateX(8px) rotate(0deg);
}

.pin-body .electron-3 {
    animation: miniOrbit3 3s linear infinite;
    transform: rotate(240deg) translateX(8px) rotate(0deg);
}

.pin-stem {
    position: absolute;
    width: 4px;
    height: 20px;
    background: var(--pin-color, #FF3366);
    top: 26px;
    left: 22px;
    z-index: 1;
    border-radius: 0 0 2px 2px;
}

.pin-shadow {
    position: absolute;
    width: 10px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    top: 45px;
    left: 19px;
    z-index: 0;
}

/* Маркеры энергоблоков (больше и появляются раньше) */
.unit-marker {
    width: 52px; /* Ещё увеличен размер */
    height: 52px; /* Ещё увеличен размер */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* Увеличен шрифт */
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    border: 3px solid white;
}

.unit-marker:hover {
    transform: scale(1.3);
    z-index: 1000 !important;
}

/* Формы для разных типов реакторов */
.unit-vver, .unit-pwr {
    border-radius: 50%;
}

.unit-rbmk, .unit-graphite {
    border-radius: 12px; /* Увеличена скругленность */
}

.unit-bwr {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.unit-fast {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* ===== SIDEPANEL ===== */
.sidepanel {
    position: fixed;
    top: 130px; /* Увеличено из-за увеличения высоты шапки */
    right: -420px;
    width: 400px;
    height: calc(100vh - 130px); /* Увеличено из-за увеличения высоты шапки */
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.sidepanel.open {
    right: 0;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.station-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.close-panel {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-panel:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
    color: white;
}

/* Вкладки */
.tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tab {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 13px;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--accent-blue);
    border-bottom: 3px solid var(--accent-blue);
    background: rgba(0, 209, 255, 0.05);
}

/* Контент вкладок */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.tab-pane {
    padding: 20px;
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 16px;
    color: var(--accent-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Обзор */
.info-block {
    margin-bottom: 25px;
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 20px;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.overview-description {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Местоположение */
.location-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.location-info i {
    font-size: 20px;
    color: var(--accent-blue);
}

#location-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Энергоблоки */
.units-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.units-summary {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.units-summary span {
    font-weight: bold;
    color: var(--accent-blue);
}

.units-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Увеличен отступ между блоками */
}

.unit-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 18px;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.unit-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.unit-card.selected {
    background: rgba(0, 209, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

.unit-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--unit-color, var(--accent-blue));
}

.unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.unit-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-blue);
    color: white;
}

.unit-years {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-years i {
    color: var(--accent-blue);
    font-size: 12px;
}

.unit-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* Увеличен отступ */
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.unit-detail {
    display: flex;
    align-items: center;
    gap: 8px; /* Увеличен отступ */
}

.unit-detail i {
    color: var(--accent-blue);
    width: 16px;
}

.unit-shape {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    background: var(--unit-color, var(--accent-blue));
    margin-right: 10px;
    vertical-align: middle;
}

/* История */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px; /* Увеличен размер */
    height: 24px; /* Увеличен размер */
    border-radius: 50%;
    background: var(--text-primary); /* Белый фон */
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* Увеличен шрифт */
    font-weight: bold;
    color: var(--accent-blue); /* Синий текст для контраста */
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px 15px;
    border-left: 3px solid var(--accent-blue);
}

.timeline-icon {
    font-size: 16px;
    margin-right: 10px;
    vertical-align: middle;
    color: var(--accent-blue);
}

/* Факты */
.facts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.fact-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    transition: all 0.3s;
}

.fact-card::before {
    content: '★';
    position: absolute;
    right: 10px;
    top: 10px;
    color: var(--accent-blue);
    opacity: 0.3;
    font-size: 20px;
}

.fact-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== ФИЛЬТРЫ ===== */
.filters-panel {
    position: fixed;
    top: 150px; /* Увеличено из-за увеличения высоты шапки */
    left: 20px;
    width: 300px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 900;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateX(-350px);
    transition: transform 0.4s;
}

.filters-panel.open {
    transform: translateX(0);
}

.filter-section {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.filter-option:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.filter-option.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.toggle-filters {
    position: fixed;
    top: 160px; /* Увеличено из-за увеличения высоты шапки */
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 901;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.toggle-filters:hover {
    background: var(--accent-blue);
    color: white;
    transform: scale(1.1) rotate(15deg);
}

/* ===== ВСПЛЫВАЮЩАЯ ПОДСКАЗКА ===== */
.floating-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    max-width: 350px;
    box-shadow: var(--shadow);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.5s ease-out;
    border-left: 4px solid var(--accent-blue);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.tooltip-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tooltip-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-content i {
    color: var(--accent-blue);
    font-size: 16px;
}

.close-tooltip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    margin-left: 15px;
}

.close-tooltip:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

/* ===== АНИМАЦИИ ===== */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--accent-blue); }
    100% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 25px var(--accent-blue); }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit1 {
    0% { transform: rotate(0deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: rotate(72deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(432deg) translateX(20px) rotate(-360deg); }
}

@keyframes orbit3 {
    0% { transform: rotate(144deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(504deg) translateX(20px) rotate(-360deg); }
}

@keyframes orbit4 {
    0% { transform: rotate(216deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(576deg) translateX(20px) rotate(-360deg); }
}

@keyframes orbit5 {
    0% { transform: rotate(288deg) translateX(20px) rotate(0deg); }
    100% { transform: rotate(648deg) translateX(20px) rotate(-360deg); }
}

@keyframes miniOrbit1 {
    0% { transform: rotate(0deg) translateX(8px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(8px) rotate(-360deg); }
}

@keyframes miniOrbit2 {
    0% { transform: rotate(120deg) translateX(8px) rotate(0deg); }
    100% { transform: rotate(480deg) translateX(8px) rotate(-360deg); }
}

@keyframes miniOrbit3 {
    0% { transform: rotate(240deg) translateX(8px) rotate(0deg); }
    100% { transform: rotate(600deg) translateX(8px) rotate(-360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== ПОЛОСЫ ПРОКРУТКИ ===== */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-blue), #00B8FF);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00B8FF, var(--accent-blue));
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .sidepanel {
        width: 350px;
    }
    
    .brand-title {
        font-size: 22px;
    }
    
    .search-container {
        max-width: 400px;
    }
    
    .legend {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 100px;
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .map-container {
        top: 100px;
        height: calc(100vh - 100px);
    }
    
    .sidepanel {
        top: 100px;
        width: 100%;
        right: -100%;
    }
    
    .center-section {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
        display: none; /* На мобильных скрываем центральную секцию */
    }
    
    .vfd-clock {
        font-size: 16px;
        min-width: 150px;
    }
    
    .legend {
        display: none;
    }
    
    .telegram-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .search-container {
        display: none;
    }
    
    .floating-tooltip {
        max-width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toggle-filters {
        top: 120px;
    }
    
    .filters-panel {
        top: 120px;
    }
    /* ===== STATISTICS PAGE SPECIFIC STYLES ===== */

.stats-container {
    padding: 20px;
    padding-top: 150px; /* Учитываем высоту шапки */
    max-width: 1400px;
    margin: 0 auto;
}

/* Матричные часы */
.matrix-clock {
    position: relative;
    width: 180px;
    height: 80px;
    background: rgba(0, 20, 0, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.matrix-time {
    position: relative;
    width: 100%;
    height: 60px;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.matrix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #00FF88;
    text-shadow: 0 0 10px #00FF88;
    letter-spacing: 2px;
}

.matrix-colon {
    animation: blink 1s infinite;
    margin: 0 2px;
}

/* Ключевые показатели */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.metric-card.glowing {
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 136, 0.4); }
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), #0088FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.counter-value {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.counter-unit {
    font-size: 14px;
    color: var(--text-tertiary);
}

.metric-subtitle {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.metric-graph,
.metric-sparkline {
    width: 80px;
    height: 40px;
    flex-shrink: 0;
}

.metric-progress {
    width: 100px;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #00B8FF);
    border-radius: 3px;
    width: 75%;
}

.metric-trend {
    text-align: right;
    flex-shrink: 0;
}

.trend-up {
    color: var(--accent-green);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Секции с диаграммами */
.charts-section,
.extra-stats,
.heatmap-section {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.charts-section {
    grid-template-columns: 2fr 1fr 1fr;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.chart-card.large {
    grid-column: span 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-btn:hover {
    background: var(--bg-secondary);
}

.chart-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.chart-container {
    flex: 1;
    min-height: 250px;
    position: relative;
}

.chart-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-info {
    font-size: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-tertiary);
}

.info-value {
    color: var(--accent-blue);
    font-weight: 600;
}

.chart-stats {
    font-size: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-tertiary);
}

.stat-value {
    color: var(--accent-green);
    font-weight: 600;
}

/* Дополнительная статистика */
.extra-stats {
    grid-template-columns: 2fr 1fr;
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.time-range,
.sort-by {
    display: flex;
    gap: 8px;
}

.range-btn,
.sort-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.range-btn:hover,
.sort-btn:hover {
    background: var(--bg-secondary);
}

.range-btn.active,
.sort-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.stats-container {
    height: 250px;
    position: relative;
}

.stats-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.trend-indicator i {
    color: var(--accent-green);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.top-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #0088FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.top-info {
    flex: 1;
}

.top-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.top-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.top-value {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 16px;
}

.total-share {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* Карта тепла */
.heatmap-section {
    grid-template-columns: 2fr 1fr;
}

.heatmap-card,
.forecast-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.heatmap-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.heatmap-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.heatmap-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.scale-gradient {
    width: 100px;
    height: 10px;
    background: linear-gradient(90deg, #003300, #00FF88);
    border-radius: 2px;
}

.heatmap-container {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.world-map {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.world-map::before {
    content: 'Карта тепла загружается...';
    font-size: 14px;
}

.heatmap-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.map-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.map-info i {
    color: var(--accent-blue);
}

/* Прогноз */
.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forecast-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.forecast-period {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
}

.forecast-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forecast-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.forecast-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.forecast-value {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.forecast-value span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.forecast-chart {
    height: 100px;
    margin-top: 10px;
}

.forecast-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.forecast-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.forecast-note i {
    color: var(--accent-yellow);
}

/* Интерактивная визуализация */
.interactive-section {
    margin-bottom: 50px;
}

.viz-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.viz-header h3 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.viz-control {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-blue), #0088FF);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.viz-control:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.3);
}

.viz-control.active {
    background: linear-gradient(135deg, var(--accent-green), #00CCAA);
}

.viz-container {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-primary);
}

.energy-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 50%;
    filter: blur(1px);
    animation: energy-flow 3s linear infinite;
    top: calc(var(--y) * 1%);
    left: calc(var(--x) * 1%);
    opacity: 0.8;
}

@keyframes energy-flow {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(200px) translateX(100px);
        opacity: 0;
    }
}

.viz-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.viz-stat {
    text-align: center;
}

.viz-label {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 5px;
}

.viz-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-value {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 16px;
}

.modal-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 209, 255, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-note i {
    color: var(--accent-blue);
    flex-shrink: 0;
}

.modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.modal-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
}

.modal-item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-item-value {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-card.large {
        grid-column: span 2;
    }
    
    .extra-stats {
        grid-template-columns: 1fr;
    }
    
    .heatmap-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-container {
        padding: 10px;
        padding-top: 130px;
    }
    
    .key-metrics {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .chart-card.large {
        grid-column: span 1;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .matrix-clock {
        width: 150px;
    }
    
    .matrix-overlay {
        font-size: 20px;
    }
}

/* Анимации для элементов */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

.chart-card { animation: float 6s ease-in-out infinite; }
.chart-card:nth-child(2) { animation-delay: 1s; }
.chart-card:nth-child(3) { animation-delay: 2s; }

/* Эффект свечения для важных элементов */
.glow {
    box-shadow: 0 0 20px currentColor;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px currentColor; }
    50% { box-shadow: 0 0 40px currentColor; }
}
}