:root{--color-primary:#2563eb;--color-primary-hover:#1d4ed8;--color-secondary:#10b981;--color-danger:#ef4444;--color-bg:#f8fafc;--color-surface:#fff;--color-text-main:#1e293b;--color-text-muted:#64748b;--color-border:#e2e8f0;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--color-bg);color:var(--color-text-main);-webkit-font-smoothing:antialiased;background:url(/background/background.svg);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5}input,button,select,textarea{font-family:inherit;font-size:inherit}a{color:var(--color-primary);text-decoration:none}a:hover{text-decoration:underline}.app-layout{flex-direction:column;min-height:100vh;display:flex}.app-header{background-color:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:1rem 2rem;display:flex}.header-brand{align-items:center;gap:1.5rem;display:flex}.logo-switcher{justify-content:center;align-items:center;width:70px;height:32px;display:flex;position:relative}.switcher-logo{object-fit:contain;opacity:0;mix-blend-mode:multiply;width:100%;height:100%;transition:opacity 1s ease-in-out;position:absolute;top:0;left:0}.switcher-logo.active{opacity:1}.header-golo:hover{opacity:.8}.app-footer{background-color:var(--color-surface);border-top:1px solid var(--color-border);margin-top:auto;padding:1.5rem .5rem;font-size:.875rem}.footer-content{justify-content:space-between;align-items:flex-start;gap:1.5rem;display:flex}.footer-section p{margin:0;line-height:1.6}.footer-section a{color:var(--color-text-muted);text-decoration:none;transition:color .2s}.footer-section a:hover{color:var(--color-primary);text-decoration:underline}.app-nav{align-items:center;gap:1.5rem;display:flex}.mobile-menu-btn{color:var(--color-text-main);cursor:pointer;background:0 0;border:none;padding:.5rem;font-size:1.5rem;display:none}.app-main{flex-direction:column;flex:1;padding:2rem 1rem;display:flex}.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}@media (width<=768px){.mobile-menu-btn{display:block}.app-nav{background-color:var(--color-surface);box-shadow:var(--shadow-md);border-bottom:1px solid var(--color-border);z-index:50;flex-direction:column;align-items:flex-start;padding:1rem 2rem;display:none;position:absolute;top:100%;left:0;right:0}.app-nav.open{animation:.2s ease-out slideDown;display:flex}.app-nav>*{border-bottom:1px solid var(--color-border);text-align:left;width:100%;padding:.75rem 0}.app-nav>:last-child{border-bottom:none}.app-header{position:relative}.header-brand{gap:1rem}.header-icons{gap:.5rem}.logo-switcher{width:100px;height:24px}}@media (width<=640px){.app-main{padding:1rem .5rem}.footer-content{text-align:start;flex-direction:column;align-items:start;gap:1rem}.app-footer{padding:1rem 0}}@media (width<=400px){.header-icons,.logo-switcher{display:none}}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.items-baseline{align-items:baseline}.flex-1{flex:1}.grow{flex-grow:1}.shrink-0{flex-shrink:0}.center-empty-state{flex:1;justify-content:center;align-items:center;display:flex}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.m-0{margin:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-xs{font-size:.75rem}.text-sm{font-size:.875rem}.text-base{font-size:1rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-bold{font-weight:700}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-main{color:var(--color-text-main)}.text-muted{color:var(--color-text-muted)}.text-danger{color:var(--color-danger)}.text-primary{color:var(--color-primary)}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.w-full{width:100%}.h-full{height:100%}.max-w-md{max-width:28rem}.scroll-x{overflow-x:auto}.scroll-y{overflow-y:auto}.border{border:1px solid var(--color-border)}.rounded-md{border-radius:var(--radius-md)}.rounded-lg{border-radius:var(--radius-lg)}.shadow-sm{box-shadow:var(--shadow-sm)}.shadow-md{box-shadow:var(--shadow-md)}.bg-surface{background-color:var(--color-surface)}.register-form{background:var(--color-surface);border-radius:var(--radius-lg);width:100%;max-width:450px;box-shadow:var(--shadow-md);padding:2rem}.form-group{flex-direction:column;margin-bottom:1rem;display:flex}.form-input{border:1px solid var(--color-border);border-radius:var(--radius-md);outline:none;width:100%;padding:.75rem;transition:border-color .2s}.form-input:focus{border-color:var(--color-primary)}.form-error{color:var(--color-danger);margin-top:.25rem;font-size:.875rem}.checkbox-group{align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.btn-primary{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md);cursor:pointer;border:none;width:100%;padding:.75rem;font-weight:500;transition:background-color .2s}.btn-primary:hover:not(:disabled){background-color:var(--color-primary-hover)}.btn-primary:disabled{opacity:.7;cursor:not-allowed}.btn-copy-paste{background-color:var(--color-primary);border:1px solid var(--color-border);border-radius:var(--radius-md);cursor:pointer;color:#fff;width:100%;margin-bottom:1rem;padding:.75rem;font-weight:500;transition:background-color .2s}.btn-copy-paste:hover{background-color:var(--color-primary-hover)}.footer-message{color:var(--color-text-muted);text-align:center;max-width:450px;padding:1rem;font-size:.875rem}.profile-card{background:var(--color-surface);border-radius:var(--radius-lg);width:100%;max-width:600px;box-shadow:var(--shadow-md);overflow:hidden}.profile-header{background:linear-gradient(135deg, var(--color-primary), #3b82f6);color:#fff;justify-content:space-between;align-items:flex-start;padding:2rem;display:flex}.profile-options{justify-content:center;align-items:center;gap:1rem;display:flex}.profile-title h2{margin-bottom:.25rem;font-size:1.5rem}.profile-title p{opacity:.9;font-size:.875rem}.btn-logout{color:#fff;border-radius:var(--radius-md);cursor:pointer;background:#fff3;border:1px solid #fff6;padding:.5rem 1rem;font-weight:500;transition:background .2s}.btn-logout:hover{background:#ffffff4d}.profile-body{padding:2rem}.info-row{border-bottom:1px solid var(--color-border);padding:1rem 0;display:flex}.info-row:last-child{border-bottom:none}.info-label{width:40%;color:var(--color-text-muted);font-weight:500}.info-value{width:60%;color:var(--color-text-main);font-weight:600}.tests-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;width:100%;max-width:1000px;margin:0 auto;display:grid}.test-card{background:var(--color-surface);border:1px splid var(--color-border);border-radius:var(--radius-lg);flex-direction:column;padding:1.5rem;transition:transform .2s,box-shadow .2s;display:flex}.test-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.test-card.completed{background:#f0fdf4;border-color:#10b981}.test-card-header{justify-content:space-between;align-items:flex-start;margin-bottom:1rem;display:flex}.test-title{color:var(--color-text-main);margin-bottom:.25rem;font-size:1.125rem;font-weight:700}.test-time{color:var(--color-text-muted);border-radius:1rem;padding:.25rem .5rem;font-size:.75rem}.test-summary{color:var(--color-text-muted);flex-grow:1;margin-bottom:1.5rem;font-size:.875rem;line-height:1.4}.btn-start{background:var(--color-primary);color:#fff;border-radius:var(--radius-md);cursor:pointer;border:none;width:100%;padding:.75rem;font-weight:600;transition:background .2s}.btn-start:hover{background:var(--color-primary-hover)}.btn-result{color:#fff;background:var(--color-secondary);border-radius:var(--radius-md);cursor:pointer;border:none;width:100%;padding:.75rem;font-weight:600;transition:background .2s}.btn-result:hover{background:#059669}.btn-disabled{color:#94a3b8;border-radius:var(--radius-md);cursor:not-allowed;background:#e2e8f0;border:none;width:100%;padding:.75rem;font-weight:600}.engine-container{flex-direction:column;width:100%;max-width:700px;min-height:500px;margin:0 auto;display:flex}.progress-wrapper{margin-bottom:2rem}.progress-text{color:var(--color-text-muted);justify-content:space-between;margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:flex}.progress-bar-bg{background:var(--color-border);border-radius:4px;width:100%;height:8px;overflow:hidden}.progress-bar-fill{background:var(--color-primary);height:100%;transition:width .3s}.question-box{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);flex-direction:column;flex:1;padding:2rem;display:flex}.question-text{color:var(--color-text-main);margin-bottom:2rem;font-size:1.25rem;font-weight:600;line-height:1.4}.options-list{flex-direction:column;gap:1rem;display:flex}.option-btn{text-align:left;background:var(--color-bg);border-radius:var(--radius-md);cursor:pointer;width:100%;color:var(--color-text-main);border:2px solid #0000;padding:1rem 1.25rem;font-size:1rem;transition:all .2s}.option-btn:hover{background:#e2e8f0}.option-btn.selected{border-color:var(--color-primary);background:#eff6ff;font-weight:500}.engine-controls{border-top:1px solid var(--color-border);justify-content:flex-end;margin-top:2rem;padding-top:1.5rem;display:flex}.btn-next{background:var(--color-primary);color:#fff;border-radius:var(--radius-md);cursor:pointer;border:none;padding:.75rem 2rem;font-weight:600;transition:background .2s}.btn-next:hover:not(:disabled){background:var(--color-primary-hover)}.btn-next:disabled{opacity:.5;cursor:not-allowed}.result-container{background:var(--color-surface);border-radius:var(--radius-lg);width:100%;max-width:800px;box-shadow:var(--shadow-md);margin:0 auto;overflow:hidden}.result-header{background:var(--color-bg);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;padding:1rem;font-size:.875rem}.result-type{color:var(--color-primary);font-size:2rem;font-weight:800}.result-body{padding:2rem}.result-section{margin-bottom:2rem}.result-section:last-child{margin-bottom:0}.section-title{color:var(--color-text-main);align-items:center;gap:.5rem;font-size:1.125rem;font-weight:700;display:flex}.professions-grid{flex-wrap:wrap;gap:.75rem;display:flex}.profession-tag{color:var(--color-primary-hover);background:#eff6ff;border-radius:2rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500}.famous-list{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;padding:0;list-style:none;display:grid}.famous-item{background:var(--color-bg);border-radius:var(--radius-md);border-left:4px solid #f59e0b;padding:1rem;font-weight:500}.result-actions{border-top:1px solid var(--color-border);justify-content:center;padding:2rem;display:flex}
