        :root {
            --primary: #000000;
            --secondary: #666666;
            --accent: #0055ff;
            --accent-glow: rgba(0, 85, 255, 0.15);
            --background: #ffffff;
            --surface: #f8f9fa;
            --border: #e9ecef;
            --text: #000000;
            --text-secondary: #6c757d;
            --success: #00a046;
            --warning: #ffa000;
            --error: #ff3b30;
            --radius: 12px;
            --radius-sm: 8px;
            --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        [data-theme="dark"] {
            --primary: #ffffff;
            --secondary: #adb5bd;
            --accent: #4d90fe;
            --accent-glow: rgba(77, 144, 254, 0.15);
            --background: #121212;
            --surface: #1e1e1e;
            --border: #2d2d2d;
            --text: #ffffff;
            --text-secondary: #adb5bd;
            --success: #00c853;
            --warning: #ffb300;
            --error: #ff5252;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--background);
            color: var(--text);
            line-height: 1.4;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            padding: 28px 0;
            border-bottom: 1px solid var(--border);
            background: var(--background);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .logo span {
            color: var(--accent);
        }

        .nav {
            display: flex;
            gap: 16px;
        }

        .nav-link {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }

        .nav-link:hover {
            color: var(--accent);
        }

        main {
            flex: 1;
            padding: 32px 0;
        }

        .card {
            background: var(--background);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 28px;
            margin-bottom: 24px;
            transition: var(--transition);
        }

        .card:hover {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .table-container {
            overflow-x: auto;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 0;
        }

        th, td {
            padding: 16px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        th {
            background: var(--surface);
            font-weight: 600;
            color: var(--text);
            position: sticky;
            top: 0;
        }

        tr:hover {
            background: var(--surface);
        }

        .provider-name {
            font-weight: 600;
            color: var(--text);
        }

        .speed-value {
            font-weight: 600;
            color: var(--accent);
        }

        .rating-stars {
            color: #ffc107;
            font-size: 14px;
        }

        .rating-value {
            font-weight: 600;
            margin-left: 8px;
        }

        .count-badge {
            background: var(--surface);
            color: var(--text-secondary);
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .reviews-section {
            margin-top: 40px;
        }

        .review-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 16px;
            transition: var(--transition);
        }

        .review-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .review-provider {
            font-weight: bold;
            color: var(--accent);
            font-size: 16px;
        }

        .review-meta {
            display: flex;
            gap: 16px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .review-ratings {
            display: flex;
            gap: 12px;
            margin: 12px 0;
            flex-wrap: wrap;
        }

        .rating-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }

        .rating-label {
            color: var(--text-secondary);
        }

        .rating-stars-small {
            color: #ffc107;
            font-size: 12px;
        }

        .review-comment {
            color: var(--text);
            line-height: 1.5;
            margin: 12px 0;
            padding: 12px;
            background: var(--background);
            border-radius: var(--radius-sm);
            border-left: 3px solid var(--accent);
        }

        .speed-comparison {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin: 16px 0;
            padding: 12px;
            background: var(--background);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }

        .speed-item {
            text-align: center;
        }

        .speed-label {
            font-size: 11px;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 4px;
        }

        .speed-value {
            font-size: 14px;
            font-weight: 600;
        }

        .advertised-speed {
            color: var(--success);
        }

        .actual-speed {
            color: var(--accent);
        }

        .no-reviews {
            text-align: center;
            padding: 40px;
            color: var(--text-secondary);
        }

        .section-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text);
        }

        footer {
            padding: 28px 0;
            border-top: 1px solid var(--border);
            color: var(--text-secondary);
            font-size: 12px;
            margin-top: auto;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (max-width: 768px) {
            .review-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .review-meta {
                margin-top: 8px;
            }
            
            .review-ratings {
                flex-direction: column;
                gap: 8px;
            }
            
            .speed-comparison {
                grid-template-columns: 1fr 1fr;
            }
            
            th, td {
                padding: 12px 8px;
            }
        }
/* rating.css - Улучшенные стили для рейтингов */

/* Хлебные крошки */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-hover);
}

.breadcrumb .separator {
    color: var(--border);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

/* Статистические бейджи */
.stat-badge {
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    display: inline-block;
}

/* Сетка статистики */
.stats-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.category-title {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border-color: var(--accent);
}

.stat-card.highlight::before {
    opacity: 1;
    background: rgba(255,255,255,0.3);
}

.stat-card.highlight .stat-value,
.stat-card.highlight .stat-label,
.stat-card.highlight .stat-unit {
    color: white;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: 500;
}

.stat-unit {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Рейтинги */
.ratings-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.rating-category {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.rating-category:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rating-label {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.rating-stars {
    font-size: 16px;
    color: #ffc107;
    letter-spacing: 2px;
}

.rating-stars-large {
    font-size: 18px;
    color: #ffc107;
    margin: 8px 0;
    letter-spacing: 2px;
}

/* Заголовки секций */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-count {
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-weight: 600;
}

/* Списки отзывов */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.review-item {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.review-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.review-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    transition: var(--transition);
}

.review-item:hover::before {
    opacity: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-meta {
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.review-ratings {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rating-stars-small {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 1px;
}

.review-comment {
    font-style: italic;
    color: var(--text);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* Таблицы измерений */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.measurements-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.measurements-table th {
    background: var(--surface);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.measurements-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
}

.measurements-table tr:last-child td {
    border-bottom: none;
}

.measurements-table tr:hover {
    background: rgba(0,0,0,0.02);
}

.speed-value {
    font-weight: 600;
    color: var(--accent);
}

.source-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 50px;
}

.source-badge.measurement {
    background: #e3f2fd;
    color: #1976d2;
}

.source-badge.review {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}

.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Состояния пустоты */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    line-height: 1;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--accent);
}

/* Адаптивность */
@media (max-width: 768px) {
    .provider-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ratings-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .review-ratings {
        justify-content: center;
        gap: 12px;
    }
    
    .rating-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pagination {
        gap: 2px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .review-ratings {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}