/*******Диаграмма ****/
        .chart {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 40px;
            padding: 30px;
        }
        
        .chart-container {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .pie-chart {
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: conic-gradient(
                #CD7F32 0% 10%,
                #8B6914 10% 25%,
                #DAA520 25% 40%,
                #B87333 40% 50%,
                #B08D57 50% 60%,
                #8C7853 60% 68%,
                #A87848 68% 75%,
                #A15831 75% 82%,
                #9C7C38 82% 88%,
                #7A5233 88% 100%
            );
            position: relative;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            /*animation: rotate 25s linear infinite;*/
        }
        
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .center-circle {
            position: absolute;
            width: 120px;
            height: 120px;
            background: white;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .total-percent {
            font-size: 1.8rem;
            font-weight: bold;
            color: #1a2a6c;
        }
        
        .total-label {
            font-size: 0.9rem;
            color: #666;
        }
        
        .legend {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: antiquewhite;
            border-radius: 10px;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .legend-item:hover {
            background: beige;
            transform: translateY(-3px);
        }
        
        .color-box {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin-right: 12px;
        }
        
        .sector-info {
            flex: 1;
        }
        
        .sector-name {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .sector-percent {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .controls {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            width: 100%;
            justify-content: center;
        }
     
        
        .sector-details {
            margin-top: 30px;
            width: 100%;
            text-align: center;
            padding: 20px;
            background: antiquewhite;
            border-radius: 15px;
        }
        
        .sector-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
        
        .progress-bar {
            height: 20px;
            background: azure;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        .progress {
            height: 100%;
            border-radius: 10px;
            transition: width 1.5s ease-in-out;
        }
        
        @media (max-width: 768px) {
            .chart {
                flex-direction: column;
                align-items: center;
            }
            
            .legend {
                grid-template-columns: 1fr;
            }
        }
/*******Диаграмма ****/