.telegram-guard-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background-color:var(--tg-theme-bg-color, #ffffff);padding:20px}.loading-spinner{width:50px;height:50px;border:4px solid var(--tg-theme-hint-color, #e0e0e0);border-top-color:var(--tg-theme-button-color, #2481cc);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{to{transform:rotate(360deg)}}.telegram-guard-loading p{color:var(--tg-theme-text-color, #000000);font-size:16px}.telegram-guard-blocked{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.blocked-content{max-width:500px;background:white;border-radius:16px;padding:40px;text-align:center;box-shadow:0 10px 40px #0003}.blocked-icon{font-size:64px;margin-bottom:20px}.blocked-content h1{font-size:28px;font-weight:700;color:#2c3e50;margin-bottom:16px}.blocked-message{font-size:18px;color:#34495e;margin-bottom:24px;line-height:1.6}.blocked-instructions{font-size:16px;font-weight:600;color:#2c3e50;margin-bottom:16px;text-align:left}.blocked-steps{text-align:left;color:#34495e;font-size:16px;line-height:1.8;margin-bottom:24px;padding-left:20px}.blocked-steps li{margin-bottom:12px}.blocked-note{font-size:14px;color:#7f8c8d;font-style:italic;margin-top:24px;padding-top:24px;border-top:1px solid #e9ecef}@media (max-width: 768px){.blocked-content{padding:30px 20px}.blocked-content h1{font-size:24px}.blocked-message{font-size:16px}.blocked-steps{font-size:14px}}.home-page{min-height:100vh;padding:40px 20px;background-color:var(--tg-theme-bg-color, #f5f5f5)}.home-container{max-width:1400px;margin:0 auto;display:flex;gap:40px;min-height:100vh}.left-column{flex:0 0 500px;display:flex;flex-direction:column;gap:30px}.logo-section{background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;padding:30px;box-shadow:0 2px 8px #0000001a}.logo{max-width:100%;height:auto;display:block}.welcome-section{background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;padding:30px;box-shadow:0 2px 8px #0000001a;border:2px solid #e74c3c}.welcome-content{color:var(--tg-theme-text-color, #2c3e50)}.welcome-title{font-size:24px;font-weight:700;color:#e74c3c;margin-bottom:20px;text-align:center}.welcome-text{font-size:16px;line-height:1.8;color:var(--tg-theme-text-color, #34495e);margin-bottom:15px}.welcome-text p{margin-bottom:15px}.welcome-text strong{color:#e74c3c;font-weight:600}.welcome-brand{font-size:18px;font-weight:600;color:var(--tg-theme-text-color, #2c3e50);margin-top:25px;padding-top:20px;border-top:1px solid #e9ecef;text-align:center}.right-column{flex:1;display:flex;flex-direction:column;gap:30px}.header-section{background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;padding:30px;box-shadow:0 2px 8px #0000001a}.header-title{font-size:32px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:15px}.user-greeting{font-size:18px;color:var(--tg-theme-hint-color, #7f8c8d);margin-top:10px}.user-name{color:#e74c3c;font-weight:600}.new-server-badge{display:inline-block;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;font-size:12px;font-weight:600;padding:6px 12px;border-radius:20px;margin-top:12px;box-shadow:0 2px 8px #667eea4d;text-transform:uppercase;letter-spacing:.5px}.courses-section{background:var(--tg-theme-bg-color, #ffffff);border-radius:12px;padding:30px;box-shadow:0 2px 8px #0000001a;border:2px solid #e9ecef}.courses-section.gray-bg{background:var(--tg-theme-secondary-bg-color, #f8f9fa);border:2px solid #e9ecef}.section-title{font-size:24px;font-weight:600;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:20px}.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;margin-top:20px}.course-card{background:var(--tg-theme-bg-color, #ffffff);border-radius:8px;padding:20px;border:2px solid #e9ecef;transition:all .3s ease;cursor:pointer}.courses-section.gray-bg .course-card{background:var(--tg-theme-secondary-bg-color, #f8f9fa)}.courses-section.gray-bg .course-card{background:var(--tg-theme-secondary-bg-color, #f8f9fa)!important;color:var(--tg-theme-text-color, #2c3e50)!important}.course-card:hover{border-color:#e74c3c;box-shadow:0 4px 12px #e74c3c33;transform:translateY(-2px)}.course-card.completed{opacity:.7;border-color:#27ae60}.course-card-title{font-size:18px;font-weight:600;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:10px}.course-card-description{font-size:14px;color:var(--tg-theme-hint-color, #7f8c8d);margin-bottom:15px;line-height:1.5}.course-card-progress{margin-top:15px}.progress-bar{width:100%;height:8px;background:#e9ecef;border-radius:4px;overflow:hidden;margin-bottom:5px}.progress-fill{height:100%;background:linear-gradient(90deg,#e74c3c,#c0392b);transition:width .3s ease}.progress-fill.completed{background:linear-gradient(90deg,#27ae60,#229954)}.progress-text{font-size:12px;color:var(--tg-theme-hint-color, #7f8c8d)}.empty-state{text-align:center;padding:60px 20px;color:var(--tg-theme-hint-color, #95a5a6)}.empty-state-text{font-size:16px}.loading{display:flex;justify-content:center;align-items:center;min-height:50vh;font-size:16px;color:var(--tg-theme-hint-color, #999999)}.access-denied{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:70vh;padding:32px 16px;text-align:center}.access-denied-icon{font-size:64px;margin-bottom:24px}.access-denied h2{font-size:24px;font-weight:700;margin-bottom:16px;color:var(--tg-theme-text-color, #000000)}.access-denied p{font-size:16px;color:var(--tg-theme-text-color, #000000);margin-bottom:12px;line-height:1.5}.access-denied-roles{font-weight:700;margin-top:24px;margin-bottom:16px}.roles-list{list-style:none;padding:0;margin:0 0 24px;display:flex;flex-direction:column;gap:12px;align-items:center}.roles-list li{font-size:16px;color:var(--tg-theme-text-color, #000000);padding:8px 16px;background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:8px;min-width:200px}.access-denied-contact{font-size:14px;color:var(--tg-theme-hint-color, #999999);margin-top:24px;font-style:italic}@media (max-width: 1024px){.home-container{flex-direction:column}.left-column{flex:1}.home-page{padding:20px 16px}}@media (max-width: 768px){.home-page{padding:12px}.courses-grid{grid-template-columns:1fr}.course-card{padding:16px}.course-card-title{font-size:16px}.welcome-section,.header-section,.courses-section,.logo-section{padding:20px}.header-title{font-size:24px}.section-title{font-size:20px}}.course-page{min-height:100vh;padding:16px;background-color:var(--tg-theme-bg-color, #ffffff)}.course-header{margin-bottom:24px}.course-header h1{font-size:24px;font-weight:700;margin-bottom:8px;color:var(--tg-theme-text-color, #000000)}.course-description{font-size:14px;color:var(--tg-theme-hint-color, #999999);line-height:1.5}.course-progress-section{margin-bottom:24px;padding:16px;background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px}.progress-info{display:flex;justify-content:space-between;margin-bottom:8px;font-size:14px;color:var(--tg-theme-text-color, #000000)}.progress-bar{height:8px;background-color:#0000001a;border-radius:4px;overflow:hidden}.course-content{display:flex;flex-direction:column;gap:24px}.lessons-section,.tests-section{margin-bottom:24px}.lessons-section h2,.tests-section h2{font-size:20px;font-weight:700;margin-bottom:16px;color:var(--tg-theme-text-color, #000000)}.lessons-list,.tests-list{display:flex;flex-direction:column;gap:12px}.lesson-item,.test-item{display:flex;align-items:center;padding:16px;background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;cursor:pointer;transition:transform .2s}.lesson-item:active,.test-item:active{transform:scale(.98)}.lesson-number{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-radius:50%;font-weight:700;margin-right:12px;flex-shrink:0}.lesson-info,.test-info{flex:1}.lesson-info h3,.test-info h3{font-size:16px;font-weight:700;margin-bottom:4px;color:var(--tg-theme-text-color, #000000)}.lesson-completed,.test-completed{font-size:12px;color:#4caf50;margin-left:8px}.test-final{font-size:12px;padding:2px 8px;background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-radius:4px;margin-left:8px}.test-questions-count{color:#6c757d;font-size:.85em;display:block;margin-top:4px}@media (max-width: 768px){.course-page,.lesson-item,.test-item{padding:12px}}.lesson-page{min-height:100vh;padding:16px;background-color:var(--tg-theme-bg-color, #ffffff);display:flex;flex-direction:column}.lesson-header{margin-bottom:24px}.lesson-header h1{font-size:24px;font-weight:700;color:var(--tg-theme-text-color, #000000)}.lesson-content{flex:1;margin-bottom:24px}.lesson-image{margin-bottom:16px}.lesson-image img{width:100%;border-radius:8px}.lesson-text{margin-bottom:16px;line-height:1.5;color:var(--tg-theme-text-color, #000000)}.lesson-text p{margin-bottom:16px}.lesson-text h1,.lesson-text h2,.lesson-text h3{margin-top:24px;margin-bottom:12px;color:var(--tg-theme-text-color, #000000);font-weight:600}.lesson-text h2{font-size:18px;margin-top:20px;margin-bottom:12px;color:var(--tg-theme-text-color, #000000);display:flex;align-items:center;gap:8px}.lesson-text h3{font-size:16px;margin-top:16px;margin-bottom:8px}.lesson-text ul,.lesson-text ol{margin-left:20px;margin-bottom:16px;padding-left:0}.lesson-text li{margin-bottom:10px;line-height:1.6;position:relative}.lesson-text li:has(>p:first-child:contains("-")){list-style:none;margin-left:0;padding-left:20px;position:relative}.lesson-text li:before{content:"•";position:absolute;left:-16px;color:var(--tg-theme-button-color, #2481cc);font-weight:700;font-size:18px}.lesson-text p:has-text("-"),.lesson-text li p:first-child{display:inline;margin:0}.lesson-text>p:has(>strong){background-color:var(--tg-theme-secondary-bg-color, #f8f9fa);padding:12px 16px;border-radius:8px;margin-bottom:12px;border-left:3px solid var(--tg-theme-button-color, #2481cc)}.lesson-text strong{display:block;font-size:16px;font-weight:600;color:var(--tg-theme-text-color, #000000);margin-bottom:8px}.lesson-text strong+span,.lesson-text strong+p{color:var(--tg-theme-text-color, #666666);display:block;margin-top:4px;line-height:1.6}.lesson-video{margin-bottom:24px}.lesson-video video{width:100%;border-radius:8px}.lesson-files{margin-bottom:24px;padding:16px;background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:8px}.lesson-files h3{font-size:16px;font-weight:700;margin-bottom:12px;color:var(--tg-theme-text-color, #000000)}.lesson-files ul{list-style:none;margin:0;padding:0}.lesson-files li{margin-bottom:8px}.lesson-files a{color:var(--tg-theme-link-color, #2481cc);text-decoration:underline}.lesson-footer{padding-top:16px;border-top:1px solid rgba(0,0,0,.1)}.complete-button{width:100%;padding:16px;background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:opacity .2s}.complete-button:disabled{opacity:.6;cursor:not-allowed}.complete-button:active:not(:disabled){opacity:.8}.lesson-content-html{display:flex;flex-direction:column;gap:8px}.lesson-content-html>*{margin-bottom:8px}.lesson-content-html>*:last-child{margin-bottom:0}.lesson-content-html p{margin-bottom:6px;line-height:1.5;color:var(--tg-theme-text-color, #333333)}.lesson-content-html p.section-title{font-weight:600;font-size:17px;color:var(--tg-theme-text-color, #000000);margin-top:16px;margin-bottom:6px;padding-bottom:6px;border-bottom:2px solid var(--tg-theme-button-color, #2481cc)}.lesson-content-html p.section-header{margin-bottom:4px;margin-top:12px}.lesson-content-html p.section-header strong{font-weight:600;color:var(--tg-theme-text-color, #000000);margin-right:4px;font-size:15px}.lesson-content-html .styled-list{list-style:none;padding:0;margin:6px 0 8px}.lesson-content-html .styled-list-item{padding:6px 0 6px 28px;position:relative;border-bottom:1px solid rgba(0,0,0,.08);line-height:1.5;color:var(--tg-theme-text-color, #444444)}.lesson-content-html .styled-list-item:last-child{border-bottom:none}.lesson-content-html .styled-list-item:before{content:"•";position:absolute;left:8px;color:var(--tg-theme-button-color, #2481cc);font-weight:700;font-size:18px;top:6px}.lesson-content-html p:first-child{text-indent:0}.lesson-content-html p.step-item{padding-left:24px;position:relative;margin-bottom:8px;line-height:1.6}.lesson-content-html p.step-item:before{content:"→";position:absolute;left:0;color:var(--tg-theme-button-color, #2481cc);font-weight:700;font-size:16px}.lesson-section{background-color:var(--tg-theme-secondary-bg-color, #f8f9fa);padding:16px;border-radius:12px;margin-bottom:16px;border-left:4px solid var(--tg-theme-button-color, #2481cc)}.lesson-section-title{font-size:16px;font-weight:600;color:var(--tg-theme-text-color, #000000);margin-bottom:8px;display:flex;align-items:center;gap:8px}.lesson-section-content{color:var(--tg-theme-text-color, #666666);line-height:1.6}.lesson-section-content ul{list-style:none;padding:0;margin:8px 0 0}.lesson-section-content li{border-bottom:1px solid rgba(0,0,0,.05);position:relative;padding:8px 0 8px 24px}.lesson-section-content li:last-child{border-bottom:none}.lesson-section-content li:before{content:"→";position:absolute;left:0;color:var(--tg-theme-button-color, #2481cc);font-weight:700}@media (max-width: 768px){.lesson-page{padding:12px}.lesson-text h2{font-size:16px}.lesson-section{padding:12px}}.test-page{min-height:100vh;padding:16px;background-color:var(--tg-theme-bg-color, #ffffff);display:flex;flex-direction:column}.test-header{margin-bottom:24px}.test-header h1{font-size:24px;font-weight:700;margin-bottom:8px;color:var(--tg-theme-text-color, #000000)}.test-header p{font-size:14px;color:var(--tg-theme-hint-color, #999999)}.test-progress{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--tg-theme-hint-color, #999999);margin-top:8px}.test-timer{font-weight:700;padding:4px 12px;background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:8px;color:var(--tg-theme-text-color, #000000)}.test-timer.timer-warning{background-color:#ffeb3b;color:#f57c00;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.test-intro{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px 16px}.test-info{margin-bottom:32px;text-align:center}.test-info p{font-size:16px;margin-bottom:8px;color:var(--tg-theme-text-color, #000000)}.start-button{padding:16px 32px;background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;transition:opacity .2s}.start-button:active{opacity:.8}.test-content{flex:1;margin-bottom:24px}.question-card{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;padding:16px}.question-title{font-size:18px;font-weight:700;margin-bottom:16px;color:var(--tg-theme-text-color, #000000)}.question-image{margin-bottom:16px}.question-image img{width:100%;border-radius:8px}.question-answers{margin-top:16px}.single-choice-answers,.multiple-choice-answers{display:flex;flex-direction:column;gap:12px}.answer-option{display:flex;align-items:center;padding:12px;background-color:var(--tg-theme-bg-color, #ffffff);border-radius:8px;cursor:pointer;transition:background-color .2s}.answer-option:hover{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1)}.answer-option input{margin-right:12px;cursor:pointer}.answer-option span{flex:1;color:var(--tg-theme-text-color, #000000)}.text-answer textarea{width:100%;padding:12px;border:1px solid rgba(0,0,0,.2);border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}.text-answer textarea:focus{outline:none;border-color:var(--tg-theme-button-color, #2481cc)}.test-footer{padding-top:16px;border-top:1px solid rgba(0,0,0,.1)}.test-navigation{display:flex;justify-content:space-between;gap:12px}.nav-button,.submit-button{flex:1;padding:16px;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:opacity .2s}.nav-button{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);color:var(--tg-theme-text-color, #000000)}.submit-button{background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff)}.nav-button:disabled,.submit-button:disabled{opacity:.6;cursor:not-allowed}.nav-button:active:not(:disabled),.submit-button:active:not(:disabled){opacity:.8}@media (max-width: 768px){.test-page,.question-card{padding:12px}}.test-result-page{min-height:100vh;padding:16px;background-color:var(--tg-theme-bg-color, #ffffff);display:flex;flex-direction:column}.result-header{margin-bottom:24px}.result-header h1{font-size:24px;font-weight:700;color:var(--tg-theme-text-color, #000000)}.result-content{flex:1;margin-bottom:24px}.result-summary{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;padding:24px;margin-bottom:24px;text-align:center}.result-score{margin-bottom:16px}.score-value{font-size:48px;font-weight:700;margin-bottom:8px}.score-value.passed{color:#4caf50}.score-value.failed{color:#f44336}.score-percentage{font-size:24px;color:var(--tg-theme-hint-color, #999999)}.result-status{margin-bottom:16px}.status-passed{color:#4caf50;font-weight:700;font-size:18px}.status-failed{color:#f44336;font-weight:700;font-size:18px}.result-info{margin-top:16px;font-size:14px;color:var(--tg-theme-hint-color, #999999)}.result-info p{margin-bottom:4px}.result-questions{margin-top:24px}.result-questions h2{font-size:20px;font-weight:700;margin-bottom:16px;color:var(--tg-theme-text-color, #000000)}.result-question{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;padding:16px;margin-bottom:16px}.question-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.question-number{font-weight:700;color:var(--tg-theme-text-color, #000000)}.question-status{font-size:12px;padding:4px 8px;border-radius:4px;font-weight:700}.question-status.correct{background-color:#4caf50;color:#fff}.question-status.incorrect{background-color:#f44336;color:#fff}.question-text{font-size:16px;margin-bottom:12px;color:var(--tg-theme-text-color, #000000)}.question-answers{display:flex;flex-direction:column;gap:8px}.user-answer,.correct-answer{padding:12px;border-radius:8px;font-size:14px}.user-answer{background-color:#ffcc001a}.correct-answer{background-color:#4caf501a}.user-answer strong,.correct-answer strong{display:block;margin-bottom:4px;color:var(--tg-theme-text-color, #000000)}.user-answer span,.correct-answer span{color:var(--tg-theme-text-color, #000000)}.answer-text{white-space:pre-line;display:block;line-height:1.5}.result-footer{padding-top:16px;border-top:1px solid rgba(0,0,0,.1)}.back-button{width:100%;padding:16px;background-color:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #ffffff);border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:opacity .2s}.back-button:active{opacity:.8}@media (max-width: 768px){.test-result-page{padding:12px}.result-summary{padding:16px}.score-value{font-size:36px}}.progress-page{min-height:100vh;padding:16px;background-color:var(--tg-theme-bg-color, #ffffff)}.progress-header{margin-bottom:24px}.back-button{background:none;border:none;font-size:16px;color:var(--tg-theme-link-color, #2481cc);margin-bottom:12px;padding:8px 0;cursor:pointer}.progress-header h1{font-size:24px;font-weight:700;color:var(--tg-theme-text-color, #000000)}.progress-content{margin-top:24px}.progress-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:24px}.summary-item{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;padding:16px;text-align:center}.summary-label{display:block;font-size:12px;color:var(--tg-theme-hint-color, #999999);margin-bottom:8px}.summary-value{display:block;font-size:24px;font-weight:700;color:var(--tg-theme-text-color, #000000)}.progress-courses{margin-top:24px}.progress-courses h2{font-size:20px;font-weight:700;margin-bottom:16px;color:var(--tg-theme-text-color, #000000)}.progress-course-card{background-color:var(--tg-theme-secondary-bg-color, #f1f1f1);border-radius:12px;padding:16px;margin-bottom:16px;cursor:pointer;transition:transform .2s}.progress-course-card:active{transform:scale(.98)}.course-info{margin-bottom:12px}.course-info h3{font-size:18px;font-weight:700;margin-bottom:12px;color:var(--tg-theme-text-color, #000000)}.course-progress{display:flex;align-items:center;gap:12px;margin-bottom:12px}.progress-bar{flex:1;height:8px;background-color:#0000001a;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background-color:var(--tg-theme-button-color, #2481cc);transition:width .3s}.course-progress span{font-size:12px;font-weight:700;color:var(--tg-theme-text-color, #000000);min-width:40px}.course-stats{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--tg-theme-hint-color, #999999)}.course-status{display:flex;justify-content:flex-end}.status-badge{font-size:12px;padding:4px 8px;border-radius:4px;font-weight:700}.status-badge.completed{background-color:#4caf50;color:#fff}.status-badge.in_progress{background-color:var(--tg-theme-button-color, #2481cc);color:#fff}.status-badge.assigned{background-color:var(--tg-theme-hint-color, #999999);color:#fff}.loading,.error{display:flex;justify-content:center;align-items:center;min-height:50vh;font-size:16px;color:var(--tg-theme-hint-color, #999999)}.error{color:#f44336}@media (max-width: 768px){.progress-page{padding:12px}.progress-summary{grid-template-columns:repeat(2,1fr)}.summary-item{padding:12px}}.tea-quiz-page{min-height:100vh;background:#FCEDED;padding:20px;color:#333}.quiz-header{background:white;border-radius:12px;padding:20px;margin-bottom:20px;box-shadow:0 4px 6px #0000001a}.quiz-header h1{margin:0 0 10px;font-size:24px;color:#2d3748}.quiz-progress{margin-bottom:15px}.progress-bar{width:100%;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden;margin-bottom:8px}.progress-fill{height:100%;background:linear-gradient(90deg,#667eea 0%,#764ba2 100%);transition:width .3s ease}.progress-text{font-size:14px;color:#718096;text-align:center}.quiz-timer{text-align:center;font-size:18px;font-weight:700;color:#667eea;margin-top:10px}.quiz-intro{background:white;border-radius:12px;padding:40px;text-align:center;box-shadow:0 4px 6px #0000001a}.quiz-info{margin-bottom:30px}.quiz-info p{font-size:18px;color:#4a5568;margin:10px 0}.quiz-prize{background:#F3F3F3;border:2px solid #f59e0b;border-radius:12px;padding:20px;margin:30px 0;display:flex;align-items:center;gap:15px;box-shadow:0 4px 6px #f59e0b33}.prize-icon{font-size:40px;flex-shrink:0}.prize-text{flex:1;font-size:16px;color:#78350f;line-height:1.5}.prize-text strong{color:#92400e;font-weight:700}.quiz-restriction{background:linear-gradient(135deg,#fee2e2 0%,#fecaca 100%);border:2px solid #ef4444;border-radius:12px;padding:20px;margin:20px 0;display:flex;align-items:center;gap:15px;box-shadow:0 4px 6px #ef444433}.restriction-icon{font-size:40px;flex-shrink:0}.restriction-text{flex:1;font-size:16px;color:#991b1b;line-height:1.5}.restriction-text strong{color:#7f1d1d;font-weight:700}.quiz-actions{display:flex;flex-direction:column;gap:15px;align-items:center}.start-button{background:#D82C20;color:#fff;border:none;padding:15px 40px;font-size:18px;font-weight:700;border-radius:8px;cursor:pointer;transition:transform .2s,box-shadow .2s;width:100%;max-width:300px}.start-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 12px #d82c2066}.start-button:disabled{opacity:.5;cursor:not-allowed}.leaderboard-link-button{background:transparent;color:#667eea;border:2px solid #667eea;padding:12px 30px;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s;width:100%;max-width:300px}.leaderboard-link-button:hover{background:#667eea;color:#fff;transform:translateY(-2px)}.quiz-content{background:white;border-radius:12px;padding:30px;box-shadow:0 4px 6px #0000001a}.question-block{margin-bottom:30px}.question-text{font-size:20px;font-weight:600;color:#2d3748;margin-bottom:20px;line-height:1.5}.options-list{display:flex;flex-direction:column;gap:12px}.option-button{display:flex;align-items:center;gap:12px;padding:15px 20px;background:#f7fafc;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;text-align:left;font-size:16px;color:#2d3748}.option-button:hover{background:#edf2f7;border-color:#cbd5e0}.option-button.selected{background:#e6fffa;border-color:#667eea;color:#667eea;font-weight:600}.checkbox,.radio{font-size:20px;min-width:24px}.option-text{flex:1}.quiz-navigation{display:flex;justify-content:space-between;gap:15px;margin-top:30px;padding-top:20px;border-top:2px solid #e2e8f0}.nav-button,.next-button,.submit-button{flex:1;padding:12px 24px;font-size:16px;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s}.nav-button{background:#e2e8f0;color:#4a5568}.nav-button:hover:not(:disabled){background:#cbd5e0}.nav-button:disabled{opacity:.5;cursor:not-allowed}.next-button,.submit-button{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff}.next-button:hover,.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 8px #667eea4d}.submit-button:disabled{opacity:.6;cursor:not-allowed}.quiz-result{background:white;border-radius:12px;padding:40px;text-align:center;box-shadow:0 4px 6px #0000001a;max-width:500px;margin:0 auto}.quiz-result h1{color:#2d3748;margin-bottom:30px}.result-stats{display:flex;flex-direction:column;gap:20px;margin-bottom:30px}.stat-item{padding:20px;background:#f7fafc;border-radius:8px}.stat-label{font-size:14px;color:#718096;margin-bottom:8px}.stat-value{font-size:24px;font-weight:700;color:#667eea}.result-motivation{margin:30px 0;padding:20px;background:#f7fafc;border-radius:8px;border-left:4px solid #D82C20}.result-motivation p{font-size:16px;line-height:1.6;color:#4a5568;margin:0;text-align:left}.result-actions{display:flex;flex-direction:column;gap:12px;margin-top:20px}.result-action-button{background:#D82C20;color:#fff;border:none;padding:14px 30px;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;transition:transform .2s,box-shadow .2s;width:100%}.result-action-button:hover{transform:translateY(-2px);box-shadow:0 4px 8px #d82c204d}.leaderboard-button,.back-button{background:#D82C20;color:#fff;border:none;padding:12px 30px;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;transition:transform .2s}.leaderboard-button:hover,.back-button:hover{transform:translateY(-2px);box-shadow:0 4px 8px #d82c204d}.leaderboard-page{min-height:100vh;background:#FCEDED;padding:20px;color:#333}.leaderboard-header{background:white;border-radius:12px;padding:30px;margin-bottom:20px;text-align:center;box-shadow:0 4px 6px #0000001a}.leaderboard-header h1{margin:0 0 10px;font-size:28px;color:#2d3748}.subtitle{margin:0;font-size:16px;color:#718096}.leaderboard-content{background:white;border-radius:12px;padding:20px;box-shadow:0 4px 6px #0000001a}.leaderboard-table{width:100%;overflow-x:auto}.table-header{display:grid;grid-template-columns:60px 1fr 100px 120px 120px;gap:15px;padding:15px 10px;background:#f7fafc;border-radius:8px;font-weight:700;font-size:14px;color:#4a5568;margin-bottom:10px}.table-body{display:flex;flex-direction:column;gap:8px}.table-row{display:grid;grid-template-columns:60px 1fr 100px 120px 120px;gap:15px;padding:15px 10px;background:#ffffff;border:1px solid #e2e8f0;border-radius:8px;transition:all .2s;font-size:15px}.table-row:hover{background:#f7fafc;border-color:#cbd5e0;transform:translateY(-1px);box-shadow:0 2px 4px #0000000d}.table-row.user-row{background:#F3F3F3;border:2px solid #f59e0b;box-shadow:0 4px 8px #f59e0b4d;font-weight:600}.table-row.user-row:hover{background:linear-gradient(135deg,#fde68a 0%,#fcd34d 100%);transform:translateY(-2px);box-shadow:0 6px 12px #f59e0b66}.col-id{text-align:center;font-weight:600;color:#667eea}.col-name{font-weight:500;color:#2d3748}.col-questions{text-align:center;font-weight:600;color:#667eea}.col-percentage{text-align:center;font-weight:600;color:#48bb78}.col-time{text-align:center;font-family:Courier New,monospace;font-weight:600;color:#4299e1}.leaderboard-footer{margin-top:30px;padding-top:20px;border-top:2px solid #e2e8f0;text-align:center}.total-participants{font-size:16px;color:#718096;margin-bottom:20px}.back-button{background:#D82C20;color:#fff;border:none;padding:12px 30px;font-size:16px;font-weight:600;border-radius:8px;cursor:pointer;transition:transform .2s}.back-button:hover{transform:translateY(-2px);box-shadow:0 4px 8px #d82c204d}.empty-state{background:white;border-radius:12px;padding:40px;text-align:center;box-shadow:0 4px 6px #0000001a}.empty-state p{font-size:18px;color:#718096;margin-bottom:20px}.loading,.error{text-align:center;padding:40px;background:white;border-radius:12px;font-size:18px;color:#4a5568}.error{color:#e53e3e}.total-info{margin:10px 0 0;font-size:14px;color:#718096;font-weight:500}.pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin:30px 0;padding:20px;background:#f7fafc;border-radius:8px}.pagination-button{background:#D82C20;color:#fff;border:none;padding:10px 20px;font-size:14px;font-weight:600;border-radius:6px;cursor:pointer;transition:all .2s}.pagination-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 8px #d82c204d}.pagination-button:disabled{background:#cbd5e0;color:#a0aec0;cursor:not-allowed;opacity:.6}.pagination-info{font-size:16px;font-weight:600;color:#4a5568}@media (max-width: 600px){.table-header,.table-row{grid-template-columns:50px 1fr 80px 90px 90px;gap:10px;padding:12px 8px;font-size:14px}.col-time{font-size:12px}.leaderboard-header h1{font-size:24px}}.recipes-page{min-height:100vh;padding:20px;background:var(--tg-theme-bg-color, #ffffff)}.recipes-container{max-width:1200px;margin:0 auto}.recipes-header{margin-bottom:30px;text-align:center}.recipes-title{font-size:28px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:10px}.recipes-subtitle{font-size:16px;color:var(--tg-theme-hint-color, #7f8c8d)}.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:30px}.category-card{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;padding:30px;border-radius:15px;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 4px 6px #0000001a}.category-card:hover{transform:translateY(-5px);box-shadow:0 8px 12px #0003}.category-card-title{font-size:24px;font-weight:700;margin-bottom:10px}.category-card-count{font-size:16px;opacity:.9}.recipes-category-page{min-height:100vh;padding:20px;background:var(--tg-theme-bg-color, #ffffff)}.recipes-category-container{max-width:1200px;margin:0 auto}.recipes-category-header{margin-bottom:30px}.recipes-category-title{font-size:28px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:20px}.recipes-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.recipe-card{background:var(--tg-theme-secondary-bg-color, #f8f9fa);border:1px solid var(--tg-theme-hint-color, #e0e0e0);border-radius:12px;padding:20px;cursor:pointer;transition:transform .2s,box-shadow .2s}.recipe-card:hover{transform:translateY(-3px);box-shadow:0 4px 8px #0000001a}.recipe-card-header{display:flex;align-items:center;gap:12px;margin-bottom:10px}.recipe-card-image{width:60px;height:60px;object-fit:cover;border-radius:8px;flex-shrink:0;border:1px solid var(--tg-theme-hint-color, #e0e0e0)}.recipe-card-icon{font-size:28px;flex-shrink:0;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:var(--tg-theme-secondary-bg-color, #f0f0f0);border-radius:8px}.recipe-card-title{font-size:20px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);flex:1;line-height:1.3}.recipe-card-params{font-size:14px;color:var(--tg-theme-hint-color, #7f8c8d)}.recipe-card-time{font-weight:500}.empty-state{text-align:center;padding:60px 20px;color:var(--tg-theme-hint-color, #7f8c8d);font-size:18px}.recipe-detail-page{min-height:100vh;padding:20px;background:var(--tg-theme-bg-color, #ffffff)}.recipe-detail-container{max-width:800px;margin:0 auto}.recipe-detail-header{margin-bottom:30px}.back-button{background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #ffffff);border:none;padding:10px 20px;border-radius:8px;cursor:pointer;font-size:16px;margin-bottom:15px;transition:opacity .2s}.back-button:hover{opacity:.8}.recipe-detail-title-wrapper{display:flex;align-items:center;gap:12px;margin-bottom:10px}.recipe-detail-image{width:60px;height:60px;object-fit:cover;border-radius:8px;flex-shrink:0;border:1px solid var(--tg-theme-hint-color, #e0e0e0)}.recipe-detail-icon{font-size:32px;flex-shrink:0;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:var(--tg-theme-secondary-bg-color, #f0f0f0);border-radius:8px}.recipe-detail-title{font-size:28px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);flex:1;margin-bottom:0;line-height:1.3}.recipe-detail-category{font-size:16px;color:var(--tg-theme-hint-color, #7f8c8d);margin-bottom:20px}.recipe-detail-content{display:flex;flex-direction:column;gap:25px}.alternative-guide-button{width:100%;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #ffffff);border:none;padding:15px 20px;border-radius:8px;cursor:pointer;font-size:18px;font-weight:700;transition:opacity .2s;margin-top:10px}.alternative-guide-button:hover{opacity:.8}.recipe-section{background:var(--tg-theme-secondary-bg-color, #f8f9fa);border-radius:12px;padding:20px}.recipe-section-title{font-size:20px;font-weight:700;color:var(--tg-theme-text-color, #2c3e50);margin-bottom:15px;border-bottom:2px solid var(--tg-theme-button-color, #3390ec);padding-bottom:10px}.recipe-params{display:flex;flex-direction:column;gap:10px}.recipe-param{display:flex;justify-content:space-between;padding:10px;background:var(--tg-theme-bg-color, #ffffff);border-radius:8px}.recipe-param-label{font-weight:600;color:var(--tg-theme-text-color, #2c3e50)}.recipe-param-value{color:var(--tg-theme-hint-color, #7f8c8d)}.recipe-text{font-size:16px;line-height:1.6;color:var(--tg-theme-text-color, #2c3e50);white-space:pre-wrap}.recipe-tds{font-size:18px;font-weight:600;color:var(--tg-theme-text-color, #2c3e50)}.recipe-recommendations{display:flex;flex-direction:column;gap:10px}.recipe-recommendation-item{padding:10px;background:var(--tg-theme-bg-color, #ffffff);border-radius:8px;font-size:15px;line-height:1.5;color:var(--tg-theme-text-color, #2c3e50)}.recipe-characteristics,.recipe-settings{display:flex;flex-direction:column;gap:10px}.recipe-characteristic,.recipe-setting{display:flex;justify-content:space-between;padding:10px;background:var(--tg-theme-bg-color, #ffffff);border-radius:8px}.recipe-characteristic-label,.recipe-setting-label{font-weight:600;color:var(--tg-theme-text-color, #2c3e50)}.recipe-characteristic-value,.recipe-setting-value{color:var(--tg-theme-hint-color, #7f8c8d);text-align:right;max-width:60%}.recipe-notes{font-size:15px;line-height:1.6;color:var(--tg-theme-text-color, #2c3e50);white-space:pre-wrap}.loading,.error{text-align:center;padding:40px;font-size:18px;color:var(--tg-theme-text-color, #2c3e50)}.error{color:#e74c3c}.app{min-height:100vh;background-color:var(--tg-theme-bg-color, #ffffff);color:var(--tg-theme-text-color, #000000)}:root{--tg-theme-bg-color: #ffffff;--tg-theme-text-color: #000000;--tg-theme-hint-color: #999999;--tg-theme-link-color: #2481cc;--tg-theme-button-color: #2481cc;--tg-theme-button-text-color: #ffffff;--tg-theme-secondary-bg-color: #f1f1f1}@media (prefers-color-scheme: dark){:root{--tg-theme-bg-color: #17212b;--tg-theme-text-color: #ffffff;--tg-theme-hint-color: #708499;--tg-theme-link-color: #6ab7ff;--tg-theme-button-color: #5288c1;--tg-theme-button-text-color: #ffffff;--tg-theme-secondary-bg-color: #232e3c}}*{margin:0;padding:0;box-sizing:border-box}html{--safe-area-inset-top: env(safe-area-inset-top, 0px);--safe-area-inset-right: env(safe-area-inset-right, 0px);--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);--safe-area-inset-left: env(safe-area-inset-left, 0px);--tg-safe-area-inset-top: 0px;--tg-safe-area-inset-right: 0px;--tg-safe-area-inset-bottom: 0px;--tg-safe-area-inset-left: 0px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff;color:#000;padding-top:max(var(--safe-area-inset-top),var(--tg-safe-area-inset-top),0px);padding-right:max(var(--safe-area-inset-right),var(--tg-safe-area-inset-right),0px);padding-bottom:max(var(--safe-area-inset-bottom),var(--tg-safe-area-inset-bottom),0px);padding-left:max(var(--safe-area-inset-left),var(--tg-safe-area-inset-left),0px);-webkit-touch-callout:none;-webkit-user-select:none;-webkit-text-size-adjust:100%}#root,.tg-viewport{min-height:100vh;width:100%;display:flex;flex-direction:column}button{cursor:pointer;border:none;outline:none;font-family:inherit}button:disabled{opacity:.6;cursor:not-allowed}a{color:inherit;text-decoration:none}ul,ol{list-style:none}img{max-width:100%;height:auto}@media (max-width: 768px){body{font-size:14px}}@supports (padding: max(0px)){body{padding-top:max(1rem,env(safe-area-inset-top));padding-bottom:max(1rem,env(safe-area-inset-bottom));padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right))}main{padding-bottom:max(1rem,env(safe-area-inset-bottom))}}nav,footer,.navbar,.bottom-nav,[data-nav]{padding-bottom:calc(var(--safe-area-inset-bottom, 0px) + var(--tg-safe-area-inset-bottom, 0px))}input,textarea,select{font-size:16px;-webkit-appearance:none;border-radius:8px}@media (prefers-reduced-motion: reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#fff}#root{background-color:#1a1a1a}}@media (hover: none) and (pointer: coarse){button:hover,a:hover{background-color:initial}button:active,a:active{opacity:.7}}@supports (-webkit-touch-callout: none){body{-webkit-text-size-adjust:100%}}
