
{"id":3248,"date":"2026-11-14T16:41:47","date_gmt":"2026-11-14T14:41:47","guid":{"rendered":"https:\/\/azucha.bg\/?page_id=3248"},"modified":"2026-11-14T17:30:47","modified_gmt":"2026-11-14T15:30:47","slug":"%d0%b1%d0%b5%d0%b7%d0%bf%d0%bb%d0%b0%d1%82%d0%bd%d0%b0-%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d0%bd%d0%b0-%d0%b5%d1%81%d0%b5-%d0%b8-%d0%bf%d0%b8%d1%81%d0%bc%d0%be-%d0%b7%d0%b0-%d0%bc%d0%b0","status":"publish","type":"page","link":"https:\/\/azucha.bg\/?page_id=3248","title":{"rendered":"\u0411\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u043e \u0434\u0435\u043c\u043e: \u043e\u043d\u043b\u0430\u0439\u043d \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u043f\u043e \u0447\u0443\u0436\u0434 \u0435\u0437\u0438\u043a \u0441 \u0438\u0437\u043a\u0443\u0441\u0442\u0432\u0435\u043d \u0438\u043d\u0442\u0435\u043b\u0435\u043a\u0442"},"content":{"rendered":"\n<p>\u0412\u0438\u0436\u0442\u0435 \u0431\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u043e \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438 AI \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430\u0442\u0430 \u0437\u0430 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430 \u043f\u043e \u0447\u0443\u0436\u0434 \u0435\u0437\u0438\u043a: <strong>\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430<\/strong> \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u0430 \u041c\u041e\u041d \u0438 <strong>\u0431\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435 \u043f\u0438\u0441\u043c\u043e \u0438\u043b\u0438 \u0435\u0441\u0435<\/strong> \u2013 \u0441 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u0442\u0435 \u0438 \u043e\u0431\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u043d\u0430 \u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438. \u0417\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438, \u043d\u0435\u043c\u0441\u043a\u0438, \u0440\u0443\u0441\u043a\u0438, \u0444\u0440\u0435\u043d\u0441\u043a\u0438, \u0438\u0442\u0430\u043b\u0438\u0430\u043d\u0441\u043a\u0438 \u0438 \u0438\u0441\u043f\u0430\u043d\u0441\u043a\u0438, \u043d\u0438\u0432\u0430 B2, B1 \u0438 B1.1.<\/p>\n\n\n<style>.azm{--p:#6868ac;--pd:#4e4e8f;--pl:#f3f3fb;--bd:#dcdcf0;--ok:#2e7d4f;--warn:#b26a00;--bad:#b23b3b;font-family:system-ui,-apple-system,\"Segoe UI\",Roboto,Arial,sans-serif;color:#222;line-height:1.5;max-width:880px;margin:0 auto;text-align:left}\n.azm *{box-sizing:border-box}\n.azm .card{background:#fff;border:1px solid var(--bd);border-radius:16px;padding:16px;margin:12px 0}\n.azm h2{font-size:20px;color:var(--pd);margin:2px 0 10px;text-transform:none}\n.azm h3{font-size:16px;color:var(--pd);margin:16px 0 8px;text-transform:none}\n.azm .lbl{display:block;font-weight:700;font-size:14px;color:var(--pd);margin:0 0 6px}\n.azm .chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}\n.azm .chip{border:1px solid var(--bd);background:#fff;border-radius:22px;padding:7px 13px;font-size:14px;cursor:pointer;color:#333;line-height:1.3}\n.azm .chip.on{background:var(--p);border-color:var(--p);color:#fff;font-weight:600}\n.azm .chip small{display:block;font-size:11px;opacity:.85;font-weight:400}\n.azm .tabs{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 4px}\n.azm .tab{flex:1 1 140px;border:1px solid var(--bd);background:#fff;border-radius:12px;padding:10px;font-weight:700;color:var(--pd);cursor:pointer;font-size:15px}\n.azm .tab.on{background:var(--p);color:#fff;border-color:var(--p)}\n.azm .task{background:var(--pl);border-radius:12px;padding:13px 15px;white-space:pre-wrap;font-size:15px}\n.azm .meta{font-size:13px;color:#666;margin-top:8px}.azm .meta b{color:var(--pd)}\n.azm .btn{display:inline-block;border:0;border-radius:12px;padding:10px 17px;font-weight:700;font-size:15px;cursor:pointer;background:var(--p);color:#fff;text-decoration:none}\n.azm .btn.sec{background:#fff;color:var(--p);border:1px solid var(--p)}\n.azm .btn:disabled{opacity:.5;cursor:default}\n.azm .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}\n.azm textarea,.azm input[type=text]{width:100%;border:1px solid var(--bd);border-radius:12px;padding:12px;font-size:16px;font-family:inherit;line-height:1.5}\n.azm textarea{min-height:230px;resize:vertical}\n.azm .wc{font-size:14px;font-weight:600}.azm .wc.ok{color:var(--ok)}.azm .wc.warn{color:var(--warn)}.azm .wc.bad{color:var(--bad)}\n.azm .big{font-size:42px;font-weight:800;color:var(--pd);line-height:1}.azm .big small{font-size:19px;color:#666;font-weight:600}\n.azm .bar{height:8px;background:#ececf6;border-radius:6px;overflow:hidden;margin-top:4px}.azm .bar i{display:block;height:100%;background:var(--p)}\n.azm .crit{display:grid;grid-template-columns:1fr auto;gap:3px 12px;margin:6px 0 10px}\n.azm .crit .n{font-weight:600;font-size:14px}.azm .crit .v{font-weight:700;color:var(--pd);font-size:14px;white-space:nowrap}.azm .crit .c{grid-column:1\/3;font-size:14px;color:#444;margin-bottom:7px}\n.azm .mist{border-left:4px solid var(--bad);background:#fff6f6;border-radius:8px;padding:9px 12px;margin:7px 0;font-size:14px}\n.azm .mist .o{text-decoration:line-through;color:var(--bad)}.azm .mist .f{color:var(--ok);font-weight:700}\n.azm .better{background:#f4fbf6;border:1px solid #cfe9d8;border-radius:12px;padding:13px;white-space:pre-wrap;font-size:15px}\n.azm ul.l{margin:6px 0;padding-left:20px}\n.azm .note{font-size:12.5px;color:#666;margin-top:10px}\n.azm .err{color:var(--bad);font-weight:600}\n.azm .lock{background:linear-gradient(135deg,#6868ac,#4e4e8f);color:#fff;border-radius:14px;padding:16px;margin-top:14px}\n.azm .lock a{background:#fff;color:var(--pd)!important;margin-top:10px}\n.azm .blur{filter:blur(4px);user-select:none;pointer-events:none}\n.azm .spin{display:inline-block;width:15px;height:15px;border:3px solid #fff;border-right-color:transparent;border-radius:50%;animation:azms .8s linear infinite;vertical-align:-3px;margin-right:6px}\n.azm .btn.sec .spin{border-color:var(--p);border-right-color:transparent}\n@keyframes azms{to{transform:rotate(360deg)}}\n.azm .rtext{background:#fafaff;border:1px solid var(--bd);border-radius:12px;padding:13px;white-space:pre-wrap;font-size:15px;margin:8px 0}\n.azm .q{border-top:1px solid #eee;padding:10px 0}\n.azm .q .qt{font-weight:600;margin-bottom:6px}\n.azm .opt{display:block;border:1px solid var(--bd);border-radius:10px;padding:8px 11px;margin:5px 0;cursor:pointer;font-size:15px;background:#fff}\n.azm .opt.on{border-color:var(--p);background:var(--pl);font-weight:600}\n.azm .opt.good{border-color:var(--ok);background:#effaf3}.azm .opt.badc{border-color:var(--bad);background:#fff3f3}\n.azm .ex{font-size:13.5px;color:#444;background:#fffbe9;border-radius:8px;padding:7px 10px;margin-top:6px}\n.azm .timer{font-weight:800;color:var(--pd);font-size:18px}\n.azm .log{max-height:460px;overflow:auto;padding:4px}\n.azm .msg{max-width:88%;padding:10px 13px;border-radius:14px;margin:7px 0;white-space:pre-wrap;font-size:15px}\n.azm .msg.ai{background:var(--pl);border-bottom-left-radius:4px}.azm .msg.me{background:var(--p);color:#fff;margin-left:auto;border-bottom-right-radius:4px}\n.azm table.h{width:100%;border-collapse:collapse;font-size:14px}.azm table.h td,.azm table.h th{border-bottom:1px solid #eee;padding:7px 5px;text-align:left}\n.azm .hide{display:none!important}\n.azm button.chip,.azm button.tab{background:#fff!important;color:#333!important;border:1px solid var(--bd)!important;font-size:14px!important;padding:7px 13px!important;text-transform:none!important;box-shadow:none!important;margin:0!important;width:auto!important;height:auto!important;line-height:1.3!important}\n.azm button.tab{color:var(--pd)!important;font-size:15px!important;padding:10px!important;font-weight:700!important}\n.azm button.chip.on,.azm button.tab.on{background:var(--p)!important;border-color:var(--p)!important;color:#fff!important;font-weight:600!important}\n.azm .btn,.azm button.btn{background:var(--p)!important;color:#fff!important;border:0!important;font-size:15px!important;padding:10px 17px!important;text-transform:none!important;box-shadow:none!important;width:auto!important;height:auto!important;line-height:1.3!important}\n.azm .btn.sec,.azm button.btn.sec{background:#fff!important;color:var(--p)!important;border:1px solid var(--p)!important}\n.azm .lock a.btn{background:#fff!important;color:var(--pd)!important}\n.azm .btn:disabled{opacity:.55!important}<\/style>\n<div class=\"azm\"><div id=\"azm-app\"><\/div><\/div>\n<script>window.AZM_CFG={\"url\":\"https:\\\/\\\/azucha.bg\\\/?rest_route=\\\/azm\\\/v1\\\/ai\",\"nonce\":\"00e58d9332\",\"page\":3248,\"demo\":true,\"admin\":false,\"buy\":\"https:\\\/\\\/azucha.bg\\\/?p=3250\"};<\/script>\n<script>(function(){\nconst C=window.AZM_CFG,app=document.getElementById('azm-app');if(!app)return;\nconst LANGS=[{k:'en',n:'\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438'},{k:'de',n:'\u041d\u0435\u043c\u0441\u043a\u0438'},{k:'ru',n:'\u0420\u0443\u0441\u043a\u0438'},{k:'fr',n:'\u0424\u0440\u0435\u043d\u0441\u043a\u0438'},{k:'it',n:'\u0418\u0442\u0430\u043b\u0438\u0430\u043d\u0441\u043a\u0438'},{k:'es',n:'\u0418\u0441\u043f\u0430\u043d\u0441\u043a\u0438'}];\nconst LEVELS=[{k:'B2',d:'\u0438\u043d\u0442\u0435\u043d\u0437\u0438\u0432\u043d\u043e \/ \u0440\u0430\u0437\u0448\u0438\u0440\u0435\u043d\u043e'},{k:'B1',d:'\u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u0430\u043d\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430'},{k:'B1.1',d:'\u043e\u0431\u0449\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u043d\u0430'}];\nconst FMT={'B2':[{type:'\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u043d\u043e \u043f\u0438\u0441\u043c\u043e',min:120,max:130,pts:20,crit:[5,3,4,4,2,2]},{type:'\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u0442\u0438\u0432\u043d\u043e \u0435\u0441\u0435 (\u043c\u043d\u0435\u043d\u0438\u0435)',min:200,max:220,pts:30,crit:[7,4,6,7,3,3]}],\n 'B1':[{type:'\u041f\u0438\u0441\u043c\u043e \/ \u0438\u043c\u0435\u0439\u043b',min:100,max:110,pts:15,crit:[4,2,3,3,2,1]},{type:'\u041e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0435\u043d \u0438\u043b\u0438 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043d \u0442\u0435\u043a\u0441\u0442',min:120,max:130,pts:25,crit:[6,3,5,5,3,3]}]};FMT['B1.1']=FMT['B1'];\nconst READ={'B2':{mc:11,sa:7,pts:25,full:100,pass:30},'B1':{mc:10,sa:5,pts:20,full:80,pass:24}};READ['B1.1']=READ['B1'];\nconst CRIT=['\u0421\u044a\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u0442\u0435\u043c\u0430\u0442\u0430, \u0441\u0432\u044a\u0440\u0437\u0430\u043d\u043e\u0441\u0442 \u0438 \u043b\u043e\u0433\u0438\u043a\u0430','\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430','\u041b\u0435\u043a\u0441\u0438\u043a\u0430 \u2013 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u0430 \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u0430 \u0438 \u0431\u043e\u0433\u0430\u0442\u0441\u0442\u0432\u043e','\u0413\u0440\u0430\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e\u0441\u0442','\u0421\u043f\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043e\u0431\u0435\u043c\u0430 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430','\u041f\u0440\u0430\u0432\u043e\u043f\u0438\u0441'];\nconst SAMPLE={'B2':[\"You are Maria \/ Martin Georgieva. Your town council plans to close the only public library in your neighbourhood. Write a formal letter to the mayor in which you ask him\/her to keep the library open. Include:\\n\u2022 why the library is important for young people and the community;\\n\u2022 what activities could make it more attractive;\\n\u2022 how the library could be financed.\\nStart and finish the letter in an appropriate way.\",\"More and more teenagers spend several hours a day playing video games.\\nWrite an essay to express your opinion about this topic and support it with arguments including:\\n\u2022 the possible benefits of video games;\\n\u2022 the effects on health and school results;\\n\u2022 the role of parents and schools.\"],\n 'B1':[\"Your English friend Tom wants to visit Bulgaria this summer and has asked you for advice.\\nWrite an email to Tom and tell him:\\n\u2022 the best time to come and why;\\n\u2022 which places he should visit;\\n\u2022 what you can do together.\\nStart and finish the email in an appropriate way.\",\"Describe a day you will never forget. Write about:\\n\u2022 when and where it happened;\\n\u2022 who you were with and what happened;\\n\u2022 why this day is so special for you.\"]};\nconst EX={prompt:SAMPLE.B2[1],text:\"Nowadays many teenagers are playing video games for many hours every day. In my opinion, video games have both good and bad sides, but the bad sides are more important if we don't control them.\\n\\nFirst of all, video games can be usefull. Some games develop logical thinking and quick reactions, and online games help young people to make friends and practise their English. For example, my cousin learned a lot of new words by playing with players from other countries.\\n\\nHowever, spending too much time in front of the screen is bad for the health. Teenagers who play all night don't sleep enough and they can't concentrate at school, so their marks become worst. Also they move less and some of them have problems with their eyes and back.\\n\\nIn my view, parents and schools has an important role. Parents should set rules, for example no games after ten o'clock, and they should talk with their children instead of only forbid. Schools could organise more sports and clubs, so students have interesting alternatives.\\n\\nTo sum up, video games are not dangerous by itself, but we must use them in moderation. If parents, schools and teenagers work together, games can be a fun hobby and not a problem.\",\n r:{criteria:[{score:6,comment:\"\u0422\u0435\u043c\u0430\u0442\u0430 \u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0430 \u043f\u043e \u0432\u0441\u0438\u0447\u043a\u0438 \u0442\u0440\u0438 \u043e\u043f\u043e\u0440\u043d\u0438 \u0442\u043e\u0447\u043a\u0438, \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u0442\u0430 \u0435 \u044f\u0441\u043d\u0430 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u043d\u0430. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438\u0442\u0435 \u0431\u0438\u0445\u0430 \u043c\u043e\u0433\u043b\u0438 \u0434\u0430 \u0441\u0430 \u043c\u0430\u043b\u043a\u043e \u043f\u043e-\u0437\u0430\u0434\u044a\u043b\u0431\u043e\u0447\u0435\u043d\u0438.\"},{score:4,comment:\"\u042f\u0441\u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430: \u0443\u0432\u043e\u0434 \u0441 \u0442\u0435\u0437\u0430, \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0438 \u0430\u0431\u0437\u0430\u0446\u0430 \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.\"},{score:4.5,comment:\"\u0414\u043e\u0431\u044a\u0440 \u0440\u0435\u0447\u043d\u0438\u043a \u0437\u0430 \u043d\u0438\u0432\u043e B2 (in moderation, alternatives, concentrate), \u043d\u043e \u0438\u043c\u0430 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (worst, usefull) \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f (many, bad).\"},{score:5,comment:\"\u041a\u0430\u0442\u043e \u0446\u044f\u043b\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043d\u043e \u0438\u043c\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0441\u044a\u0433\u043b\u0430\u0441\u0443\u0432\u0430\u043d\u0435\u0442\u043e (schools has) \u0438 \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0438\u0442\u0435 \u0441\u043b\u0435\u0434 instead of \u0438 by itself.\"},{score:3,comment:\"\u041e\u0431\u0435\u043c\u044a\u0442 \u0435 \u0432 \u0440\u0430\u043c\u043a\u0438\u0442\u0435 \u043d\u0430 200\u2013220 \u0434\u0443\u043c\u0438 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u044a\u0442 \u043d\u0430 \u0435\u0441\u0435 \u0435 \u0441\u043f\u0430\u0437\u0435\u043d.\"},{score:2,comment:\"\u0415\u0434\u043d\u0430 \u043f\u0440\u0430\u0432\u043e\u043f\u0438\u0441\u043d\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 (usefull).\"}],\n summary:\"\u041c\u043d\u043e\u0433\u043e \u0434\u043e\u0431\u0440\u043e \u0435\u0441\u0435 \u0441 \u044f\u0441\u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0438 \u043b\u043e\u0433\u0438\u0447\u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430. \u0421 \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u043d\u0435 \u043d\u0430 \u043d\u044f\u043a\u043e\u043b\u043a\u043e\u0442\u043e \u0433\u0440\u0430\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438 \u043b\u0435\u043a\u0441\u0438\u043a\u0430\u043b\u043d\u0438 \u0433\u0440\u0435\u0448\u043a\u0438 \u0442\u0435\u043a\u0441\u0442\u044a\u0442 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430.\",\n points_covered:[{point:\"\u041f\u043e\u043b\u0437\u0438\u0442\u0435 \u043e\u0442 \u0432\u0438\u0434\u0435\u043e\u0438\u0433\u0440\u0438\u0442\u0435\",covered:true},{point:\"\u0412\u043b\u0438\u044f\u043d\u0438\u0435\u0442\u043e \u0432\u044a\u0440\u0445\u0443 \u0437\u0434\u0440\u0430\u0432\u0435\u0442\u043e \u0438 \u0443\u0441\u043f\u0435\u0445\u0430 \u0432 \u0443\u0447\u0438\u043b\u0438\u0449\u0435\",covered:true},{point:\"\u0420\u043e\u043b\u044f\u0442\u0430 \u043d\u0430 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438\u0442\u0435 \u0438 \u0443\u0447\u0438\u043b\u0438\u0449\u0435\u0442\u043e\",covered:true}],\n mistakes:[{original:\"usefull\",fix:\"useful\",why:\"\u041d\u0430\u0441\u0442\u0430\u0432\u043a\u0430\u0442\u0430 -ful \u0441\u0435 \u043f\u0438\u0448\u0435 \u0441 \u0435\u0434\u043d\u043e l.\",type:\"\u043f\u0440\u0430\u0432\u043e\u043f\u0438\u0441\"},{original:\"their marks become worst\",fix:\"their marks get worse\",why:\"\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u043d\u0430 \u0441\u0442\u0435\u043f\u0435\u043d (\u043f\u043e-\u043b\u043e\u0448\u0438) \u0435 worse; worst \u0435 \u043f\u0440\u0435\u0432\u044a\u0437\u0445\u043e\u0434\u043d\u0430 \u0441\u0442\u0435\u043f\u0435\u043d (\u043d\u0430\u0439-\u043b\u043e\u0448\u0438).\",type:\"\u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430\"},{original:\"parents and schools has\",fix:\"parents and schools have\",why:\"\u041f\u0440\u0438 \u0434\u0432\u0430 \u043f\u043e\u0434\u043b\u043e\u0433\u0430, \u0441\u0432\u044a\u0440\u0437\u0430\u043d\u0438 \u0441 and, \u0433\u043b\u0430\u0433\u043e\u043b\u044a\u0442 \u0435 \u0432 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043e \u0447\u0438\u0441\u043b\u043e.\",type:\"\u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430\"},{original:\"instead of only forbid\",fix:\"instead of only forbidding\",why:\"\u0421\u043b\u0435\u0434 \u043f\u0440\u0435\u0434\u043b\u043e\u0433 (instead of) \u0433\u043b\u0430\u0433\u043e\u043b\u044a\u0442 \u0435 \u0441 -ing.\",type:\"\u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430\"},{original:\"not dangerous by itself\",fix:\"not dangerous in themselves\",why:\"\u041f\u043e\u0434\u043b\u043e\u0433\u044a\u0442 video games \u0435 \u0432 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043e \u0447\u0438\u0441\u043b\u043e, \u0437\u0430\u0442\u043e\u0432\u0430 \u043c\u0435\u0441\u0442\u043e\u0438\u043c\u0435\u043d\u0438\u0435\u0442\u043e \u0441\u044a\u0449\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0435 \u0432 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043e.\",type:\"\u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430\"},{original:\"are playing video games for many hours every day\",fix:\"play video games for hours every day\",why:\"\u0417\u0430 \u043d\u0430\u0432\u0438\u0446\u0438 \u0438 \u043f\u043e\u0432\u0442\u0430\u0440\u044f\u0449\u0438 \u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 Present Simple, \u043d\u0435 Present Continuous.\",type:\"\u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430\"}],\n improved:\"Nowadays many teenagers play video games for hours every day. In my opinion, video games have both advantages and disadvantages, but the risks become serious if gaming is not controlled.\\n\\nFirst of all, video games can be useful. Some games develop logical thinking and quick reactions, and online games help young people make friends and practise their English. For example, my cousin learned a lot of new vocabulary by playing with gamers from other countries.\\n\\nHowever, spending too much time in front of a screen harms our health. Teenagers who play all night do not get enough sleep and cannot concentrate at school, so their marks get worse. They also move less, and some develop problems with their eyes and back.\\n\\nIn my view, parents and schools have an important role to play. Parents should set clear rules, for example no games after ten o'clock, and talk to their children instead of simply forbidding gaming. Schools could organise more sports activities and clubs, so that students have attractive alternatives.\\n\\nTo sum up, video games are not dangerous in themselves, but they must be used in moderation. If parents, schools and teenagers work together, gaming can remain an enjoyable hobby rather than a problem.\",\n tips:[\"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u0439 \u0441\u044a\u0433\u043b\u0430\u0441\u0443\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043b\u043e\u0433\u0430 \u0438 \u0433\u043b\u0430\u0433\u043e\u043b\u0430 \u2013 \u043e\u0441\u043e\u0431\u0435\u043d\u043e \u043f\u0440\u0438 \u0434\u0432\u0430 \u043f\u043e\u0434\u043b\u043e\u0433\u0430 \u0441 and.\",\"\u0412\u043d\u0438\u043c\u0430\u0432\u0430\u0439 \u0441\u044a\u0441 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u043d\u0430\u0442\u0430 \u0441\u0442\u0435\u043f\u0435\u043d: bad \u2192 worse \u2192 the worst.\",\"\u0414\u043e\u0431\u0430\u0432\u0438 \u043f\u043e \u0435\u0434\u0438\u043d \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u043b\u0438 \u0444\u0430\u043a\u0442 \u043a\u044a\u043c \u0432\u0441\u0435\u043a\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u2013 \u0442\u043e\u0432\u0430 \u0432\u0434\u0438\u0433\u0430 \u0442\u043e\u0447\u043a\u0438\u0442\u0435 \u0437\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435.\"]}};\nlet S={lang:'en',level:'B2',task:0,tab:'write',prompts:{},busy:false,mock:null,chat:[]};\ntry{const s=JSON.parse(localStorage.getItem('azm_s')||'{}');if(s.lang)S.lang=s.lang;if(s.level)S.level=s.level}catch(e){}\nconst save=()=>{try{localStorage.setItem('azm_s',JSON.stringify({lang:S.lang,level:S.level}))}catch(e){}};\nconst esc=s=>String(s??'').replace(\/[&<>\"]\/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]));\nconst words=s=>(String(s).trim().match(\/[^\\s]+\/g)||[]).length;\nconst num=x=>(Math.round((+x||0)*10)\/10).toLocaleString('bg-BG');\nconst ERR={azm_limit:'\u0414\u043e\u0441\u0442\u0438\u0433\u043d\u0430\u0442 \u0435 \u0434\u043d\u0435\u0432\u043d\u0438\u044f\u0442 \u043b\u0438\u043c\u0438\u0442. \u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e \u0443\u0442\u0440\u0435.',azm_demo:'\u0411\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u0430\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u0430 \u0434\u043d\u0435\u0441 \u0432\u0435\u0447\u0435 \u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0430. \u041e\u0442\u043a\u043b\u044e\u0447\u0435\u0442\u0435 \u043f\u044a\u043b\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f, \u0437\u0430 \u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u0442\u0435 \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435.',azm_locked:'\u0414\u043e\u0441\u0442\u044a\u043f\u044a\u0442 \u0435 \u0438\u0437\u0442\u0435\u043a\u044a\u043b \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0442\u0430 \u0435 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0430.',azm_code:'\u041d\u0435\u0432\u0430\u043b\u0438\u0434\u0435\u043d \u043a\u043e\u0434 \u0437\u0430 \u0434\u043e\u0441\u0442\u044a\u043f. \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432 \u0438\u043c\u0435\u0439\u043b\u0430.',azm_device:'\u041c\u043e\u043b\u044f, \u0432\u043b\u0435\u0437\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e \u0441 \u043b\u0438\u0447\u043d\u0438\u044f \u0441\u0438 \u043a\u043e\u0434.',azm_devices:'\u0422\u043e\u0437\u0438 \u043a\u043e\u0434 \u0432\u0435\u0447\u0435 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u043d\u0430 2 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043d\u0443\u0436\u0434\u0430 \u043e\u0442 \u043f\u043e\u043c\u043e\u0449, \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0435\u0442\u0435 \u043d\u0430 \u0438\u043c\u0435\u0439\u043b\u0430 \u0441 \u043a\u043e\u0434\u0430.',azm_expired:'\u0421\u0440\u043e\u043a\u044a\u0442 \u043d\u0430 \u0434\u043e\u0441\u0442\u044a\u043f\u0430 \u0441 \u0442\u043e\u0437\u0438 \u043a\u043e\u0434 \u0435 \u0438\u0437\u0442\u0435\u043a\u044a\u043b.'};\nfunction lsg(k){try{return localStorage.getItem(k)||''}catch(e){return ''}}function lss(k,v){try{v?localStorage.setItem(k,v):localStorage.removeItem(k)}catch(e){}}\nlet DEV=lsg('azm_dev');if(!DEV){DEV=Array.from(crypto.getRandomValues(new Uint8Array(12)),b=>b.toString(16).padStart(2,'0')).join('');lss('azm_dev',DEV)}\nasync function api(mode,payload,codeOverride){payload=Object.assign({},payload,{code:codeOverride||lsg('azm_code'),dev:DEV});const r=await fetch(C.url,{method:'POST',credentials:'same-origin',headers:Object.assign({'Content-Type':'application\/json'},C.admin?{'X-WP-Nonce':C.nonce}:{}),body:JSON.stringify({mode,page:C.page,payload})});let j={};try{j=await r.json()}catch(e){}if(!r.ok||!j.text){if(!C.demo&&!codeOverride&&['azm_code','azm_device','azm_expired'].includes(j.code)){lss('azm_code','');S.loginMsg=ERR[j.code];setTimeout(draw,0)}const er=new Error(ERR[j.code]||'\u041d\u0435\u0449\u043e \u0441\u0435 \u043e\u0431\u044a\u0440\u043a\u0430. \u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e.');er.code=j.code;throw er}return j.text}\nfunction pj(t){const a=t.indexOf('{'),b=t.lastIndexOf('}');return JSON.parse(t.slice(a,b+1))}\nfunction hist(){try{return JSON.parse(localStorage.getItem('azm_h')||'[]')}catch(e){return[]}}\nfunction addHist(e){try{const h=hist();h.unshift(Object.assign({d:new Date().toLocaleDateString('bg-BG')},e));localStorage.setItem('azm_h',JSON.stringify(h.slice(0,60)))}catch(e){}}\nconst fmt=()=>FMT[S.level][S.task],key=()=>S.lang+'|'+S.level+'|'+S.task,LN=()=>LANGS.find(l=>l.k===S.lang).n;\nfunction chips(items,val,cb){const d=document.createElement('div');d.className='chips';items.forEach(i=>{const b=document.createElement('button');b.type='button';b.className='chip'+(i.v===val?' on':'');b.innerHTML=esc(i.l)+(i.s?`<small>${esc(i.s)}<\/small>`:'');b.onclick=()=>cb(i.v);d.appendChild(b)});return d}\nfunction busyBtn(b,on,txt){b.disabled=on;b.innerHTML=on?'<span class=\"spin\"><\/span>'+txt:txt}\nfunction picker(){const c=document.createElement('div');c.className='card';\n c.insertAdjacentHTML('beforeend','<span class=\"lbl\">\u0415\u0437\u0438\u043a<\/span>');c.appendChild(chips(LANGS.map(l=>({v:l.k,l:l.n})),S.lang,v=>{S.lang=v;save();draw()}));\n c.insertAdjacentHTML('beforeend','<span class=\"lbl\">\u041d\u0438\u0432\u043e \u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430<\/span>');c.appendChild(chips(LEVELS.map(l=>({v:l.k,l:l.k,s:l.d})),S.level,v=>{S.level=v;S.task=0;save();draw()}));return c}\nfunction draw(){app.innerHTML='';\n if(!C.demo&&!C.admin&&!lsg('azm_code')){drawLogin();return}\n if(C.demo){app.appendChild(picker());drawMockDemo();drawWrite(true);drawExample();return}\n app.appendChild(picker());\n const t=document.createElement('div');t.className='tabs';[['write','\u270d\ufe0f \u041f\u0438\u0441\u0430\u043d\u0435'],['mock','\ud83d\udcdd \u041f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430'],['chat','\ud83d\udcac \u0410\u0441\u0438\u0441\u0442\u0435\u043d\u0442'],['prog','\ud83d\udcc8 \u041d\u0430\u043f\u0440\u0435\u0434\u044a\u043a']].forEach(([k,n])=>{const b=document.createElement('button');b.type='button';b.className='tab'+(S.tab===k?' on':'');b.textContent=n;b.onclick=()=>{S.tab=k;draw()};t.appendChild(b)});app.appendChild(t);\n ({write:()=>drawWrite(false),mock:drawMock,chat:drawChat,prog:drawProg})[S.tab]()}\nfunction drawLogin(){const c=document.createElement('div');c.className='card';c.innerHTML='<h2>\u0412\u0445\u043e\u0434 \u0432 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0430<\/h2><p>\u0412\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u043b\u0438\u0447\u043d\u0438\u044f \u0441\u0438 \u043a\u043e\u0434 \u0437\u0430 \u0434\u043e\u0441\u0442\u044a\u043f \u043e\u0442 \u0438\u043c\u0435\u0439\u043b\u0430, \u043a\u043e\u0439\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0445\u0442\u0435 \u0441\u043b\u0435\u0434 \u043f\u043b\u0430\u0449\u0430\u043d\u0435\u0442\u043e.<\/p><input type=\"text\" id=\"azm-code\" placeholder=\"MAT-XXXX-XXXX\" autocomplete=\"off\" style=\"text-transform:uppercase;max-width:320px\"><div class=\"row\"><button type=\"button\" class=\"btn\" id=\"azm-in\">\u0412\u043b\u0435\u0437<\/button><\/div><div id=\"azm-msg\">'+(S.loginMsg?'<p class=\"err\">'+esc(S.loginMsg)+'<\/p>':'')+'<\/div><p class=\"note\">\u041a\u043e\u0434\u044a\u0442 \u0435 \u043b\u0438\u0447\u0435\u043d \u0438 \u0440\u0430\u0431\u043e\u0442\u0438 \u043d\u0430 \u0434\u043e 2 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438 \u043a\u043e\u043c\u043f\u044e\u0442\u044a\u0440). \u041d\u044f\u043c\u0430\u0442\u0435 \u043a\u043e\u0434? <a href=\"'+esc(C.buy)+'\">\u041a\u0443\u043f\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f<\/a>.<\/p>';app.appendChild(c);\n const inp=c.querySelector('#azm-code');const pre=new URLSearchParams(location.search).get('code');if(pre&&!inp.value)inp.value=pre;\n const go=async()=>{const v=inp.value.trim().toUpperCase();if(!v)return;const b=c.querySelector('#azm-in');busyBtn(b,true,'\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u043c\u2026');try{await api('login',{},v);lss('azm_code',v);S.loginMsg='';draw()}catch(er){c.querySelector('#azm-msg').innerHTML='<p class=\"err\">'+esc(er.message)+'<\/p>';busyBtn(b,false,'\u0412\u043b\u0435\u0437')}};\n c.querySelector('#azm-in').onclick=go;inp.onkeydown=e=>{if(e.key==='Enter')go()};if(pre&&!S.autoTried){S.autoTried=1;go()}}\n\/* ---------- writing ---------- *\/\nfunction drawWrite(demo){const c=document.createElement('div');c.className='card';const f=FMT[S.level];\n c.innerHTML='<h2>'+(demo?'\u041f\u0440\u043e\u0431\u0432\u0430\u0439 \u0431\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u043e: \u043f\u0440\u043e\u0432\u0435\u0440\u0438 \u0441\u0432\u043e\u0439 \u0442\u0435\u043a\u0441\u0442':'\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0438\u0441\u043c\u0435\u043d\u0430\u0442\u0430 \u0447\u0430\u0441\u0442')+'<\/h2><span class=\"lbl\">\u0417\u0430\u0434\u0430\u0447\u0430<\/span>';\n c.appendChild(chips(f.map((x,i)=>({v:String(i),l:`\u0417\u0430\u0434\u0430\u0447\u0430 ${i+1}: ${x.type}`,s:`${x.min}\u2013${x.max} \u0434\u0443\u043c\u0438 \u00b7 ${x.pts} \u0442.`})),String(S.task),v=>{S.task=+v;draw()}));\n let p=S.prompts[key()];if(!p&&S.lang==='en')p=SAMPLE[S.level==='B2'?'B2':'B1'][S.task];\n c.insertAdjacentHTML('beforeend',`<div class=\"row\" style=\"margin:0 0 8px\"><b style=\"color:var(--pd)\">\u0423\u0441\u043b\u043e\u0432\u0438\u0435<\/b><button type=\"button\" class=\"btn sec\" id=\"azm-new\" style=\"margin-left:auto;padding:7px 13px;font-size:14px\">\ud83c\udfb2 \u041d\u043e\u0432\u0430 \u0442\u0435\u043c\u0430<\/button><\/div><div class=\"task\" id=\"azm-task\">${p?esc(p):'\u041d\u0430\u0442\u0438\u0441\u043d\u0435\u0442\u0435 \u201e\ud83c\udfb2 \u041d\u043e\u0432\u0430 \u0442\u0435\u043c\u0430\u201c, \u0437\u0430 \u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0430 '+esc(LN().toLowerCase())+' \u0435\u0437\u0438\u043a.'}<\/div><div class=\"meta\">\u041e\u0431\u0435\u043c: <b>${fmt().min}\u2013${fmt().max} \u0434\u0443\u043c\u0438<\/b> \u00b7 \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c: <b>${fmt().pts} \u0442\u043e\u0447\u043a\u0438<\/b><\/div>\n <h3>\u0412\u0430\u0448\u0438\u044f\u0442 \u0442\u0435\u043a\u0441\u0442<\/h3><textarea id=\"azm-txt\" placeholder=\"\u041f\u0438\u0448\u0435\u0442\u0435 \u0442\u0443\u043a\u2026\" spellcheck=\"false\"><\/textarea><div class=\"row\"><span class=\"wc\" id=\"azm-wc\"><\/span><button type=\"button\" class=\"btn\" id=\"azm-chk\" style=\"margin-left:auto\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438 \u0438 \u043e\u0446\u0435\u043d\u0438<\/button><\/div><div id=\"azm-msg\"><\/div>`);\n app.appendChild(c);const res=document.createElement('div');res.id='azm-res';app.appendChild(res);\n const ta=c.querySelector('#azm-txt');const k='azm_d_'+key();try{ta.value=localStorage.getItem(k)||''}catch(e){}\n const wc=()=>{const n=words(ta.value),x=fmt(),e=c.querySelector('#azm-wc');e.textContent=`${n} \u0434\u0443\u043c\u0438 (\u043d\u0443\u0436\u043d\u0438 ${x.min}\u2013${x.max})`;e.className='wc '+(n>=x.min&&n<=x.max?'ok':(n>=x.min*.85&&n<=x.max*1.15?'warn':'bad'))};\n ta.oninput=()=>{wc();try{localStorage.setItem(k,ta.value)}catch(e){}};wc();\n c.querySelector('#azm-new').onclick=async e=>{const b=e.currentTarget;if(S.busy)return;S.busy=true;busyBtn(b,true,'\u0421\u044a\u0441\u0442\u0430\u0432\u044f\u043c\u2026');try{S.prompts[key()]=(await api(demo?'demogen':'gentask',{lang:S.lang,level:S.level,task:S.task})).trim();draw()}catch(er){c.querySelector('#azm-msg').innerHTML=`<p class=\"err\">${esc(er.message)}<\/p>`;busyBtn(b,false,'\ud83c\udfb2 \u041d\u043e\u0432\u0430 \u0442\u0435\u043c\u0430')}S.busy=false};\n c.querySelector('#azm-chk').onclick=async e=>{const b=e.currentTarget,m=c.querySelector('#azm-msg');m.innerHTML='';const text=ta.value.trim(),prompt=c.querySelector('#azm-task').textContent;\n  if(!S.prompts[key()]&&S.lang!=='en'){m.innerHTML='<p class=\"err\">\u041f\u044a\u0440\u0432\u043e \u0432\u0437\u0435\u043c\u0435\u0442\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0441 \u201e\ud83c\udfb2 \u041d\u043e\u0432\u0430 \u0442\u0435\u043c\u0430\u201c.<\/p>';return}\n  if(words(text)<20){m.innerHTML='<p class=\"err\">\u041d\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043f\u043e\u043d\u0435 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0438\u0437\u0440\u0435\u0447\u0435\u043d\u0438\u044f, \u0437\u0430 \u0434\u0430 \u0438\u043c\u0430 \u043a\u0430\u043a\u0432\u043e \u0434\u0430 \u043e\u0446\u0435\u043d\u0438\u043c.<\/p>';return}\n  if(S.busy)return;S.busy=true;busyBtn(b,true,'\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u043c\u2026 (\u0434\u043e 1 \u043c\u0438\u043d\u0443\u0442\u0430)');\n  try{const o=pj(await api(demo?'demo':'check',{lang:S.lang,level:S.level,task:S.task,prompt,text}));report(res,o,fmt(),words(text),demo);if(!demo)addHist({k:'w',lang:S.lang,level:S.level,task:S.task,score:o._total,max:fmt().pts})}\n  catch(er){m.innerHTML=`<p class=\"err\">${esc(er.message)}<\/p>`}\n  S.busy=false;busyBtn(b,false,'\u041f\u0440\u043e\u0432\u0435\u0440\u0438 \u0438 \u043e\u0446\u0435\u043d\u0438')}}\nfunction total(o,f){const cr=(o.criteria||[]).slice(0,6);return Math.min(f.pts,Math.max(0,cr.length===6?cr.reduce((a,x,i)=>a+Math.min(f.crit[i],+x.score||0),0):(+o.total||0)))}\nfunction reportHTML(o,f,n,demo,ex){const tot=total(o,f);o._total=tot;const cr=(o.criteria||[]).slice(0,6);const ms=o.mistakes||[];\n let h=`<div class=\"card\"><h2>${ex?'\u041f\u0440\u0438\u043c\u0435\u0440: \u043e\u0442\u0447\u0435\u0442 \u0437\u0430 \u0435\u0441\u0435 (\u043d\u0438\u0432\u043e B2, \u0437\u0430\u0434\u0430\u0447\u0430 2)':'\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442'}<\/h2><div class=\"row\" style=\"gap:18px;margin:0\"><div class=\"big\">${num(tot)}<small> \/ ${f.pts} \u0442.<\/small><\/div><div style=\"flex:1;min-width:170px\"><div class=\"bar\"><i style=\"width:${Math.round(tot\/f.pts*100)}%\"><\/i><\/div><div class=\"meta\">${n} \u0434\u0443\u043c\u0438 \u00b7 ${esc(f.type)}<\/div><\/div><\/div><p>${esc(o.summary)}<\/p>\n <h3>\u041e\u0446\u0435\u043d\u043a\u0430 \u043f\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u0442\u0435 \u043d\u0430 \u041c\u041e\u041d<\/h3><div class=\"crit\">${cr.map((x,i)=>`<div class=\"n\">${i+1}. ${esc(CRIT[i])}<\/div><div class=\"v\">${num(Math.min(f.crit[i],+x.score||0))} \/ ${f.crit[i]}<\/div><div class=\"c\">${esc(x.comment)}<\/div>`).join('')}<\/div>`;\n if((o.points_covered||[]).length)h+=`<h3>\u041e\u043f\u043e\u0440\u043d\u0438\u0442\u0435 \u0442\u043e\u0447\u043a\u0438 \u043e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u0442\u043e<\/h3><ul class=\"l\">${o.points_covered.map(p=>`<li>${p.covered?'\u2705':'\u274c'} ${esc(p.point)}<\/li>`).join('')}<\/ul>`;\n if(ms.length)h+=`<h3>\u0413\u0440\u0435\u0448\u043a\u0438 \u0438 \u043a\u0430\u043a \u0434\u0430 \u0433\u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u0435<\/h3>${ms.map(m=>`<div class=\"mist\"><span class=\"o\">${esc(m.original)}<\/span> \u2192 <span class=\"f\">${esc(m.fix)}<\/span><br><small><b>${esc(m.type||'')}<\/b> \u00b7 ${esc(m.why)}<\/small><\/div>`).join('')}`;\n if(demo){const more=+o.more_mistakes||0;h+=`<div class=\"lock\"><b>\ud83d\udd12 \u041f\u044a\u043b\u043d\u0438\u044f\u0442 \u043e\u0442\u0447\u0435\u0442 \u0435 \u0432 \u043f\u043b\u0430\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f<\/b><br>${more>0?`\u041e\u0449\u0435 ${more} ${more===1?'\u0433\u0440\u0435\u0448\u043a\u0430':'\u0433\u0440\u0435\u0448\u043a\u0438'} \u0441 \u043e\u0431\u044f\u0441\u043d\u0435\u043d\u0438\u044f, `:''}\u043f\u043e\u0434\u043e\u0431\u0440\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u0441\u044a\u0432\u0435\u0442\u0438 \u043a\u0430\u043a \u0434\u0430 \u0432\u0434\u0438\u0433\u043d\u0435\u0442\u0435 \u0442\u043e\u0447\u043a\u0438\u0442\u0435, \u043f\u0440\u043e\u0431\u043d\u0438 \u043c\u0430\u0442\u0443\u0440\u0438 \u0438 AI \u0430\u0441\u0438\u0441\u0442\u0435\u043d\u0442.<br><a class=\"btn\" href=\"${esc(C.buy)}\">\u041e\u0442\u043a\u043b\u044e\u0447\u0438 \u043f\u044a\u043b\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f<\/a><\/div><div class=\"blur\"><h3>\u041f\u043e\u0434\u043e\u0431\u0440\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/h3><div class=\"better\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<\/div><\/div>`}\n else{if(o.improved)h+=`<h3>\u041f\u043e\u0434\u043e\u0431\u0440\u0435\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/h3><div class=\"better\">${esc(o.improved)}<\/div>`;if((o.tips||[]).length)h+=`<h3>\u041a\u0430\u043a \u0434\u0430 \u0432\u0434\u0438\u0433\u043d\u0435\u0442\u0435 \u0442\u043e\u0447\u043a\u0438\u0442\u0435<\/h3><ul class=\"l\">${o.tips.map(x=>`<li>${esc(x)}<\/li>`).join('')}<\/ul>`}\n return h+`<p class=\"note\">\u041e\u0446\u0435\u043d\u043a\u0430\u0442\u0430 \u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u044a\u0447\u043d\u0430: \u041c\u041e\u041d \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430 \u0441\u0430\u043c\u043e \u043e\u0431\u0449\u0438\u044f \u0431\u0440\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0430 \u0437\u0430\u0434\u0430\u0447\u0430, \u0430 \u043d\u0430 \u0438\u0437\u043f\u0438\u0442\u0430 \u0442\u0435\u043a\u0441\u0442\u044a\u0442 \u0441\u0435 \u043e\u0446\u0435\u043d\u044f\u0432\u0430 \u043e\u0442 \u0434\u0432\u0430\u043c\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u0438.<\/p><\/div>`}\nfunction report(el,o,f,n,demo){el.innerHTML=reportHTML(o,f,n,demo,false);el.scrollIntoView({behavior:'smooth'})}\nfunction drawExample(){const c=document.createElement('div');c.className='card';const f=FMT.B2[1];S.ex=S.ex||{};const E=S.lang==='en'?EX:S.ex[S.lang];\n if(!E){c.innerHTML='<h2>\u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u043a\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u044a\u043b\u043d\u0438\u044f\u0442 \u043e\u0442\u0447\u0435\u0442<\/h2><p class=\"meta\">\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 '+esc(LN().toLowerCase())+' \u0435\u0437\u0438\u043a\u2026<\/p>';app.appendChild(c);if(S.exLoading!==S.lang){const L=S.lang;S.exLoading=L;api('demoex',{lang:L}).then(t=>{S.ex[L]=pj(t);S.exLoading='';if(S.lang===L)draw()}).catch(()=>{S.ex[L]=EX;S.exLoading='';if(S.lang===L)draw()})}return}\n c.innerHTML='<h2>\u041f\u0440\u0438\u043c\u0435\u0440: \u0442\u0430\u043a\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u044a\u043b\u043d\u0438\u044f\u0442 \u043e\u0442\u0447\u0435\u0442<\/h2><p class=\"meta\" style=\"margin-top:0\">\u0415\u0441\u0435 \u043d\u0430 \u0443\u0447\u0435\u043d\u0438\u043a ('+esc(E===EX?'\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438':LN().toLowerCase())+' \u0435\u0437\u0438\u043a, \u043d\u0438\u0432\u043e B2, \u0437\u0430\u0434\u0430\u0447\u0430 2). \u041d\u0430\u0442\u0438\u0441\u043d\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0430\u043a\u0432\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430\u0442\u0435 \u0432 \u043f\u043b\u0430\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f.<\/p><div class=\"task\">'+esc(E.prompt)+'<\/div><h3>\u0422\u0435\u043a\u0441\u0442\u044a\u0442 \u043d\u0430 \u0443\u0447\u0435\u043d\u0438\u043a\u0430<\/h3><div class=\"rtext\">'+esc(E.text)+'<\/div><button type=\"button\" class=\"btn\" id=\"azm-ex\">\u041f\u043e\u043a\u0430\u0436\u0438 \u043f\u044a\u043b\u043d\u0438\u044f \u043e\u0442\u0447\u0435\u0442<\/button><div id=\"azm-exr\"><\/div>';\n app.appendChild(c);c.querySelector('#azm-ex').onclick=e=>{e.currentTarget.remove();c.querySelector('#azm-exr').innerHTML=reportHTML(E.r,f,words(E.text),false,true)}}\n\/* ---------- demo: mock exam sample ---------- *\/\nconst MD={title:'The Night Train',text:\"When Anna boarded the night train to Vienna, she expected to sleep most of the way. Instead, she found herself sharing a compartment with an elderly man who was carrying a violin case and a small bag of oranges. He introduced himself as Mr Novak, a retired music teacher travelling to see his granddaughter perform for the first time.\\n\\nAt first Anna answered his questions politely but briefly; she had an exam the following week and wanted to read her notes. But when the train stopped for almost an hour because of snow on the tracks, Mr Novak opened the case and began to play quietly. Passengers from the corridor gathered at the door, and soon someone started to sing along.\\n\\nBy the time the train moved again, Anna had forgotten all about her notes. She realised that she had learned more about courage and patience from the old man's stories than from any textbook. When they arrived in Vienna, he gave her an orange and wished her luck. Anna still keeps the ticket from that journey in her desk drawer.\",\n q:[{q:'Anna planned to spend most of the journey sleeping.',o:['True','False'],c:0,e:'\u0412\u044f\u0440\u043d\u043e. \u0412 \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u0438\u0448\u0435, \u0447\u0435 \u0442\u044f \u201eexpected to sleep most of the way\u201c \u2013 \u043e\u0447\u0430\u043a\u0432\u0430\u043b\u0430 \u0435 \u0434\u0430 \u0441\u043f\u0438 \u043f\u0440\u0435\u0437 \u043f\u043e\u0432\u0435\u0447\u0435\u0442\u043e \u0432\u0440\u0435\u043c\u0435.'},\n {q:'Mr Novak was travelling to give a concert in Vienna.',o:['True','False'],c:1,e:'\u041d\u0435\u0432\u044f\u0440\u043d\u043e. \u0422\u043e\u0439 \u043f\u044a\u0442\u0443\u0432\u0430, \u0437\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438 \u043a\u0430\u043a \u0432\u043d\u0443\u0447\u043a\u0430 \u043c\u0443 \u0441\u0432\u0438\u0440\u0438 \u0437\u0430 \u043f\u044a\u0440\u0432\u0438 \u043f\u044a\u0442 \u2013 \u043a\u043e\u043d\u0446\u0435\u0440\u0442\u044a\u0442 \u0435 \u043d\u0430 \u0432\u043d\u0443\u0447\u043a\u0430\u0442\u0430, \u043d\u0435 \u043d\u0435\u0433\u043e\u0432.'},\n {q:'At the beginning, Anna was not very interested in talking.',o:['True','False'],c:0,e:'\u0412\u044f\u0440\u043d\u043e. \u0422\u044f \u043e\u0442\u0433\u043e\u0432\u0430\u0440\u044f\u043b\u0430 \u201epolitely but briefly\u201c, \u0437\u0430\u0449\u043e\u0442\u043e \u0438\u0441\u043a\u0430\u043b\u0430 \u0434\u0430 \u043f\u0440\u0435\u0433\u043e\u0432\u0430\u0440\u044f \u0437\u0430 \u0438\u0437\u043f\u0438\u0442\u0430 \u0441\u0438.'},\n {q:'The train stopped because of a technical problem.',o:['True','False'],c:1,e:'\u041d\u0435\u0432\u044f\u0440\u043d\u043e. \u0412\u043b\u0430\u043a\u044a\u0442 \u0441\u043f\u0440\u044f\u043b \u0437\u0430\u0440\u0430\u0434\u0438 \u0441\u043d\u044f\u0433 \u043f\u043e \u0440\u0435\u043b\u0441\u0438\u0442\u0435 (\u201esnow on the tracks\u201c), \u0430 \u043d\u0435 \u0437\u0430\u0440\u0430\u0434\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430 \u043f\u043e\u0432\u0440\u0435\u0434\u0430.'},\n {q:'Anna still has a souvenir from the journey.',o:['True','False'],c:0,e:'\u0412\u044f\u0440\u043d\u043e. \u0422\u044f \u0432\u0441\u0435 \u043e\u0449\u0435 \u043f\u0430\u0437\u0438 \u0431\u0438\u043b\u0435\u0442\u0430 \u043e\u0442 \u043f\u044a\u0442\u0443\u0432\u0430\u043d\u0435\u0442\u043e \u0432 \u0447\u0435\u043a\u043c\u0435\u0434\u0436\u0435\u0442\u043e \u043d\u0430 \u0431\u044e\u0440\u043e\u0442\u043e \u0441\u0438.'}]};\nfunction drawMockDemo(){const c=document.createElement('div');c.className='card';const ans={};const k=S.lang+'|'+S.level;S.md=S.md||{};\n const data=(S.lang==='en'&&S.level==='B2')?MD:S.md[k];const T=(data&&data.q&&data.q[0]&&data.q[0].o)||['True','False'];\n if(!data){c.innerHTML='<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u2013 '+esc(LN())+', \u043d\u0438\u0432\u043e '+esc(S.level)+'<\/h2><p class=\"meta\" style=\"margin-top:0\">\u0412\u0438\u0436\u0442\u0435 \u043a\u0430\u043a \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u0440\u043e\u0431\u043d\u0430\u0442\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u0432 \u043f\u043b\u0430\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f: \u0442\u0435\u043a\u0441\u0442 \u0438 \u0432\u044a\u043f\u0440\u043e\u0441\u0438 \u0437\u0430 \u0437\u0430\u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0435, \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u043e\u0431\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u044f\u043a\u0430 \u0433\u0440\u0435\u0448\u043a\u0430 \u043d\u0430 \u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438.<\/p><button type=\"button\" class=\"btn\" id=\"azm-mdg\">\u041f\u043e\u043a\u0430\u0436\u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 '+esc(LN().toLowerCase())+'<\/button><div id=\"azm-mdm\"><\/div>';app.appendChild(c);\n  c.querySelector('#azm-mdg').onclick=async ev=>{const b=ev.currentTarget;if(S.busy)return;S.busy=true;busyBtn(b,true,'\u041f\u043e\u0434\u0433\u043e\u0442\u0432\u044f\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u2026');try{S.md[k]=pj(await api('demomock',{lang:S.lang,level:S.level}));S.busy=false;draw()}catch(er){c.querySelector('#azm-mdm').innerHTML='<p class=\"err\">'+esc(er.message)+'<\/p>';busyBtn(b,false,'\u041f\u043e\u043a\u0430\u0436\u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 '+LN().toLowerCase());S.busy=false}};return}\n c.innerHTML='<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u2013 '+esc(LN())+', \u043d\u0438\u0432\u043e '+esc(S.level)+' (\u0447\u0435\u0442\u0435\u043d\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 1)<\/h2><p class=\"meta\" style=\"margin-top:0\">\u0422\u0430\u043a\u0430 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430 \u043f\u0440\u043e\u0431\u043d\u0430\u0442\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u0432 \u043f\u043b\u0430\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f. \u041e\u0442\u0433\u043e\u0432\u043e\u0440\u0435\u0442\u0435 \u0438 \u043d\u0430\u0442\u0438\u0441\u043d\u0435\u0442\u0435 \u201e\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u201c.<\/p><div class=\"rtext\"><b>'+esc(data.title)+'<\/b>\\n\\n'+esc(data.text)+'<\/div>'+data.q.map((x,i)=>'<div class=\"q\" data-k=\"'+i+'\"><div class=\"qt\">'+(i+1)+'. '+esc(x.q)+'<\/div>'+x.o.map((o,oi)=>'<label class=\"opt\" data-o=\"'+oi+'\">'+String.fromCharCode(65+oi)+') '+esc(o)+'<\/label>').join('')+'<div class=\"ex hide\"><\/div><\/div>').join('')+'<div class=\"row\"><button type=\"button\" class=\"btn\" id=\"azm-mdc\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438<\/button><span id=\"azm-mds\" class=\"wc\"><\/span><\/div><div id=\"azm-mdl\"><\/div>';\n app.appendChild(c);\n c.querySelectorAll('.q').forEach(q=>q.querySelectorAll('.opt').forEach(o=>o.onclick=()=>{if(c.dataset.done)return;ans[+q.dataset.k]=+o.dataset.o;q.querySelectorAll('.opt').forEach(x=>x.classList.toggle('on',x===o))}));\n c.querySelector('#azm-mdc').onclick=ev=>{c.dataset.done=1;let sc=0;data.q.forEach((x,i)=>{const q=c.querySelector('[data-k=\"'+i+'\"]');q.querySelectorAll('.opt').forEach((o,oi)=>{if(oi===+x.c)o.classList.add('good');else if(ans[i]===oi)o.classList.add('badc')});if(ans[i]===+x.c)sc++;const ex=q.querySelector('.ex');ex.textContent=x.e;ex.classList.remove('hide')});\n  ev.currentTarget.remove();c.querySelector('#azm-mds').textContent='\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442: '+sc+' \/ '+data.q.length;\n  c.querySelector('#azm-mdl').innerHTML='<div class=\"lock\"><b>\ud83d\udd12 \u041f\u044a\u043b\u043d\u0430\u0442\u0430 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u0435 \u0432 \u043f\u043b\u0430\u0442\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f<\/b><br>\u0412\u0441\u0435\u043a\u0438 \u043f\u044a\u0442 \u043d\u043e\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u0430 \u041c\u041e\u041d: 3 \u0442\u0435\u043a\u0441\u0442\u0430 \u0441 \u0432\u044a\u043f\u0440\u043e\u0441\u0438 \u201e\u0432\u044f\u0440\u043d\u043e\/\u043d\u0435\u0432\u044f\u0440\u043d\u043e\u201c, \u0441 \u0438\u0437\u0431\u043e\u0440 \u043d\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u0438 \u0441\u044a\u0441 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d \u043e\u0442\u0433\u043e\u0432\u043e\u0440, \u043f\u043b\u044e\u0441 \u043f\u0438\u0441\u043c\u043e\u0442\u043e \u0438 \u0435\u0441\u0435\u0442\u043e \u2013 \u0441 \u0442\u0430\u0439\u043c\u0435\u0440, \u043e\u0446\u0435\u043d\u043a\u0430 \u0438 \u043e\u0431\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u044f\u043a\u0430 \u0433\u0440\u0435\u0448\u043a\u0430. \u0417\u0430 6 \u0435\u0437\u0438\u043a\u0430 \u0438 \u043d\u0438\u0432\u0430 B2, B1 \u0438 B1.1.<br><a class=\"btn\" href=\"'+esc(C.buy)+'\">\u041e\u0442\u043a\u043b\u044e\u0447\u0438 \u043f\u044a\u043b\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u044a\u043f<\/a><\/div>'}}\n\/* ---------- mock exam ---------- *\/\nfunction drawMock(){const c=document.createElement('div');c.className='card';const R=READ[S.level],f=FMT[S.level];\n if(!S.mock||S.mock.lang!==S.lang||S.mock.level!==S.level){\n  c.innerHTML=`<h2>\u041f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u2013 ${esc(LN())}, \u043d\u0438\u0432\u043e ${S.level}<\/h2><p>\u041d\u043e\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u0441\u0435\u043a\u0438 \u043f\u044a\u0442, \u0432 \u0441\u044a\u0449\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442 \u043a\u0430\u0442\u043e \u0438\u0441\u0442\u0438\u043d\u0441\u043a\u0430\u0442\u0430 \u043c\u0430\u0442\u0443\u0440\u0430:<\/p><ul class=\"l\"><li><b>\u0427\u0435\u0442\u0435\u043d\u0435 \u0441 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435<\/b> \u2013 ${R.mc} \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u0438\u0437\u0431\u043e\u0440 \u043d\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u0438 ${R.sa} \u0441\u044a\u0441 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d \u043e\u0442\u0433\u043e\u0432\u043e\u0440 (${R.pts} \u0442.)<\/li><li><b>\u041f\u0438\u0441\u0430\u043d\u0435<\/b> \u2013 ${f[0].type.toLowerCase()} (${f[0].pts} \u0442.) \u0438 ${f[1].type.toLowerCase()} (${f[1].pts} \u0442.)<\/li><\/ul><p class=\"meta\">\u0427\u0430\u0441\u0442\u0442\u0430 \u201e\u0421\u043b\u0443\u0448\u0430\u043d\u0435\u201c (25 \u0442.) \u043d\u0435 \u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u2013 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u044a\u0442 \u0441\u0435 \u0438\u0437\u0447\u0438\u0441\u043b\u044f\u0432\u0430 \u043e\u0442 \u043e\u0441\u0442\u0430\u043d\u0430\u043b\u0438\u0442\u0435 \u0447\u0430\u0441\u0442\u0438. \u041f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0438\u0442\u0435\u043b\u043d\u043e \u0432\u0440\u0435\u043c\u0435: \u043e\u043a\u043e\u043b\u043e 2 \u0447. 30 \u043c\u0438\u043d.<\/p><button type=\"button\" class=\"btn\" id=\"azm-gm\">\u0417\u0430\u043f\u043e\u0447\u043d\u0438 \u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430<\/button><div id=\"azm-msg\"><\/div>`;\n  app.appendChild(c);c.querySelector('#azm-gm').onclick=async e=>{const b=e.currentTarget;if(S.busy)return;S.busy=true;busyBtn(b,true,'\u0421\u044a\u0441\u0442\u0430\u0432\u044f\u043c \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430\u2026 (1\u20132 \u043c\u0438\u043d\u0443\u0442\u0438)');try{const m=pj(await api('genmock',{lang:S.lang,level:S.level}));S.mock={lang:S.lang,level:S.level,m,ans:{},w:['',''],start:Date.now(),done:false};draw()}catch(er){c.querySelector('#azm-msg').innerHTML=`<p class=\"err\">${esc(er.message)}<\/p>`;busyBtn(b,false,'\u0417\u0430\u043f\u043e\u0447\u043d\u0438 \u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430')}S.busy=false};return}\n const M=S.mock,m=M.m;let qi=0;let h=`<div class=\"row\" style=\"margin:0 0 6px\"><h2 style=\"margin:0\">\u041f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 \u2013 ${esc(LN())}, ${S.level}<\/h2><span class=\"timer\" id=\"azm-tm\" style=\"margin-left:auto\"><\/span><\/div><h3>\u0427\u0430\u0441\u0442 1: \u0427\u0435\u0442\u0435\u043d\u0435 \u0441 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435<\/h3>`;\n (m.texts||[]).forEach((tx,ti)=>{h+=`<div class=\"rtext\">${tx.title?'<b>'+esc(tx.title)+'<\/b>\\n\\n':''}${esc(tx.text)}<\/div>`;(tx.items||[]).forEach(it=>{const k=qi++;it._k=k;h+=`<div class=\"q\" data-k=\"${k}\"><div class=\"qt\">${k+1}. ${esc(it.q)}<\/div>`;\n  if(it.t==='mc'){(it.o||[]).forEach((o,oi)=>{const on=M.ans[k]===oi;let cl='opt'+(on?' on':'');if(M.done){if(oi===+it.c)cl+=' good';else if(on)cl+=' badc'}h+=`<label class=\"${cl}\" data-o=\"${oi}\">${String.fromCharCode(65+oi)}) ${esc(o)}<\/label>`})}\n  else{h+=`<input type=\"text\" data-sa=\"${k}\" value=\"${esc(M.ans[k]||'')}\" ${M.done?'disabled':''} placeholder=\"\u041e\u0442\u0433\u043e\u0432\u043e\u0440\u0435\u0442\u0435 \u0441 \u0435\u0434\u043d\u043e-\u0434\u0432\u0435 \u0438\u0437\u0440\u0435\u0447\u0435\u043d\u0438\u044f\">`;if(M.done)h+=`<div class=\"meta\">\u041f\u0440\u0438\u043c\u0435\u0440\u0435\u043d \u043e\u0442\u0433\u043e\u0432\u043e\u0440: <b>${esc(it.a)}<\/b> \u00b7 ${num(M.sa&&M.sa[k]?M.sa[k].p:0)} \/ 2 \u0442.<\/div>`}\n  if(M.done&&M.ex&&M.ex[k])h+=`<div class=\"ex\">${esc(M.ex[k])}<\/div>`;h+='<\/div>'})});\n h+=`<h3>\u0427\u0430\u0441\u0442 2: \u041f\u0438\u0441\u0430\u043d\u0435<\/h3>`;(m.writing||[]).slice(0,2).forEach((w,wi)=>{h+=`<p><b>\u0417\u0430\u0434\u0430\u0447\u0430 ${wi+1}: ${esc(f[wi].type)}<\/b> (${f[wi].min}\u2013${f[wi].max} \u0434\u0443\u043c\u0438, ${f[wi].pts} \u0442.)<\/p><div class=\"task\">${esc(w.prompt)}<\/div><textarea data-w=\"${wi}\" ${M.done?'disabled':''} style=\"margin-top:8px\">${esc(M.w[wi])}<\/textarea><div class=\"meta\" data-wc=\"${wi}\"><\/div>${M.done&&M.wr&&M.wr[wi]?reportHTML(M.wr[wi],f[wi],words(M.w[wi]),false,false):''}`});\n if(!M.done)h+=`<div class=\"row\"><button type=\"button\" class=\"btn\" id=\"azm-fin\">\u041f\u0440\u0435\u0434\u0430\u0439 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430<\/button><button type=\"button\" class=\"btn sec\" id=\"azm-ab\">\u041e\u0442\u043a\u0430\u0436\u0438<\/button><\/div><div id=\"azm-msg\"><\/div>`;\n else h=resultBox(M)+h+`<div class=\"row\"><button type=\"button\" class=\"btn\" id=\"azm-again\">\u041d\u043e\u0432\u0430 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430<\/button><\/div>`;\n c.innerHTML=h;app.appendChild(c);\n if(!M.done){c.querySelectorAll('.q').forEach(q=>q.querySelectorAll('.opt').forEach(o=>o.onclick=()=>{M.ans[+q.dataset.k]=+o.dataset.o;q.querySelectorAll('.opt').forEach(x=>x.classList.toggle('on',x===o))}));\n  c.querySelectorAll('[data-sa]').forEach(i=>i.oninput=()=>{M.ans[+i.dataset.sa]=i.value});\n  c.querySelectorAll('[data-w]').forEach(t=>{const wi=+t.dataset.w,u=()=>{c.querySelector(`[data-wc=\"${wi}\"]`).textContent=words(t.value)+' \u0434\u0443\u043c\u0438';M.w[wi]=t.value};t.oninput=u;u()});\n  const tm=c.querySelector('#azm-tm');const tick=()=>{if(!document.body.contains(tm)){clearInterval(iv);return}const s=Math.floor((Date.now()-M.start)\/1000);tm.textContent='\u23f1 '+Math.floor(s\/3600)+':'+String(Math.floor(s\/60)%60).padStart(2,'0')+':'+String(s%60).padStart(2,'0')};const iv=setInterval(tick,1000);tick();\n  c.querySelector('#azm-ab').onclick=()=>{S.mock=null;draw()};\n  c.querySelector('#azm-fin').onclick=e=>finishMock(e.currentTarget,c)}\n else c.querySelector('#azm-again').onclick=()=>{S.mock=null;draw()}}\nasync function finishMock(b,c){const M=S.mock,m=M.m,f=FMT[S.level];if(S.busy)return;S.busy=true;busyBtn(b,true,'\u041e\u0446\u0435\u043d\u044f\u0432\u0430\u043c\u2026 (1\u20132 \u043c\u0438\u043d\u0443\u0442\u0438)');const msg=c.querySelector('#azm-msg');\n try{const items=[];(m.texts||[]).forEach(tx=>(tx.items||[]).forEach(it=>items.push(it)));\n  const wrong=items.filter(it=>it.t==='mc'&&M.ans[it._k]!==+it.c).map(it=>({k:it._k,q:it.q,o:it.o,correct:it.o[+it.c],chosen:M.ans[it._k]==null?null:it.o[M.ans[it._k]]}));\n  const sa=items.filter(it=>it.t!=='mc').map(it=>({k:it._k,q:it.q,model:it.a,answer:String(M.ans[it._k]||'')}));\n  const jobs=[api('mockgrade',{lang:S.lang,level:S.level,texts:(m.texts||[]).map(t=>t.text).join('\\n\\n'),wrong,sa})];\n  (m.writing||[]).slice(0,2).forEach((w,wi)=>{jobs.push(words(M.w[wi])>=20?api('check',{lang:S.lang,level:S.level,task:wi,prompt:w.prompt,text:M.w[wi]}):Promise.resolve(null))});\n  const out=await Promise.all(jobs);const g=pj(out[0]);M.ex={};M.sa={};(g.mc||[]).forEach(x=>M.ex[x.k]=x.e);(g.sa||[]).forEach(x=>{M.sa[x.k]={p:Math.max(0,Math.min(2,+x.p||0))};if(x.e)M.ex[x.k]=x.e});\n  M.wr=[out[1]?pj(out[1]):null,out[2]?pj(out[2]):null];\n  M.mcPts=items.filter(it=>it.t==='mc'&&M.ans[it._k]===+it.c).length;M.saPts=Object.values(M.sa).reduce((a,x)=>a+x.p,0);\n  M.wPts=M.wr.map((r,i)=>r?total(r,f[i]):0);M.done=true;\n  addHist({k:'m',lang:S.lang,level:S.level,score:M.mcPts+M.saPts+M.wPts[0]+M.wPts[1],max:READ[S.level].pts+f[0].pts+f[1].pts});S.busy=false;draw();window.scrollTo({top:app.offsetTop,behavior:'smooth'})}\n catch(er){msg.innerHTML=`<p class=\"err\">${esc(er.message)}<\/p>`;S.busy=false;busyBtn(b,false,'\u041f\u0440\u0435\u0434\u0430\u0439 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430')}}\nfunction resultBox(M){const R=READ[S.level],f=FMT[S.level],read=M.mcPts+M.saPts,wr=M.wPts[0]+M.wPts[1],got=read+wr,max=R.pts+f[0].pts+f[1].pts,est=Math.round(got\/max*R.full*10)\/10;\n return `<div class=\"card\" style=\"border-color:var(--p)\"><h2>\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442 \u043e\u0442 \u043f\u0440\u043e\u0431\u043d\u0430\u0442\u0430 \u043c\u0430\u0442\u0443\u0440\u0430<\/h2><div class=\"row\" style=\"gap:18px;margin:0\"><div class=\"big\">${num(got)}<small> \/ ${max} \u0442.<\/small><\/div><div style=\"flex:1;min-width:170px\"><div class=\"bar\"><i style=\"width:${Math.round(got\/max*100)}%\"><\/i><\/div><\/div><\/div>\n <table class=\"h\" style=\"margin-top:10px\"><tr><td>\u0427\u0435\u0442\u0435\u043d\u0435 \u2013 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u0438\u0437\u0431\u043e\u0440<\/td><td><b>${M.mcPts} \/ ${R.mc}<\/b><\/td><\/tr><tr><td>\u0427\u0435\u0442\u0435\u043d\u0435 \u2013 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d \u043e\u0442\u0433\u043e\u0432\u043e\u0440<\/td><td><b>${num(M.saPts)} \/ ${R.sa*2}<\/b><\/td><\/tr><tr><td>\u041f\u0438\u0441\u0430\u043d\u0435 \u2013 \u0437\u0430\u0434\u0430\u0447\u0430 1<\/td><td><b>${num(M.wPts[0])} \/ ${f[0].pts}<\/b><\/td><\/tr><tr><td>\u041f\u0438\u0441\u0430\u043d\u0435 \u2013 \u0437\u0430\u0434\u0430\u0447\u0430 2<\/td><td><b>${num(M.wPts[1])} \/ ${f[1].pts}<\/b><\/td><\/tr><\/table>\n <p>\u041f\u0440\u0438 \u0441\u044a\u0449\u043e\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044f\u043d\u0435 \u0438 \u0432 \u0447\u0430\u0441\u0442\u0442\u0430 \u201e\u0421\u043b\u0443\u0448\u0430\u043d\u0435\u201c \u0442\u043e\u0432\u0430 \u0435 \u043e\u043a\u043e\u043b\u043e <b>${num(est)} \u043e\u0442 ${R.full} \u0442\u043e\u0447\u043a\u0438<\/b> \u043d\u0430 \u0438\u0441\u0442\u0438\u043d\u0441\u043a\u0430\u0442\u0430 \u043c\u0430\u0442\u0443\u0440\u0430 (\u043f\u0440\u0430\u0433 \u0437\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0438\u0437\u043f\u0438\u0442: ${R.pass} \u0442.). ${est>=R.pass?'\u2705 \u041d\u0430\u0434 \u043f\u0440\u0430\u0433\u0430 \u0441\u0442\u0435.':'\u26a0\ufe0f \u041f\u043e\u0434 \u043f\u0440\u0430\u0433\u0430 \u0441\u0442\u0435 \u2013 \u0432\u0438\u0436\u0442\u0435 \u0433\u0440\u0435\u0448\u043a\u0438\u0442\u0435 \u043f\u043e-\u0434\u043e\u043b\u0443.'}<\/p><\/div>`}\n\/* ---------- assistant ---------- *\/\nfunction drawChat(){const c=document.createElement('div');c.className='card';c.innerHTML=`<h2>AI \u0430\u0441\u0438\u0441\u0442\u0435\u043d\u0442<\/h2><p class=\"meta\" style=\"margin-top:0\">\u041f\u0438\u0442\u0430\u0439\u0442\u0435 \u043d\u0430 \u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0437\u0430 \u0433\u0440\u0430\u043c\u0430\u0442\u0438\u043a\u0430, \u043b\u0435\u043a\u0441\u0438\u043a\u0430 \u0438\u043b\u0438 \u043a\u0430\u043a \u0434\u0430 \u043d\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043f\u0438\u0441\u043c\u043e\u0442\u043e \u0438 \u0435\u0441\u0435\u0442\u043e \u043d\u0430 ${esc(LN().toLowerCase())}.<\/p><div class=\"log\" id=\"azm-log\"><\/div><textarea id=\"azm-q\" style=\"min-height:70px\" placeholder=\"\u041d\u0430\u043f\u0440. \u041a\u043e\u0433\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 Present Perfect? \u041a\u0430\u043a \u0434\u0430 \u0437\u0430\u043f\u043e\u0447\u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u043d\u043e \u043f\u0438\u0441\u043c\u043e?\"><\/textarea><div class=\"row\"><button type=\"button\" class=\"btn\" id=\"azm-send\">\u0418\u0437\u043f\u0440\u0430\u0442\u0438<\/button><button type=\"button\" class=\"btn sec\" id=\"azm-clr\">\u041d\u043e\u0432 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440<\/button><\/div><div id=\"azm-msg\"><\/div>`;app.appendChild(c);\n const log=c.querySelector('#azm-log'),add=(r,t)=>{const d=document.createElement('div');d.className='msg '+r;d.textContent=t;log.appendChild(d);log.scrollTop=1e9;return d};\n if(!S.chat.length)add('ai','\u0417\u0434\u0440\u0430\u0432\u0435\u0439\u0442\u0435! \u0410\u0437 \u0441\u044a\u043c \u0432\u0430\u0448\u0438\u044f\u0442 \u0430\u0441\u0438\u0441\u0442\u0435\u043d\u0442 \u0437\u0430 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430 \u043f\u043e '+LN().toLowerCase()+' \u0435\u0437\u0438\u043a, \u043d\u0438\u0432\u043e '+S.level+'. \u0421 \u043a\u0430\u043a\u0432\u043e \u0434\u0430 \u043f\u043e\u043c\u043e\u0433\u043d\u0430?');S.chat.forEach(x=>add(x.r,x.t));\n const send=async()=>{const q=c.querySelector('#azm-q'),v=q.value.trim();if(!v||S.busy)return;q.value='';S.chat.push({r:'me',t:v});add('me',v);const w=add('ai','\u2026');S.busy=true;\n  try{const t=await api('chat',{lang:S.lang,level:S.level,hist:S.chat.slice(-16)});const cl=t.trim().replace(\/\\*\\*(.+?)\\*\\*\/g,'$1').replace(\/^#+\\s*\/gm,'');w.textContent=cl;S.chat.push({r:'ai',t:cl})}catch(er){w.textContent=er.message;S.chat.pop()}S.busy=false};\n c.querySelector('#azm-send').onclick=send;c.querySelector('#azm-q').onkeydown=e=>{if(e.key==='Enter'&&!e.shiftKey){e.preventDefault();send()}};c.querySelector('#azm-clr').onclick=()=>{S.chat=[];draw()}}\n\/* ---------- progress ---------- *\/\nfunction drawProg(){const h=hist(),c=document.createElement('div');c.className='card';const LNn=k=>(LANGS.find(l=>l.k===k)||{}).n||k;\n c.innerHTML='<h2>\u041d\u0430\u043f\u0440\u0435\u0434\u044a\u043a<\/h2>'+(h.length?`<table class=\"h\"><tr><th>\u0414\u0430\u0442\u0430<\/th><th>\u041a\u0430\u043a\u0432\u043e<\/th><th>\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442<\/th><\/tr>${h.map(e=>`<tr><td>${esc(e.d)}<\/td><td>${e.k==='m'?'\u041f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430':'\u041f\u0438\u0441\u0430\u043d\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 '+(e.task+1)} \u00b7 ${esc(LNn(e.lang))} ${esc(e.level)}<\/td><td><b>${num(e.score)} \/ ${e.max}<\/b> (${Math.round(e.score\/e.max*100)}%)<\/td><\/tr>`).join('')}<\/table><p class=\"note\">\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438\u0442\u0435 \u0441\u0435 \u043f\u0430\u0437\u044f\u0442 \u0432 \u0442\u043e\u0437\u0438 \u0431\u0440\u0430\u0443\u0437\u044a\u0440.<\/p>`:'<p>\u0412\u0441\u0435 \u043e\u0449\u0435 \u043d\u044f\u043c\u0430 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438. \u041d\u0430\u043f\u0440\u0430\u0432\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0442\u0435\u043a\u0441\u0442 \u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043d\u0430 \u043c\u0430\u0442\u0443\u0440\u0430.<\/p>');app.appendChild(c)}\ndraw();\n})();<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0438\u0436\u0442\u0435 \u0431\u0435\u0437\u043f\u043b\u0430\u0442\u043d\u043e \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0438 AI \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430\u0442\u0430 \u0437\u0430 \u043c\u0430\u0442\u0443\u0440\u0430\u0442\u0430 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3248","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/pages\/3248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/azucha.bg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3248"}],"version-history":[{"count":2,"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/pages\/3248\/revisions"}],"predecessor-version":[{"id":3284,"href":"https:\/\/azucha.bg\/index.php?rest_route=\/wp\/v2\/pages\/3248\/revisions\/3284"}],"wp:attachment":[{"href":"https:\/\/azucha.bg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}