        :root {
            --primary-blue: #0066cc;
            --secondary-blue: #004499;
            --accent-cyan: #00bcd4;
            --light-blue: #e3f2fd;
            --water-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --text-muted: #999999;
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.04);
            --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.08);
            --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.12);
            --border-radius: 16px;
            --border-radius-lg: 24px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.5;
            color: var(--text-primary);
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            overflow-x: hidden;
        }

        .water-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            opacity: 0.8;
        }

        .water-background::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Header */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: var(--shadow-light);
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 24px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 32px;
            height: 32px;
            border-radius: 8px;
        }

        .logo-container h1 {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-blue);
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--primary-blue);
        }

        .nav-menu ul {
            display: flex;
            list-style: none;
            gap: 32px;
            align-items: center;
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--text-primary);
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 8px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-menu a:hover {
            background: var(--light-blue);
            color: var(--primary-blue);
        }

        /* Main Content */
        .main {
            padding: 20px 0;
        }

        .page-title {
            text-align: center;
            margin-bottom: 24px;
        }

        .location-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-shadow: none;
        }

        .content-grid {
            display: grid;
            gap: 24px;
            align-items: start;
        }

        /* Cards */
        .card {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-light);
            transition: var(--transition);
        }

        .card:hover {
            box-shadow: var(--shadow-medium);
        }

        .post-card {
            @extend .card;
        }

        .image-container {
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            margin-bottom: 16px;
        }

        .post-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .image-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .post-description p {
            margin-bottom: 12px;
            color: var(--text-secondary);
            line-height: 1.5;
            font-size: 14px;
        }

        .weather-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: var(--light-blue);
            border-radius: var(--border-radius);
            margin-top: 16px;
        }

        .weather-icon {
            font-size: 18px;
            color: var(--accent-cyan);
        }

        .weather-text {
            color: var(--text-primary);
            font-weight: 500;
            font-size: 13px;
        }

        /* Level Card */
        .level-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
        }

        .level-header {
            text-align: center;
            margin-bottom: 20px;
        }

        .level-header h3 {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .measurement-time {
            color: var(--text-muted);
            font-size: 12px;
        }

        .level-display {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .level-value {
            display: flex;
            align-items: baseline;
            gap: 6px;
        }

        .level-value .value {
            font-size: 48px;
            font-weight: 800;
            font-family: 'JetBrains Mono', monospace;
            color: var(--primary-blue);
            line-height: 1;
        }

        .level-value .unit {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .trend {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 14px;
        }

        .trend.rising {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }

        .trend.falling {
            background: rgba(34, 197, 94, 0.1);
            color: #16a34a;
        }

        .trend.stable {
            background: rgba(156, 163, 175, 0.1);
            color: #6b7280;
        }

        /* Water Bar */
        .water-bar-container {
            margin-top: 20px;
        }

        .water-bar {
            height: 8px;
            background: rgba(0, 102, 204, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .water-bar-inner {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue));
            border-radius: 4px;
            width: 0%;
            transition: width 2s ease;
        }

        .water-bar-markers {
            display: flex;
            justify-content: space-between;
            margin-top: 6px;
            font-size: 11px;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        /* Chart Card */
        .chart-card h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chart-container {
            position: relative;
            height: 400px;
            margin-top: 16px;
            padding: 20px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.8));
            border-radius: 12px;
            border: 1px solid rgba(0, 102, 204, 0.1);
        }

        /* History Card */
        .history-card h3 {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .table-container {
            overflow-x: auto;
            border-radius: var(--border-radius);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: var(--light-blue);
        }

        th {
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: var(--primary-blue);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }

        tbody tr:hover {
            background: rgba(0, 102, 204, 0.02);
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        /* Sidebar */
        .sidebar {
            position: sticky;
            top: 100px;
        }

        .water-info h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .water-info p {
            margin-bottom: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
            font-size: 14px;
        }

        .water-info img {
            max-width: 100%;
            border-radius: 8px;
            box-shadow: var(--shadow-light);
        }

        /* Ad containers */
        .ad-container {
            margin: 24px 0;
            text-align: center;
        }

        /* Footer */
        .footer {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
            backdrop-filter: blur(20px);
            color: white;
            padding: 60px 0 30px;
            margin-top: 80px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--accent-cyan);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
        }

        .footer-section a:hover {
            color: var(--accent-cyan);
            transform: translateX(4px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-in {
            animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .content-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            
            .sidebar {
                position: static;
            }
        }

        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }

            .nav-menu {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(20px);
                padding: 20px;
                border-top: 1px solid rgba(255, 255, 255, 0.2);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: var(--transition);
            }

            .nav-menu.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }

            .nav-menu ul {
                flex-direction: column;
                gap: 16px;
            }

            .location-title {
                font-size: 28px;
                flex-direction: column;
                gap: 12px;
            }

            .level-value .value {
                font-size: 42px;
            }

            .container {
                padding: 0 16px;
            }

            .card {
                padding: 20px;
                margin-bottom: 20px;
            }

            .level-display {
                flex-direction: column;
                gap: 16px;
                align-items: center;
            }
        }

        /* Loading animation */
        .loading {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(0, 188, 212, 0.1);
            border-top-color: #00bcd4;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Улучшения для графика */
        .chart-controls {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .chart-btn {
            padding: 10px 20px;
            border: 2px solid var(--primary-blue);
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-blue);
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            font-size: 14px;
            font-family: 'Inter', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .chart-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .chart-btn:hover::before {
            left: 100%;
        }

        .chart-btn:hover {
            background: var(--primary-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
        }

        .chart-btn.active {
            background: var(--primary-blue);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
        }

        .chart-loading {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 40px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .chart-loading.active {
            display: flex;
        }

        /* Стили для canvas графика */
        #waterLevelChart {
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }