:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;text-rendering:optimizelegibility;--ink:#152238;--muted:#758196;--line:#e8edf2;--paper:#fff;--canvas:#f4f7f8;--blue:#4367f5;--blue-dark:#3454db;--tg-bg:#f4f7f8;--telegram-safe-area-top:80px;--telegram-safe-area-bottom:0px;background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;touch-action:manipulation}html,body,#app{background:var(--tg-bg);width:100%;min-height:100%;margin:0}body{min-height:100dvh}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border:0}button:disabled{opacity:.42;cursor:default}.page{width:min(100%,600px);min-height:100dvh;padding:calc(20px + max(env(safe-area-inset-top),var(--telegram-safe-area-top))) 20px calc(24px + max(env(safe-area-inset-bottom),var(--telegram-safe-area-bottom)));margin:0 auto}.loading,.welcome{min-height:100dvh;padding:calc(28px + max(env(safe-area-inset-top),var(--telegram-safe-area-top))) 28px calc(28px + max(env(safe-area-inset-bottom),var(--telegram-safe-area-bottom)));text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex;position:relative}.loading{color:var(--muted);font-size:14px}.brand-mark{color:#fff;background:linear-gradient(145deg,#617cff,#3b58e6);border-radius:22px;place-items:center;width:62px;height:62px;font-size:29px;font-weight:800;display:grid;box-shadow:0 12px 30px #526df03b}.eyebrow{letter-spacing:.16em;color:#8792a5;font-size:10px;font-weight:800}.welcome h1{letter-spacing:-.04em;max-width:310px;margin:8px 0 18px;font-size:26px;line-height:1.2}.stack{gap:10px;width:100%;display:grid}.primary,.secondary{border-radius:16px;justify-content:space-between;align-items:center;gap:14px;min-height:54px;padding:0 18px;font-weight:750;display:flex}.primary{color:#fff;background:linear-gradient(135deg,#4d70ff,#3857e8);box-shadow:0 9px 20px #4768ee2e}.primary:active{background:var(--blue-dark);transform:translateY(1px)}.primary span{flex:none;place-items:center;width:22px;height:22px;font-size:20px;font-weight:400;line-height:1;display:grid}.secondary{border:1px solid var(--line);background:#fff}.home-page{padding-top:calc(28px + max(env(safe-area-inset-top),var(--telegram-safe-area-top)))}.home-header{justify-content:space-between;align-items:flex-start;margin:4px 0 26px;display:flex}.header-controls{flex:none;align-items:center;gap:7px;display:flex}.home-header h1,.page-header h1{letter-spacing:-.045em;margin:7px 0 8px;font-size:28px;line-height:1.1}.home-header p,.subtitle{color:var(--muted);margin:0;font-size:14px;line-height:1.5}.language-toggle{border:1px solid var(--line);background:#fff;border-radius:12px;flex:none;align-items:center;gap:2px;padding:3px;display:flex}.language-toggle button{color:#77849a;background:0 0;border-radius:9px;min-width:34px;height:30px;padding:0 7px;font-size:10px;font-weight:800;line-height:1}.language-toggle button.active{color:#435fe0;background:#e9edff}.theme-toggle{border:1px solid var(--line);color:#475569;background:#fff;border-radius:12px;place-items:center;width:36px;height:36px;padding:0;line-height:0;display:grid}.theme-toggle span{place-items:center;width:20px;height:20px;line-height:0;display:grid}.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block}.gate-controls{justify-content:flex-end;align-items:center;gap:8px;margin-bottom:8px;display:flex}.close-app{border:1px solid var(--line);color:#69758a;background:#fff;border-radius:12px;place-items:center;width:36px;height:36px;font-size:22px;font-weight:400;line-height:1;display:grid}.welcome .close-app{top:calc(12px + max(env(safe-area-inset-top),var(--telegram-safe-area-top)));position:absolute;right:16px}.status{border:1px solid var(--line);color:#56647a;background:#fff;border-radius:14px;align-items:center;gap:9px;min-height:44px;padding:9px 13px;font-size:12px;font-weight:650;display:flex}.status small{color:var(--muted);text-align:right;margin-left:auto;font-size:11px}.status.good{color:#18775d;background:#f1faf6;border-color:#d9f0e6}.dot{background:#28b88c;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #28b88c1a}.muted .dot{background:#f0a748;box-shadow:0 0 0 4px #f0a7481a}.section-heading{color:#818ca0;margin:27px 2px 12px;font-size:12px;font-weight:800}.actions{gap:10px;display:grid}.action-card,.duration-card{text-align:left;border:1px solid var(--line);background:#fff;border-radius:18px;align-items:center;gap:13px;width:100%;min-height:76px;padding:13px;display:flex;box-shadow:0 3px 12px #24385008}.action-card>span:nth-child(2),.duration-card>span{flex:1;gap:5px;display:grid}.action-card b,.duration-card b{font-size:14px;line-height:1.3}.action-card small,.duration-card small{color:var(--muted);font-size:11px}.action-card i,.duration-card i,.topic-row i{color:#a8b1bf;flex:none;place-items:center;width:24px;height:24px;font-size:25px;font-style:normal;font-weight:300;line-height:1;display:grid}.action-icon{border-radius:15px;flex:none;place-items:center;width:46px;height:46px;font-size:20px;font-weight:750;line-height:1;display:grid}.lilac{color:#7964dc;background:#f0edff}.blue{color:#4367ee;background:#eaf0ff}.coral{color:#e57b58;background:#fff0eb}.gold{color:#d29d18;background:#fff5d9}.green{color:#15946b;background:#e8f7f1}.trial-card{background:linear-gradient(145deg,#fff,#eef2ff);border:1px solid #e3e9fc;border-radius:23px;padding:22px;box-shadow:0 12px 28px #1d31540b}.trial-symbol{color:#5267df;background:#e9edff;border-radius:16px;place-items:center;width:46px;height:46px;font-size:22px;font-weight:800;display:grid}.trial-card h2{letter-spacing:-.02em;margin:15px 0 8px;font-size:18px}.trial-card p{color:#647188;margin:0 0 18px;font-size:13px;line-height:1.55}.trial-card .primary{width:100%}.purchase-link{color:#5066d7;background:0 0;justify-content:space-between;align-items:center;width:100%;margin-top:13px;padding:17px 4px;font-size:14px;font-weight:750;display:flex}.purchase-link span{font-size:20px}.app-footer{text-align:center;color:#a4adbb;letter-spacing:.04em;padding-top:22px;font-size:10px}.page-header{align-items:center;gap:13px;margin-bottom:20px;display:flex}.page-header h1{margin:5px 0 0;font-size:23px}.back-button{border:1px solid var(--line);color:#506079;background:#fff;border-radius:14px;flex:none;width:42px;height:42px;font-size:28px;font-weight:300;line-height:1}.page-header>div{flex:1}.subtitle{margin:-5px 0 17px}.topic-list{gap:8px;display:grid}.topic-row{text-align:left;border:1px solid var(--line);background:#fff;border-radius:15px;align-items:center;gap:11px;width:100%;min-height:66px;padding:10px 12px;display:flex}.topic-number{color:#708097;background:#f1f4f8;border-radius:10px;flex:none;place-items:center;width:31px;height:31px;font-size:10px;font-weight:800;display:grid}.topic-title{flex:1;font-size:12px;font-weight:650;line-height:1.35}.topic-count{white-space:nowrap;color:#69758a;background:#f3f5fa;border-radius:9px;padding:6px 8px;font-size:10px;font-weight:700}.duration-list{gap:10px;display:grid}.duration-card{min-height:76px}.quiet-button{color:#77849a;background:0 0;border-radius:14px;width:100%;margin-top:8px;padding:14px;font-size:13px;font-weight:700}.empty-note{text-align:center;color:var(--muted);padding:20px;font-size:13px}.gate-card{margin-top:25px}.question-page{padding-bottom:calc(115px + env(safe-area-inset-bottom))}.question-top{align-items:center;gap:12px;min-height:47px;display:flex}.question-heading{flex:1;gap:3px;display:grid}.question-heading b{font-size:13px}.question-heading i{color:#96a1b2;padding:0 4px;font-style:normal;font-weight:400}.timer{font-variant-numeric:tabular-nums;color:#485dcb;background:#e9edff;border-radius:11px;padding:9px 11px;font-size:14px;font-weight:800}.timer.hidden{visibility:hidden}.progress-track{background:#e6eaf0;border-radius:6px;height:4px;margin:15px 0}.progress-track span{background:linear-gradient(90deg,#4f72ff,#8b9fff);border-radius:6px;height:100%;transition:width .2s;display:block}.question-navigator{overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;width:100%;margin:0 0 13px;overflow-x:auto}.question-navigator::-webkit-scrollbar{display:none}.question-jump-track{gap:8px;width:max-content;padding:2px 3px 5px;display:flex}.question-jump-button{color:#55657b;font-variant-numeric:tabular-nums;scroll-snap-align:center;background:#fff;border:1px solid #d7dfeb;border-radius:11px;flex:0 0 42px;place-items:center;width:42px;height:42px;padding:0;font-size:12px;font-weight:800;line-height:1;transition:transform .14s,border-color .14s,background .14s;display:grid}.question-jump-button:active{transform:scale(.94)}.question-jump-button.current{z-index:1;color:#154fc4;border:2px solid #155eef;position:relative;box-shadow:0 0 0 3px #2563eb2e}.question-jump-button.correct{color:#fff;background:#16a34a;border-color:#07843e}.question-jump-button.wrong{color:#fff;background:#dc2626;border-color:#bd1d24}.question-jump-button.correct.current,.question-jump-button.wrong.current{border:2px solid #155eef;box-shadow:0 0 0 3px #2563eb45}.question-card{border:1px solid var(--line);background:#fff;border-radius:21px;overflow:hidden;box-shadow:0 10px 30px #17264209}.video-frame{background:#111;position:relative}.question-video{aspect-ratio:16/9;object-fit:contain;background:#111;width:100%;max-height:34vh;display:block}.video-error{color:#fff;text-align:center;background:#111;place-items:center;padding:20px;font-size:13px;display:grid;position:absolute;inset:0}.video-error[hidden]{display:none}.video-placeholder{color:#8b97a9;background:#edf0f4;justify-content:center;align-items:center;gap:9px;height:110px;font-size:13px;display:flex}.question-content{padding:19px 16px 20px}.question-content h1{letter-spacing:-.02em;white-space:pre-line;margin:0 0 16px;font-size:17px;line-height:1.45}.answer-list{gap:8px;display:grid}.answer-option{text-align:left;background:#fafbfd;border:1px solid #e8edf3;border-radius:13px;align-items:center;gap:10px;width:100%;min-height:50px;padding:9px 11px;font-size:13px;line-height:1.4;display:flex}.answer-marker{color:#69778d;background:#eff2f7;border-radius:9px;flex:none;place-items:center;width:26px;height:26px;font-size:11px;font-weight:750;display:grid}.answer-option.is-selected{background:#f1f3ff;border-color:#758aff}.answer-option.is-selected .answer-marker{color:#fff;background:#516cf0}.answer-option.is-correct{background:#f0faf6;border-color:#a9e4ce}.answer-option.is-correct .answer-marker{color:#fff;background:#32ad83}.answer-option.is-wrong{background:#fff5f3;border-color:#f3b8b8}.answer-option.is-wrong .answer-marker{color:#fff;background:#e77468}.selected-mark{color:#4f66df;margin-left:auto;font-weight:800}.feedback{align-items:center;gap:8px;margin-top:13px;font-size:13px;display:flex}.feedback>span{border-radius:50%;place-items:center;width:23px;height:23px;font-weight:800;display:grid}.feedback.success{color:#18815f}.feedback.success>span{background:#e6f7ef}.feedback.failure{color:#c85454}.feedback.failure>span{background:#fff0ee}blockquote{color:#657087;background:#f5f6fb;border-left:3px solid #aab8f5;border-radius:0 11px 11px 0;margin:12px 0 0;padding:11px 13px;font-size:12px;line-height:1.5}blockquote b{color:#4d5f87;margin-bottom:4px;display:inline-block}.question-nav{z-index:5;width:min(100%,600px);padding:13px 20px calc(14px + max(env(safe-area-inset-bottom),var(--telegram-safe-area-bottom)));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#f4f7f8ef;border-top:1px solid #dfe5ed;align-items:center;gap:9px;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.question-nav .primary{flex:1;justify-content:center}.nav-secondary{border:1px solid var(--line);color:#596980;background:#fff;border-radius:15px;flex:none;width:50px;height:50px;font-size:24px}.nav-check{flex:1;justify-content:center}.modal-backdrop{z-index:10;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#14203978;place-items:center;padding:25px;display:grid;position:fixed;inset:0}.confirm-modal{text-align:center;background:#fff;border-radius:25px;width:min(100%,360px);padding:24px;box-shadow:0 24px 80px #0f1a3040}.modal-icon{color:#d18d1a;background:#fff2d9;border-radius:15px;place-items:center;width:42px;height:42px;margin:auto;font-size:21px;font-weight:900;display:grid}.confirm-modal h2{margin:15px 0 7px;font-size:19px}.confirm-modal p{color:var(--muted);margin:0 0 18px;font-size:13px;line-height:1.5}.confirm-modal .primary{justify-content:center;width:100%}.result-page{min-height:100dvh;padding:calc(55px + max(env(safe-area-inset-top),var(--telegram-safe-area-top))) 25px calc(30px + max(env(safe-area-inset-bottom),var(--telegram-safe-area-bottom)));text-align:center;flex-direction:column;align-items:center;display:flex}.result-orbit{color:#fff;background:radial-gradient(circle at 30% 20%,#8ca0ff,#536de9);border-radius:36px;place-items:center;width:108px;height:108px;margin:16px auto 22px;font-size:43px;display:grid;box-shadow:0 15px 40px #526bec48}.result-orbit.passed{background:radial-gradient(circle at 30% 20%,#72d6b1,#269c78)}.result-page h1{letter-spacing:-.04em;margin:11px 0 6px;font-size:25px;line-height:1.2}.result-subtitle{color:var(--muted);margin:0;font-size:13px}.score-card{border:1px solid var(--line);background:#fff;border-radius:20px;gap:7px;width:100%;margin:32px 0 12px;padding:20px;display:grid}.score-card span,.score-card small{color:var(--muted);font-size:12px}.score-card>b{letter-spacing:-.05em;color:#425ee5;font-size:38px}.score-card>b i{color:#9aa4b4;font-size:19px;font-style:normal;font-weight:500}.pass-note{color:var(--muted);font-size:12px}.result-home{justify-content:center;width:100%;margin-top:auto}.retry{max-width:260px;margin:20px auto}.error-code{overflow-wrap:anywhere;color:#69758a;background:#fff;border-radius:9px;max-width:100%;padding:8px 11px;font-size:11px}.outside-hint{color:#7d899d;text-align:center;max-width:290px;padding:0 20px;font-size:13px;line-height:1.55;position:absolute;top:60%}@media (width>=600px){body{background:#eaf0f4}.page,.welcome,.loading,.result-page{background:var(--canvas)}.question-nav{border:1px solid var(--line);border-radius:18px;bottom:16px;box-shadow:0 8px 30px #1d315420}}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#edf2fa;--muted:#a3b0c3;--line:#344257;--paper:#1c293a;--canvas:#101824;--blue:#7392ff;--blue-dark:#5578f2;--tg-bg:#101824}html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] #app{background:var(--tg-bg);color:var(--ink)}html[data-theme=dark] .page,html[data-theme=dark] .welcome,html[data-theme=dark] .loading,html[data-theme=dark] .result-page{background:var(--canvas);color:var(--ink)}html[data-theme=dark] .eyebrow,html[data-theme=dark] .section-heading{color:#a3b0c3}html[data-theme=dark] .language-toggle,html[data-theme=dark] .theme-toggle,html[data-theme=dark] .close-app,html[data-theme=dark] .status,html[data-theme=dark] .action-card,html[data-theme=dark] .duration-card,html[data-theme=dark] .secondary,html[data-theme=dark] .back-button,html[data-theme=dark] .topic-row,html[data-theme=dark] .question-card,html[data-theme=dark] .question-jump-button,html[data-theme=dark] .answer-option,html[data-theme=dark] .nav-secondary,html[data-theme=dark] .confirm-modal,html[data-theme=dark] .score-card{color:var(--ink);background:#1b2839;border-color:#35445a}html[data-theme=dark] .language-toggle button{color:#b5c0d1}html[data-theme=dark] .language-toggle button.active{color:#dbe5ff;background:#344674}html[data-theme=dark] .theme-toggle{color:#f5cb68}html[data-theme=dark] .status.good{color:#8de0bd;background:#123d32;border-color:#1c654e}html[data-theme=dark] .status.muted{color:#f4c96e;background:#3a3020;border-color:#685020}html[data-theme=dark] .dot{background:#2ed69a;box-shadow:0 0 0 4px #2ed69a24}html[data-theme=dark] .muted .dot{background:#f0b34f;box-shadow:0 0 0 4px #f0b34f24}html[data-theme=dark] .status small,html[data-theme=dark] .action-card small,html[data-theme=dark] .duration-card small,html[data-theme=dark] .subtitle{color:#a3b0c3}html[data-theme=dark] .action-icon.lilac{color:#c1b4ff;background:#342c55}html[data-theme=dark] .action-icon.blue{color:#a9c0ff;background:#243b69}html[data-theme=dark] .action-icon.coral{color:#ffad90;background:#522f2e}html[data-theme=dark] .action-icon.gold{color:#f5ce68;background:#4a3c21}html[data-theme=dark] .action-icon.green{color:#79d9b6;background:#183f35}html[data-theme=dark] .trial-card{background:linear-gradient(145deg,#202e42,#1b2540);border-color:#34445f}html[data-theme=dark] .trial-symbol{color:#b8c7ff;background:#344674}html[data-theme=dark] .trial-card p{color:#c0cada}html[data-theme=dark] .purchase-link{color:#9db2ff}html[data-theme=dark] .app-footer{color:#8492a8}html[data-theme=dark] .topic-number,html[data-theme=dark] .topic-count{color:#c0cada;background:#29374b}html[data-theme=dark] .topic-title{color:var(--ink)}html[data-theme=dark] .question-heading i{color:#a3b0c3}html[data-theme=dark] .timer{color:#b8c8ff;background:#27375b}html[data-theme=dark] .progress-track{background:#2b374a}html[data-theme=dark] .question-jump-button{color:#c0cada;background:#1b2839;border-color:#46566d}html[data-theme=dark] .question-jump-button.current{color:#dce6ff;background:#2b3d66;border-color:#86a2ff}html[data-theme=dark] .question-jump-button.correct{color:#fff;background:#16a34a;border-color:#36d878}html[data-theme=dark] .question-jump-button.wrong{color:#fff;background:#dc2626;border-color:#f66}html[data-theme=dark] .question-jump-button.correct.current,html[data-theme=dark] .question-jump-button.wrong.current{border-color:#b6c8ff;box-shadow:0 0 0 3px #8aa8ff55}html[data-theme=dark] .video-placeholder{color:#a3b0c3;background:#1b2839}html[data-theme=dark] .answer-option{background:#1b2839;border-color:#35445a}html[data-theme=dark] .answer-marker{color:#d3dceb;background:#2b394e}html[data-theme=dark] .answer-option.is-selected{background:#29385f;border-color:#829cff}html[data-theme=dark] .answer-option.is-selected .answer-marker{color:#fff;background:#526fe2}html[data-theme=dark] .answer-option.is-correct{color:#d7ffea;background:#124a34;border-color:#22a568}html[data-theme=dark] .answer-option.is-correct .answer-marker{color:#fff;background:#168653}html[data-theme=dark] .answer-option.is-wrong{color:#ffe0e0;background:#521f27;border-color:#c4474d}html[data-theme=dark] .answer-option.is-wrong .answer-marker{color:#fff;background:#ba343b}html[data-theme=dark] .selected-mark{color:#b8c8ff}html[data-theme=dark] .feedback.success{color:#75ddb2}html[data-theme=dark] .feedback.success>span{background:#174835}html[data-theme=dark] .feedback.failure{color:#ff9292}html[data-theme=dark] .feedback.failure>span{background:#4b242a}html[data-theme=dark] blockquote{color:#c0cada;background:#202d40;border-left-color:#7795ff}html[data-theme=dark] blockquote b{color:#b8c8ff}html[data-theme=dark] .question-nav{background:#101824ed;border-color:#344257}html[data-theme=dark] .quiet-button{color:#a3b0c3}html[data-theme=dark] .modal-backdrop{background:#050a12bd}html[data-theme=dark] .modal-icon{color:#f3c267;background:#49371e}html[data-theme=dark] .confirm-modal p,html[data-theme=dark] .score-card span,html[data-theme=dark] .score-card small,html[data-theme=dark] .result-subtitle,html[data-theme=dark] .pass-note{color:#a3b0c3}html[data-theme=dark] .score-card>b{color:#a8baff}html[data-theme=dark] .score-card>b i{color:#a3b0c3}html[data-theme=dark] .error-code{color:#c0cada;background:#1b2839}html[data-theme=dark] .outside-hint{color:#a3b0c3}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
