 :root {
            --primary: #8EC5A1;
            --secondary: #FFB6C1;
            --accent: #FFD1DC;
            --light: #FFF8F8;
            --dark: #5A8C7A;
            --text: #5A5A5A;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            line-height: 1.6;
            color: var(--text);
            background-color: var(--light);
            background-image: radial-gradient(#FFD1DC 1px, transparent 1px);
            background-size: 20px 20px;
            font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Шапка */
        header {
            background-color: white;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        
        .logo-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .logo-text {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: 0.5px;
        }
        
        .logo-text span {
            color: var(--secondary);
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
            align-items: center;
        }
        
        nav li {
            position: relative;
        }
        
        nav a {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            transition: all 0.3s;
            padding: 8px 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        nav a:hover {
            color: var(--primary);
        }
        
        nav a:hover:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--secondary);
            border-radius: 3px;
        }
        
        .telegram-link {
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: white !important;
            padding: 10px 20px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 12px rgba(255,182,193,0.4);
            transition: all 0.3s;
        }
        
        .telegram-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(255,182,193,0.6);
        }
        
        .telegram-link:hover:after {
            display: none;
        }
        
        .cart-icon {
            position: relative;
            font-size: 1.2rem;
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--secondary);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
        }
        
        /* Стили для теста */
        .test-container {
            max-width: 800px;
            margin: 40px auto;
            padding: 40px;
            background: white;
            border-radius: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }
        
        .test-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .test-header h1 {
            color: var(--dark);
            margin-bottom: 15px;
            font-size: 2.2rem;
        }
        
        .test-header h1 i {
            color: var(--secondary);
        }
        
        .question-card {
            background: #fafafa;
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary);
        }
        
        .question-text {
            font-size: 1.15rem;
            margin-bottom: 15px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .question-description {
            color: #666;
            font-size: 0.95rem;
            margin-bottom: 20px;
            padding-left: 10px;
            border-left: 2px solid #eee;
        }
        
        .options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
        
        .option-btn {
            background: var(--light);
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 14px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            font-size: 1rem;
        }
        
        .option-btn:hover {
            border-color: var(--primary);
            background: rgba(142, 197, 161, 0.1);
        }
        
        .option-btn.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 4px 10px rgba(142, 197, 161, 0.3);
        }
        
        .test-actions {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin: 40px 0;
        }
        
        .test-btn {
            padding: 14px 40px;
            border-radius: 50px;
            font-weight: bold;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 1.05rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .submit-btn {
            background: linear-gradient(135deg, var(--primary), var(--dark));
            color: white;
        }
        
        .reset-btn {
            background: #fff;
            border: 2px solid var(--primary);
            color: var(--primary);
        }
        
        .telegram-btn {
            background: #38ce65;
            color: white;
            margin-top: 20px;
        }
        
        .result-container {
            background: white;
            border-radius: 20px;
            padding: 30px;
            margin-top: 40px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            border-top: 4px solid var(--secondary);
        }
        
        .result-header {
            color: var(--dark);
            margin-bottom: 10px;
            font-size: 1.8rem;
            text-align: center;
            font-weight: 600;
        }
        
        .result-date {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1rem;
        }
        
        .result-description {
            line-height: 1.7;
            margin-bottom: 25px;
            background: #f9f9f9;
            padding: 20px;
            border-radius: 12px;
        }
        
        .progress-container {
            margin: 30px 0;
        }
        
        .progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .progress-bar {
            height: 14px;
            background: #f0f0f0;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            width: 0%;
            transition: width 1s ease-in-out;
        }
        
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            border-radius: 10px;
            overflow: hidden;
        }
        .results-table th, 


.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}


        .results-table th, 
        .results-table td {
            padding: 14px 18px;
            text-align: center;
        }
        
        .results-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: var(--dark);
            border-bottom: 2px solid #eee;
        }
        
        .results-table tr {
            border-bottom: 1px solid #f0f0f0;
        }
        
        .results-table tr:last-child {
            border-bottom: none;
        }
        
        .status-good { 
            color: #28a745;
            font-weight: 600;
        }
        .status-moderate { 
            color: #ffc107;
            font-weight: 600;
        }
        .status-bad { 
            color: #dc3545;
            font-weight: 600;
        }
        
        .status-verybad { 
            color: #680912;
            font-weight: 600;
        }
        
        /* Подвал */
        footer {
            background: linear-gradient(135deg, var(--dark), #3c6b58);
            color: white;
            padding: 80px 0 30px;
            position: relative;
            margin-top: 60px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 50px;
            margin-bottom: 50px;
            position: relative;
            z-index: 1;
        }
        
        .footer-section h3 {
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
            font-size: 1.4rem;
        }
        
        .footer-section h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--secondary);
            border-radius: 3px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.15);
            font-size: 0.9rem;
            color: rgba(255,255,255,0.7);
            position: relative;
            z-index: 1;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .options-grid {
                grid-template-columns: 1fr;
            }
            
            .test-actions {
                flex-direction: column;
            }
            
            .test-btn {
                width: 100%;
                justify-content: center;
            }
            
            .results-table th, 
            .results-table td {
                padding: 10px 12px;
                font-size: 0.9rem;
            }
        }
        .hidden {
    display: none;
}
 /* Подвал */
        footer {
            background: linear-gradient(135deg, var(--dark), #3c6b58);
            color: white;
            padding: 80px 0 30px;
            position: relative;
        }
        
        
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 50px;
            margin-bottom: 50px;
            position: relative;
            z-index: 1;
        }
        
        .footer-section h3 {
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
            font-size: 1.4rem;
        }
        
        .footer-section h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--secondary);
            border-radius: 3px;
        }
        
        .footer-section p, .footer-section li {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .footer-section ul {
            list-style: none;
        }
        
        .footer-section a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-section a:hover {
            color: var(--secondary);
            transform: translateX(5px);
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            width: 45px;
            height: 45px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            background: var(--secondary);
            transform: translateY(-5px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.15);
            font-size: 0.9rem;
            color: rgba(255,255,255,0.7);
            position: relative;
            z-index: 1;
        }
        
/* Добавьте в CSS */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 50px;
    }
}
/* Мобильная шапка (до 768px) */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        padding: 5px 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .header-container {
        min-height: 50px;
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    
    
    /* Мобильное меню */
    .mobile-menu nav ul {
        gap: 10px;
        margin-top: 20px;
    }
    
    .mobile-menu nav a {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    
    .mobile-menu .telegram-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .mobile-menu .cart-icon {
        font-size: 1rem;
    }
    
    .mobile-menu .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}
@media (max-width: 600px) {
    .results-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .results-table th, 
    .results-table td {
        white-space: nowrap;
        min-width: 100px;
    }
    
    .result-description {
        padding: 15px;
        font-size: 0.9rem;
    }
}
/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Мобильные стили (до 768px) */
@media (max-width: 768px) {
    .test-container {
        padding: 20px;
        margin: 20px auto;
        border-radius: 15px;
    }
    
    .test-header h1 {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: 15px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .question-description {
        font-size: 0.85rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .option-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .test-actions {
        margin: 20px 0;
        flex-direction: column;
    }
    
    .test-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .result-container {
        padding: 20px;
    }
    
    .result-header {
        font-size: 1.4rem;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .results-table th, 
    .results-table td {
        padding: 8px 10px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .test-header h1 {
        font-size: 1.3rem;
    }
    
    .question-text {
        font-size: 0.95rem;
    }
    
    .results-table {
        display: block;
        overflow-x: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .results-table td {
        white-space: normal;
    }
    
    .results-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        margin-right: 10px;
    }
}
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}
