 /* Снежинки - оптимизированные для мобильных */
        .snowflakes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9997;
        }

        .snowflake {
            position: absolute;
            background: white;
            border-radius: 50%;
            opacity: 0.8;
            filter: blur(0.5px);
            animation: fall linear infinite;
        }

        @keyframes fall {
            0% {
                transform: translateY(-100px) translateX(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) translateX(20px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Новогодняя кнопка - оптимизированная для мобильных */
        .new-year-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9998;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
            box-shadow: 
                0 8px 25px rgba(255, 65, 108, 0.4),
                0 0 0 2px white,
                0 0 0 4px #2e7d32,
                0 0 15px rgba(46, 125, 50, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            animation: pulse 2s infinite, float 3s ease-in-out infinite;
            transition: all 0.3s ease;
            border: 2px solid white;
            overflow: hidden;
            touch-action: manipulation;
        }

        .new-year-btn:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 
                0 12px 30px rgba(255, 65, 108, 0.6),
                0 0 0 2px white,
                0 0 0 5px #2e7d32,
                0 0 20px rgba(46, 125, 50, 0.7);
        }

        .btn-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            position: relative;
            z-index: 2;
            padding: 5px;
        }

        .btn-icon {
            font-size: 28px;
            margin-bottom: 3px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }

        .btn-text {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
            line-height: 1.1;
        }

        .btn-tooltip {
            display: none;
            position: absolute;
            top: -45px;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            color: #2e7d32;
            padding: 8px 12px;
            border-radius: 15px;
            font-weight: 600;
            font-size: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            white-space: nowrap;
            border: 1px solid #2e7d32;
            z-index: 10000;
        }

        .new-year-btn:hover .btn-tooltip {
            display: block;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        /* Модальное окно - полностью адаптивное */
        .quiz-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 9999;
            align-items: flex-start;
            justify-content: center;
            padding: 0;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .quiz-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .quiz-container {
            background: white;
            width: 100%;
            min-height: 100vh;
            max-height: 100vh;
            overflow-y: auto;
            position: relative;
            display: flex;
            flex-direction: column;
            animation: modalAppear 0.3s ease;
            border: none;
        }

        @media (min-width: 768px) {
            .quiz-modal {
                align-items: center;
                padding: 20px;
            }
            
            .quiz-container {
                max-width: 900px;
                min-height: 600px;
                max-height: 90vh;
                border-radius: 20px;
                border: 3px solid #2e7d32;
            }
        }

        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Хедер - адаптивный */
        .quiz-header {
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            color: white;
            padding: 25px 20px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .quiz-header {
                padding: 40px;
            }
        }

        .quiz-header h2 {
            font-size: 24px;
            margin-bottom: 10px;
            position: relative;
            z-index: 2;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        @media (min-width: 768px) {
            .quiz-header h2 {
                font-size: 32px;
                gap: 15px;
            }
        }

        .quiz-header h2::before,
        .quiz-header h2::after {
            content: '';
            font-size: 24px;
            animation: bounce 2s infinite;
        }

        @media (min-width: 768px) {
            .quiz-header h2::before,
            .quiz-header h2::after {
                font-size: 36px;
            }
        }

        .quiz-header h2::before { content: '🎄'; }
        .quiz-header h2::after { content: '🎁'; animation-direction: reverse; }

        .quiz-header p {
            opacity: 0.9;
            font-size: 14px;
            position: relative;
            z-index: 2;
            line-height: 1.5;
            margin: 0 auto;
            max-width: 500px;
        }

        @media (min-width: 768px) {
            .quiz-header p {
                font-size: 18px;
            }
        }

        .quiz-progress {
            background: rgba(255, 255, 255, 0.2);
            height: 6px;
            margin: 20px -20px 0;
            position: relative;
            border-radius: 3px;
            overflow: hidden;
            z-index: 2;
        }

        @media (min-width: 768px) {
            .quiz-progress {
                margin: 30px -40px 0;
                height: 8px;
            }
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #ffd700 0%, #ffeb3b 50%, #ffd700 100%);
            width: 33.3333%;
            transition: width 0.6s ease;
            border-radius: 3px;
            position: relative;
            overflow: hidden;
            background-size: 200% 100%;
            animation: shimmer 2s infinite linear;
        }

        .quiz-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            touch-action: manipulation;
        }

        .quiz-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg) scale(1.1);
        }

        @media (min-width: 768px) {
            .quiz-close {
                top: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
                font-size: 24px;
            }
        }

        /* Контент квиза - адаптивный */
        .quiz-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .quiz-content {
                flex-direction: row;
            }
        }

        .quiz-sidebar {
            width: 100%;
            background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
            padding: 20px;
            border-bottom: 2px solid #c8e6c9;
            flex-shrink: 0;
            max-height: 200px;
            overflow-y: auto;
        }

        @media (min-width: 768px) {
            .quiz-sidebar {
                width: 250px;
                max-height: none;
                border-right: 2px solid #c8e6c9;
                border-bottom: none;
            }
        }

        .sidebar-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 15px;
            color: #2e7d32;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 8px;
            border-bottom: 2px solid #c8e6c9;
        }

        @media (min-width: 768px) {
            .sidebar-title {
                font-size: 18px;
                gap: 10px;
                padding-bottom: 10px;
            }
        }

        .selected-items {
            margin-top: 15px;
        }

        .selected-item {
            background: white;
            border-radius: 10px;
            padding: 12px;
            margin-bottom: 10px;
            border-left: 4px solid #2e7d32;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }

        .quiz-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .quiz-steps {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }

        @media (min-width: 768px) {
            .quiz-steps {
                padding: 40px;
            }
        }

        .quiz-step {
            display: none;
            animation: slideIn 0.3s ease;
        }

        .quiz-step.active {
            display: block;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .step-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            color: #2e7d32;
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 2px solid #e8f5e9;
        }

        @media (min-width: 768px) {
            .step-title {
                font-size: 24px;
                gap: 15px;
                padding-bottom: 15px;
            }
        }

        .step-title i {
            color: #2e7d32;
            font-size: 24px;
            background: rgba(46, 125, 50, 0.1);
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .step-title i {
                width: 60px;
                height: 60px;
                font-size: 28px;
            }
        }

        /* Категории - адаптивная сетка */
        .options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }

        @media (min-width: 480px) {
            .options-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 15px;
            }
        }

        @media (min-width: 768px) {
            .options-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 15px;
            }
        }

        .option-btn {
            padding: 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 14px;
            color: #444;
            position: relative;
            overflow: hidden;
            min-height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            touch-action: manipulation;
        }

        @media (min-width: 768px) {
            .option-btn {
                padding: 20px;
                min-height: 100px;
                font-size: 15px;
            }
        }

        .option-btn:hover,
        .option-btn:active {
            border-color: #2e7d32;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(46, 125, 50, 0.15);
        }

        .option-btn.selected {
            border-color: #2e7d32;
            background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(27, 94, 32, 0.1) 100%);
            color: #2e7d32;
            font-weight: 600;
        }

        /* Сообщение об ошибке для обязательного выбора */
        .error-message {
            color: #f44336;
            font-size: 14px;
            margin-top: 10px;
            display: none;
            font-weight: 600;
            text-align: center;
            padding: 10px;
            background: #ffebee;
            border-radius: 8px;
            border-left: 4px solid #f44336;
        }

        .error-message.show {
            display: block;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .category-icon {
            width: 30px;
            height: 30px;
            margin-bottom: 5px;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .category-icon {
                width: 40px;
                height: 40px;
                margin-bottom: 10px;
            }
        }

        .category-icon svg {
            width: 100%;
            height: 100%;
            fill: #666;
            transition: fill 0.3s ease;
        }

        .option-btn.selected .category-icon svg {
            fill: #2e7d32;
        }

        /* Цветовые опции */
        .color-option {
            min-height: 100px;
        }

        @media (min-width: 768px) {
            .color-option {
                min-height: 120px;
            }
        }

        .color-preview {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 3px solid #e0e0e0;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }

        @media (min-width: 768px) {
            .color-preview {
                width: 60px;
                height: 60px;
            }
        }

        /* Фильтры */
        .filter-group {
            margin-bottom: 25px;
        }

        .filter-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
            color: #2e7d32;
            padding-bottom: 8px;
            border-bottom: 2px solid #e8f5e9;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        @media (min-width: 768px) {
            .filter-title {
                font-size: 20px;
                padding-bottom: 10px;
            }
        }

        /* Навигация */
        .quiz-navigation {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            border-top: 2px solid #e8f5e9;
            background: white;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .quiz-navigation {
                padding: 30px 40px;
            }
        }

        .nav-btn {
            padding: 14px 25px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 120px;
            justify-content: center;
            touch-action: manipulation;
        }

        @media (max-width: 480px) {
            .nav-btn {
                padding: 12px 20px;
                min-width: 100px;
                font-size: 14px;
            }
        }

        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .nav-btn.prev {
            background: #f5f5f5;
            color: #666;
        }

        .nav-btn.prev:hover:not(:disabled) {
            background: #e0e0e0;
            transform: translateX(-3px);
        }

        .nav-btn.next {
            background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
            color: white;
        }

        .nav-btn.next:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
        }

        /* Форма контактов */
        .contact-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        @media (min-width: 768px) {
            .contact-form {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            font-size: 14px;
            font-weight: 600;
            color: #2e7d32;
        }

        @media (min-width: 768px) {
            .form-label {
                font-size: 15px;
            }
        }

        .form-input {
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
        }

        .form-input:focus {
            outline: none;
            border-color: #2e7d32;
            box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
        }

        .form-input.error {
            border-color: #f44336;
            background-color: #ffebee;
        }

        .submit-btn {
            background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
            color: white;
            border: none;
            padding: 18px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 20px;
            grid-column: 1 / -1;
            touch-action: manipulation;
        }

        @media (min-width: 768px) {
            .submit-btn {
                font-size: 18px;
                padding: 20px;
            }
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
        }

        /* Результат */
        .result-container {
            text-align: center;
            padding: 15px 0;
        }

        @media (min-width: 768px) {
            .result-container {
                padding: 20px 0;
            }
        }

        .result-icon {
            font-size: 60px;
            color: #2e7d32;
            margin-bottom: 20px;
            animation: bounce 2s infinite;
        }

        @media (min-width: 768px) {
            .result-icon {
                font-size: 80px;
            }
        }

        .result-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #2e7d32;
        }

        @media (min-width: 768px) {
            .result-title {
                font-size: 32px;
                margin-bottom: 15px;
            }
        }

        .result-subtitle {
            color: #666;
            font-size: 16px;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        @media (min-width: 768px) {
            .result-subtitle {
                font-size: 18px;
                margin-bottom: 30px;
            }
        }

        .result-summary {
            background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            text-align: left;
            border: 2px solid #c8e6c9;
        }

        @media (min-width: 768px) {
            .result-summary {
                padding: 35px;
                margin: 35px 0;
                border-radius: 20px;
            }
        }

        .summary-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        @media (min-width: 768px) {
            .summary-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }
        }

        .summary-item {
            padding: 16px;
            background: white;
            border-radius: 10px;
            border-left: 4px solid #2e7d32;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }

        @media (min-width: 768px) {
            .summary-item {
                padding: 20px;
                border-left: 5px solid #2e7d32;
            }
        }

        /* Цвета SMEG */
        .color-neptune-grey { background: #708090 !important; }
        .color-anthracite { background: #293133 !important; }
        .color-white { background: #ffffff !important; border: 2px solid #ddd !important; }
        .color-cream { background: #fffdd0 !important; }
        .color-stainless { background: linear-gradient(135deg, #b8b8b8, #d0d0d0) !important; }
        .color-pastel-blue { background: #aec6cf !important; }
        .color-pastel-green { background: #b5e6b5 !important; }
        .color-black { background: #000000 !important; }
        .color-matte-black { background: #1a1a1a !important; }
        .color-emerald-green { background: #50c878 !important; }
        .color-red { background: #ff4444 !important; }
        .color-orange { background: #ffa500 !important; }
        .color-pink { background: #ffb6c1 !important; }
        .color-blue { background: #4169e1 !important; }
        .color-lime { background: #32cd32 !important; }
        .color-navy-blue { background: #000080 !important; }
        .color-storm-blue { background: #4a6572 !important; }
        .color-slate-gray { background: #708090 !important; }
        .color-dark-blue { background: #00008b !important; }
        .color-aluminum { background: #d6d6d6 !important; }
        .color-special { background: linear-gradient(45deg, #ff6b6b, #4ecdc4) !important; }

        /* Оверрайды для очень маленьких экранов */
        @media (max-width: 360px) {
            .new-year-btn {
                width: 60px;
                height: 60px;
                bottom: 15px;
                right: 15px;
            }
            
            .btn-icon {
                font-size: 24px;
            }
            
            .btn-text {
                font-size: 9px;
            }
            
            .step-title {
                font-size: 18px;
            }
            
            .step-title i {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .options-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 10px;
            }
            
            .option-btn {
                padding: 14px;
                font-size: 13px;
                min-height: 70px;
            }
            
            .nav-btn {
                padding: 10px 15px;
                min-width: 90px;
                font-size: 13px;
                gap: 6px;
            }
        }

        /* Предотвращение масштабирования на мобильных */
        @media (max-width: 768px) {
            .quiz-container {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }
            
            .quiz-steps,
            .quiz-sidebar {
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }
        }

        /* Фикс для iOS */
        @supports (-webkit-touch-callout: none) {
            .quiz-container {
                min-height: -webkit-fill-available;
            }
            
            .quiz-modal {
                min-height: -webkit-fill-available;
            }
        }