 :root {
            /* Основные цвета */
            --bg-primary: #ffffff;
            --bg-secondary: #f5f5f5;
            --bg-card: #ffffff;
            --border-color: #e0e0e0;
            --border-dark: #cccccc;
            --text-primary: #000000;
            --text-secondary: #333333;
            --text-muted: #666666;
            --radio-selected: #000000;
            
            /* Динамические отступы */
            --space-xs: clamp(4px, 1vw, 8px);
            --space-sm: clamp(8px, 2vw, 12px);
            --space-md: clamp(12px, 3vw, 20px);
            --space-lg: clamp(16px, 4vw, 30px);
            --space-xl: clamp(20px, 5vw, 40px);
            
            /* Размеры шрифтов */
            --text-xs: 9px;
            --text-sm: 11px;
            --text-md: 13px;
            --text-lg: 15px;
            --text-xl: 17px;
            
            /* Ширины */
            --container-max: 1600px;
            --card-min: min(100%, 400px);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Ubuntu', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            font-size: var(--text-md);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: var(--container-max);
            margin: 0 auto;
            padding: var(--space-md);
            flex: 1;
        }

        /* === ХЕДЕР === */
        .header {
            text-align: center;
            margin-bottom: var(--space-lg);
            padding: var(--space-lg);
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
        }

        .header h1 {
            font-size: var(--text-xl);
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
            flex-wrap: wrap;
        }

        .header h1 i {
            font-size: calc(var(--text-xl) * 1.2);
        }

        .subtitle {
            font-size: 11px;
            color: black;
            margin-top: var(--space-xs);
        }

        /* === ПРОГРЕСС === */
        .progress-section {
            margin-bottom: var(--space-xl);
        }

        .overall-score {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: var(--space-lg);
            align-items: center;
            padding: var(--space-lg);
            background: var(--bg-secondary);
            border-radius: 24px;
            border: 1px solid var(--border-color);
        }

        .score-circle {
            position: relative;
            width: min(150px, 25vw);
            height: min(150px, 25vw);
            justify-self: center;
        }

        .score-circle svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

        .bg-circle {
            fill: none;
            stroke: var(--border-color);
            stroke-width: clamp(4px, 1vw, 8px);
        }

        .progress-circle {
            fill: none;
            stroke: #000000;
            stroke-width: clamp(4px, 1vw, 8px);
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s;
        }

        .score-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 100%;
        }

        .score-number {
            font-size: clamp(1.5rem, 6vw, 2.5rem);
            font-weight: 700;
            line-height: 1;
        }

        .score-label {
            font-size: var(--text-xs);
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .score-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: var(--space-sm);
        }

        .score-item {
            background: var(--bg-primary);
            padding: var(--space-sm);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            text-align: center;
            transition: transform 0.2s;
        }

        .score-item:active {
            transform: scale(0.98);
        }

        .score-item-label {
            font-size: var(--text-xs);
            color: var(--text-muted);
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .score-item-value {
            font-size: clamp(1rem, 4vw, 1.5rem);
            font-weight: 600;
        }

        /* === БЕЙДЖИ === */
        .badge-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: var(--space-xs);
            margin-top: var(--space-md);
            padding: var(--space-sm);
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 50px;
        }

        .badge {
            padding: var(--space-xs) var(--space-sm);
            border-radius: 30px;
            font-size: var(--text-xs);
            font-weight: 500;
            /*background: var(--bg-primary);
            border: 1px solid var(--border-dark);*/
            white-space: nowrap;
           /* transition: all 0.2s;*/
        }

        /* === БИЗНЕС-ФУНКЦИИ === */
        .bf-card {
            margin-bottom: var(--space-lg);
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .bf-header {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            padding: var(--space-md);
            background: var(--bg-secondary);
            border-bottom: 2px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .bf-header:active {
            background: var(--border-color);
        }

        .bf-header i {
            font-size: var(--text-lg);
            min-width: 24px;
        }

        .bf-header h2 {
            font-size: 13px;
            font-weight: 500;
            margin: 0;
            flex: 1;
        }

        .bf-header .collapse-icon {
            transition: transform 0.3s;
            font-size: var(--text-md);
        }

        .bf-header.collapsed .collapse-icon {
            transform: rotate(-90deg);
        }

        /* === ПРАКТИКИ === */
        .practices-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
            gap: var(--space-md);
            padding: var(--space-md);
            transition: all 0.3s;
        }

        .practices-container.collapsed {
            display: none;
        }

        /* === КАРТОЧКА ПРАКТИКИ === */
        .practice-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: var(--space-md);
            transition: all 0.2s;
            height: fit-content;
        }

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

        .practice-card:active {
            transform: scale(0.99);
        }

        .practice-header {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: flex-start;
            gap: var(--space-sm);
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid var(--border-color);
        }

        .practice-header h3 {
            font-size: 11px;
            font-weight: 600;
            flex: 1;
            min-width: 150px;
        }

        .practice-desc {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            width: 100%;
        }

        .practice-score-badge {
            background: var(--bg-primary);
            padding: var(--space-xs) var(--space-sm);
            border-radius: 30px;
            font-size: var(--text-xs);
            font-weight: 600;
            border: 1px solid var(--border-dark);
            white-space: nowrap;
        }

        /* === УРОВНИ === */
        .levels-container {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }

        .level-block {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: var(--space-sm);
        }

        .level-title {
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: var(--space-xs);
            padding-bottom: 4px;
            border-bottom: 1px solid var(--border-color);
        }

        /* === РАДИО-КНОПКИ === */
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: var(--space-xs);
        }

        .radio-item {
            display: flex;
            align-items: center;
            padding: clamp(8px, 2vw, 12px);
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            min-height: 44px;
            transition: all 0.2s;
        }

        .radio-item:hover {
            background: var(--border-color);
        }

        .radio-item:active {
            transform: scale(0.99);
        }

        .radio-item input[type="radio"] {
            margin-right: var(--space-sm);
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            cursor: pointer;
            accent-color: var(--radio-selected);
        }

        .radio-item label {
            flex: 1;
            font-size: var(--text-sm);
            line-height: 1.4;
            color: var(--text-secondary);
            cursor: pointer;
            word-break: break-word;
        }

        .radio-item.selected {
            background: var(--bg-primary);
            border-color: var(--radio-selected);
            border-width: 1px;
        }

        .level-progress {
            margin-top: var(--space-xs);
            padding-top: var(--space-xs);
            border-top: 1px dashed var(--border-color);
            font-size: var(--text-xs);
            color: var(--text-muted);
            text-align: right;
        }

        /* === МЕДИА-ЗАПРОСЫ === */

        /* Планшеты и маленькие десктопы */
        @media (max-width: 1024px) {
            .overall-score {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .score-circle {
                margin: 0 auto;
            }
        }

        /* Планшеты */
        @media (max-width: 768px) {
            .badge-container {
                border-radius: 20px;
            }
            
            .badge {
                white-space: normal;
                text-align: center;
                flex: 1 1 auto;
            }
            
            .practice-header {
                flex-direction: column;
            }
            
            .practice-score-badge {
                align-self: flex-start;
            }
        }

        /* Мобильные */
        @media (max-width: 480px) {
            .container {
                padding: var(--space-sm);
            }
            
            .overall-score {
                padding: var(--space-md);
            }
            
            .score-details {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .badge-container {
                flex-direction: column;
                border-radius: 16px;
            }
            
            .badge {
                width: 100%;
            }
            
            .practices-container {
                grid-template-columns: 1fr;
            }
            
            .bf-header {
                flex-wrap: wrap;
            }
        }

        /* Очень маленькие телефоны */
        @media (max-width: 360px) {
            .score-details {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 1.3rem;
            }
            
            .radio-item {
                padding: 12px 8px;
            }
            
            .radio-item label {
                font-size: 13px;
            }
        }

        /* Ландшафтная ориентация на телефонах */
        @media (orientation: landscape) and (max-height: 600px) {
            .overall-score {
                grid-template-columns: auto 1fr;
            }
            
            .score-circle {
                width: 100px;
                height: 100px;
            }
            
            .practices-container {
                max-height: 60vh;
                overflow-y: auto;
            }
            
            .bf-header {
                position: sticky;
                top: 0;
                z-index: 10;
                background: var(--bg-secondary);
            }
        }

        /* Десктопы с большими экранами */
        @media (min-width: 1400px) {
            .container {
                padding: 30px;
            }
            
            .practices-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Печать */
        @media print {
            .badge-container,
            .radio-item input,
            .bf-header .collapse-icon {
                display: none;
            }
            
            .practice-card {
                break-inside: avoid;
                page-break-inside: avoid;
            }
        }

        /* Утилиты */
        .no-select {
            user-select: none;
            -webkit-user-select: none;
        }

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

        .mt-auto {
            margin-top: auto;
        }