        :root {
            --primary-blue: #1e40af;
            --light-blue: #3b82f6;
            --accent-blue: #60a5fa;
            --background: rgba(255, 255, 255, 0.95);
            --card-bg: rgba(255, 255, 255, 0.9);
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --border-light: rgba(255, 255, 255, 0.2);
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
            --gradient: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(59, 130, 246, 0.6));
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: url('https://informers.24spbwater.ru/img/bg_suspb.png') center/cover no-repeat fixed;
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gradient);
            z-index: -1;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            z-index: 1;
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 40px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin: 20px 0 10px;
        }

        .subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin: 10px 0;
        }

        .subtitle a {
            color: var(--light-blue);
            text-decoration: none;
            font-weight: 500;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #10b981;
            color: white;
            padding: 8px 16px;
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.9rem;
            margin-top: 15px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Cards Grid */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .card {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
            transition: all 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Weather Widget */
        .weather-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .weather-item {
            background: rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            transition: transform 0.2s ease;
        }

        .weather-item:hover {
            transform: scale(1.02);
        }

        .weather-icon {
            font-size: 2rem;
            margin-bottom: 8px;
        }

        .weather-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 5px;
        }

        .weather-value {
            font-weight: 600;
            font-size: 1.1rem;
        }

        /* Current Level Display */
        .current-level {
            text-align: center;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin: 30px 0;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }

        .level-display {
            font-size: 4rem;
            font-weight: 700;
            margin: 15px 0;
        }

        .level-normal { color: #10b981; }
        .level-medium { color: #f59e0b; }
        .level-high { color: #ef4444; }
        .level-critical { color: #dc2626; }

        .level-unit {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-left: 10px;
        }

        /* Chart Container */
        .chart-container {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            margin: 30px 0;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }

        /* Data Table */
        .table-container {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
            overflow-x: auto;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }

        .table th,
        .table td {
            padding: 6px 15px; /* сверху/снизу меньше, слева/справа оставить */
            text-align: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .table th {
            background: rgba(30, 64, 175, 0.1);
            font-weight: 600;
            color: var(--primary-blue);
        }

        .table tbody tr:hover {
            background: rgba(59, 130, 246, 0.05);
        }

        .timestamp {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
        }

        .level-value {
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .level-value.level-normal {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
        }

        .level-value.level-medium {
            background: rgba(245, 158, 11, 0.1);
            color: #d97706;
        }

        .level-value.level-high {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }

        .level-value.level-critical {
            background: rgba(220, 38, 38, 0.1);
            color: #b91c1c;
        }

        /* Update Info */
        .last-update {
            text-align: center;
            margin-top: 20px;
            padding: 15px;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        /* Disclaimer */
        .disclaimer {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            margin: 40px 0;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }

        .disclaimer h3 {
            color: var(--primary-blue);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .disclaimer ul {
            margin: 15px 0;
            padding-left: 20px;
        }

        .disclaimer li {
            margin: 8px 0;
            color: var(--text-secondary);
        }

        .contact-info {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .contact-info a {
            color: var(--light-blue);
            text-decoration: none;
            font-weight: 500;
        }

        /* Messages */
        .message {
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            border-left: 4px solid;
        }

        .message-warning {
            background: rgba(245, 158, 11, 0.1);
            border-color: #f59e0b;
            color: #92400e;
        }

        .message-error {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
            color: #dc2626;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }

            .header h1 {
                font-size: 2rem;
            }

            .level-display {
                font-size: 3rem;
            }

            .cards-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .weather-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .table {
                font-size: 0.85rem;
            }
        }