
/* ================= Сервис СТП АИС «Школа» ================= */
:root{
  --font:"Manrope","Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --ink:#0C0D0F; --ink-2:#212429; --text-2:#606060; --muted:#868799; --ph:#8C8E9C;
  --blue:#4C6EF4; --blue-h:#3F5FE6; --blue-t:#3C5DE0; --link:#4D6EED;
  --soft:#E4EBFE; --soft-b:#CFD9F4; --soft-t:#2B40BD;
  --bg:#F3F4F9; --qbox:#F4F3F8; --gray-btn:#F1F2F5; --hover:#F5F6F9;
  --line:#E8E9ED; --line-2:#EAEBED; --line-3:#F2F2F4; --input:#D6D7DC;
  --chip-on:#72757E; --file-ic:#EAEBF0; --file-b:#EEEFF1; --you:#EAEDFE;
  --red:#E5484D;
  --top-h:64px; --bn-h:64px; --wrap:1200px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--font);font-size:15px;line-height:1.45;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}
body[data-section="support"]{background:var(--bg)}
#app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
a{color:inherit;text-decoration:none}
input,textarea{font:inherit;color:inherit}
img,video,svg{display:block;max-width:100%}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
::selection{background:#D6DEFF}
.ic{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ic-14{width:14px;height:14px}.ic-16{width:16px;height:16px}.ic-18{width:18px;height:18px}.ic-20{width:20px;height:20px}.ic-28{width:28px;height:28px}
.ic-fill{fill:currentColor;stroke:none}
.hide{display:none!important}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}

/* ---------- Кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:10px;font-size:15px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s,color .15s;user-select:none}
.btn .ic{width:20px;height:20px}
.btn--primary{background:var(--blue);color:#fff}
.btn--primary:hover{background:var(--blue-h)}
.btn--soft{background:var(--soft);color:var(--soft-t);border:1px solid var(--soft-b)}
.btn--soft:hover{background:#D9E3FD}
.btn--gray{background:var(--gray-btn);color:var(--ink)}
.btn--gray:hover{background:#E8E9EE}
.btn--line{background:#fff;color:var(--ink);border:1px solid #E4E5E9}
.btn--line:hover{border-color:#CFD1D8}
.btn--sm{height:36px;padding:0 12px;font-size:14px;border-radius:8px}
.btn--sm .ic{width:18px;height:18px}
.btn--block{width:100%}
.btn[disabled],.btn.is-busy{opacity:.55;pointer-events:none}
.icon-btn{width:40px;height:40px;display:inline-grid;place-items:center;border-radius:10px;color:var(--ink);flex:none;position:relative;transition:background .15s}
.icon-btn:hover{background:var(--hover)}
.icon-btn--sm{width:32px;height:32px;border-radius:8px}
.icon-btn--sm .ic{width:20px;height:20px}
.link{color:var(--link);font-weight:500;display:inline-flex;align-items:center;gap:4px}
.link:hover{color:var(--blue-h)}
.link .ic{width:20px;height:20px}

/* ---------- Статусы ---------- */
.chip{display:inline-flex;align-items:center;height:26px;padding:0 8px;border-radius:6px;font-size:14px;font-weight:500;white-space:nowrap;line-height:1}
.st-created{background:#F4E5F8;color:#80408A}
.st-review{background:#DCEEFC;color:#155185}
.st-info{background:#FFEED5;color:#8A4B00}
.st-work{background:#D9F2EE;color:#0B5E52}
.st-solved{background:#CEF5C9;color:#196225}
.st-rejected{background:#FFE5E6;color:#9E2E2E}
.st-closed{background:#ECEDF0;color:#4F5462}

/* ---------- Шапка ---------- */
.top{background:#fff;position:relative;z-index:60}
.top--brand{background:linear-gradient(90deg,#3F6DF2,#2F57E0)}
.top--brand .lg-hex{fill:#fff;stroke:#fff}
.top--brand .lg-ink{fill:#2F57E0}
.top--brand .lg-tas,.top--brand .lg-s{stroke:#2F57E0}
.top--brand .logo__pill{background:#fff;color:#2F57E0}
.top--brand .logo__word,.top--brand .svcsw__name,.top--brand .usr__name{color:#fff}
.top--brand .chev,.top--brand .icon-btn{color:#fff}
.top--brand .svcsw:hover,.top--brand .svcsw.is-on,.top--brand .usr:hover,.top--brand .usr.is-on,.top--brand .icon-btn:hover,.top--brand .icon-btn.is-on{background:rgba(255,255,255,.14)}
.top--brand .usr__role{background:rgba(255,255,255,.18);color:#fff}
.top--brand .pip{border-color:#3466EA}
.top--brand .svcico__bg{fill:#fff}
.top--brand .svcico__g [fill="#fff"]{fill:#2F57E0}
.top--brand .svcico__g [stroke="#fff"]{stroke:#2F57E0}
.top__in{height:var(--top-h);display:flex;align-items:center;gap:12px;padding:0 24px;max-width:1440px;margin:0 auto}
.logo{display:flex;align-items:center;gap:8px;flex:none;border-radius:8px}
.logo svg{width:32px;height:32px}
.logo__pill{background:var(--blue);color:#fff;font-weight:800;font-size:12px;letter-spacing:.06em;height:22px;padding:0 8px;border-radius:11px;display:inline-flex;align-items:center}
.logo__word{font-weight:800;font-size:17px;color:var(--ink)}
.svcsw{display:flex;align-items:center;gap:8px;height:42px;padding:0 6px 0 4px;margin-left:10px;border-radius:10px}
.svcsw:hover,.svcsw.is-on{background:var(--hover)}
.svcsw .svcico{width:30px;height:30px}
.svcsw__name{font-weight:700;font-size:16px}
.svcsw .chev{width:20px;height:20px;color:var(--ink)}
.top__r{margin-left:auto;display:flex;align-items:center;gap:6px}
.pip{position:absolute;top:4px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;border:2px solid #fff;line-height:1}
.usr{display:flex;align-items:center;gap:10px;height:44px;padding:0 6px 0 4px;border-radius:12px}
.usr:hover,.usr.is-on{background:var(--hover)}
.ava{width:36px;height:36px;border-radius:50%;background:#FBA050;color:#fff;font-size:13px;font-weight:700;display:grid;place-items:center;flex:none}
.usr__name{font-weight:600;font-size:15px}
.usr__role{background:var(--gray-btn);color:#3D3F49;font-size:12px;font-weight:600;height:24px;padding:0 8px;border-radius:6px;display:inline-flex;align-items:center}
.usr .chev{width:20px;height:20px}

/* Полоса сервиса справки */
.hhead{position:sticky;top:0;z-index:60;background:#fff;box-shadow:0 2px 10px rgba(16,24,40,.06)}
.svcbar__in{height:68px;display:flex;align-items:center;gap:14px;padding:0 24px;max-width:var(--wrap);margin:0 auto}
.svcbar__in .svcico{width:44px;height:44px}
.svcbar__t{font-size:24px;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.svcbar__in .icon-btn{margin-left:auto}
.svcbar__in .icon-btn .ic{width:28px;height:28px;stroke-width:1.7}
.svcbar__in .icon-btn.is-on .ic{fill:var(--ink)}
.secbar{background:#fff;border-bottom:1px solid var(--line-3)}
.secbar__in{height:58px;display:flex;align-items:center;gap:10px;padding:0 18px;max-width:var(--wrap);margin:0 auto}
.secbar__t{font-size:20px;font-weight:700}
.secbar .icon-btn .ic{color:#9A9BAB;width:26px;height:26px}

/* ---------- Нижняя панель справки ---------- */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid #ECEDF0;display:flex;justify-content:center;gap:6px;padding:0 8px env(safe-area-inset-bottom);height:calc(var(--bn-h) + env(safe-area-inset-bottom))}
.bnav a,.bnav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:96px;font-size:12.5px;font-weight:500;color:var(--ink);border-radius:10px}
.bnav .ic{width:26px;height:26px;color:var(--muted);stroke-width:1.7}
.bnav .is-on{font-weight:600}
.bnav .is-on .ic{color:#0F1022}
.bnav a:hover .ic,.bnav button:hover .ic{color:#0F1022}
.bnav .bnav__dot{position:absolute;top:5px;left:calc(50% + 10px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red);color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center;border:2px solid #fff}
.bnav .more{position:relative}
.fpill{position:fixed;z-index:65;right:max(16px,calc((100vw - var(--wrap)) / 2 + 24px));bottom:calc(var(--bn-h) + 18px + env(safe-area-inset-bottom));height:48px;padding:0 22px;border-radius:24px;background:#fff;color:var(--ink);font-size:16px;font-weight:500;box-shadow:0 4px 18px rgba(17,24,39,.14),0 0 0 1px rgba(17,24,39,.04);display:inline-flex;align-items:center;gap:8px}
.fpill:hover{box-shadow:0 6px 22px rgba(17,24,39,.18),0 0 0 1px rgba(17,24,39,.05)}
.fpill b{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--blue);color:#fff;font-size:12px;display:grid;place-items:center}
.upbtn{position:fixed;z-index:65;right:max(16px,calc((100vw - var(--wrap)) / 2 + 24px));bottom:calc(var(--bn-h) + 78px + env(safe-area-inset-bottom));width:54px;height:54px;border-radius:50%;background:#fff;box-shadow:0 4px 18px rgba(17,24,39,.16);display:grid;place-items:center;color:var(--ink)}
.upbtn .ic{width:26px;height:26px;stroke-width:2}

/* ---------- Справка: общая сетка ---------- */
.hmain{width:100%;max-width:var(--wrap);margin:0 auto;padding:24px 24px calc(var(--bn-h) + 96px);flex:1}
.sec{margin-top:44px}
.sec__h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.sec__t{font-size:24px;font-weight:800;color:var(--ink-2);letter-spacing:-.01em}
.sec__t--sm{font-size:20px}
.more-link{color:var(--link);font-size:16px;font-weight:500;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.more-link .ic{width:20px;height:20px}
.more-link:hover{color:var(--blue-h)}

/* Главная */
.hero{text-align:center;padding:20px 0 0}
.hero h1{font-size:32px;font-weight:800;color:var(--ink-2);letter-spacing:-.015em}
.hsearch{position:relative;display:flex;max-width:760px;margin:24px auto 0;height:58px;border:2px solid #526FDE;border-radius:16px;background:#fff}
.hsearch>.ic{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#8C8E9C;width:24px;height:24px}
.hsearch input{flex:1;min-width:0;border:0;outline:none;background:transparent;padding:0 12px 0 52px;font-size:17px}
.hsearch input::placeholder{color:#AFAEBB}
.hsearch button{flex:none;margin:-2px -2px -2px 0;padding:0 28px;border-radius:0 15px 15px 0;background:var(--blue);color:#fff;font-size:18px;font-weight:600}
.hsearch button:hover{background:var(--blue-h)}
.chips{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.chips a{height:36px;padding:0 14px;border-radius:10px;background:var(--soft);color:var(--soft-t);font-size:15px;font-weight:500;display:inline-flex;align-items:center;white-space:nowrap}
.chips a:hover{background:#D9E3FD}
.alist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.acard{display:flex;align-items:center;gap:16px;padding:10px 18px 10px 10px;border:1px solid var(--line);border-radius:16px;background:#fff;min-height:78px;transition:border-color .15s}
.acard:hover{border-color:#D3D5DD}
.acard .sphere{flex:none}
.acard__t{font-size:16px;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.slist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 20px}
.srow{display:flex;align-items:center;gap:16px;padding:10px 10px 10px 8px;border-radius:12px;min-width:0}
.srow:hover{background:var(--hover)}
.srow .svcico{width:40px;height:40px;flex:none}
.srow__n{font-size:16px;font-weight:700;line-height:1.3}
.srow__c{font-size:13px;color:var(--muted);margin-top:2px}
.scar{display:none}
.dots{display:flex;justify-content:center;gap:10px;margin-top:14px}
.dots button{width:9px;height:9px;border-radius:50%;background:#CCCCCC;padding:0}
.dots button.is-on{background:var(--blue)}
.rlist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rcard{display:flex;gap:16px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff;min-width:0;transition:border-color .15s}
.rcard:hover{border-color:#D3D5DD}
.rcard .roleart{width:88px;height:88px;flex:none}
.rcard__b{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding-top:4px}
.rcard__n{font-size:17px;font-weight:700}
.rcard__c{font-size:14px;color:var(--muted);margin-top:2px}
.you{margin-top:auto;height:28px;padding:0 10px;border-radius:8px;background:var(--you);color:var(--blue);font-size:14px;font-weight:600;display:inline-flex;align-items:center}
.askbox{margin-top:44px;display:flex;align-items:center;gap:18px;padding:20px 24px;border:1px solid var(--line);border-radius:16px}
.askbox .svcico{width:48px;height:48px;flex:none}
.askbox__t{font-size:18px;font-weight:800}
.askbox__d{font-size:15px;color:var(--text-2);margin-top:2px}
.askbox__a{margin-left:auto;display:flex;gap:10px;flex:none}

/* Карточки: новости и видео */
.ngrid,.vgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ncard,.vcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 2px 6px rgba(16,24,40,.04);transition:box-shadow .2s,border-color .2s;min-width:0}
.ncard:hover,.vcard:hover{box-shadow:0 8px 22px rgba(16,24,40,.09);border-color:#DDDFE6}
.ncard .ncov{width:100%;aspect-ratio:320/190;height:auto}
.vcard__cov{position:relative}
.vcard__cov .vcov{width:100%;aspect-ratio:16/9;height:auto}
.ncard__b,.vcard__b{padding:16px 20px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.ncard__t,.vcard__t{font-size:17px;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ncard__m,.vcard__m{margin-top:auto;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:15px}
.ncard__m .views,.vcard__m .views{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.ncard__m .ic,.vcard__m .ic{width:20px;height:20px}
.vcard__k{font-size:15px;color:var(--muted)}
.bmk{position:absolute;top:12px;left:12px;width:40px;height:40px;border-radius:10px;background:rgba(48,24,64,.55);color:#fff;display:grid;place-items:center;z-index:2;transition:background .15s}
.bmk:hover{background:rgba(48,24,64,.72)}
.bmk .ic{width:22px;height:22px}
.bmk.is-on .ic{fill:#fff}
.vdur{position:absolute;left:12px;bottom:12px;height:24px;padding:0 8px;border-radius:7px;background:rgba(12,13,15,.55);color:#fff;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.vdur .ic{width:12px;height:12px}
.newtag{position:absolute;top:12px;left:12px;height:24px;padding:0 8px;border-radius:7px;background:#fff;color:var(--blue);font-size:12px;font-weight:800;display:inline-flex;align-items:center}
.ncard__cov{position:relative;display:block}

/* Поиск, вкладки, списки */
.sfield{position:relative;margin-bottom:16px}
.sfield .ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#757575;width:22px;height:22px;pointer-events:none}
.sfield input{width:100%;height:46px;border:1px solid var(--input);border-radius:12px;padding:0 14px 0 46px;font-size:16px;outline:none;background:#fff}
.sfield input::placeholder{color:#757575}
.sfield input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(76,110,244,.14)}
input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.ptabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:20px}
.ptabs::-webkit-scrollbar{display:none}
.ptab{height:38px;padding:0 16px;border-radius:12px;color:var(--link);font-size:16px;font-weight:500;display:inline-flex;align-items:center;white-space:nowrap;flex:none}
.ptab:hover{background:var(--soft)}
.ptab.is-on{background:var(--blue);color:#fff}
.lgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.lcard{display:flex;gap:14px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;min-width:0;transition:border-color .15s}
.lcard:hover{border-color:#D3D5DD}
.lcard .svcico{width:40px;height:40px;flex:none}
.lcard__b{min-width:0;flex:1}
.lcard__k{font-size:14px;color:var(--muted)}
.lcard__t{display:block;font-size:16px;font-weight:700;line-height:1.35;margin-top:2px}
.lcard__t mark,.qitem__q mark,.lcard__d mark{background:#FFF0B8;color:inherit;border-radius:3px}
.lcard__d{font-size:14px;color:var(--text-2);margin-top:4px}
.lcard__m{font-size:13px;color:var(--muted);margin-top:8px;display:flex;gap:6px 14px;flex-wrap:wrap}
.favi{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;color:var(--muted);flex:none;margin:-6px -6px 0 0}
.favi:hover{background:var(--hover);color:var(--ink)}
.favi .ic{width:22px;height:22px}
.favi.is-on{color:var(--blue)}
.favi.is-on .ic{fill:var(--blue)}
.svh{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.svh .svcico{width:48px;height:48px}
.svh__t{font-size:22px;font-weight:800}
.svh__c{font-size:14px;color:var(--muted)}
.back-link{display:inline-flex;align-items:center;gap:6px;color:var(--link);font-weight:500;margin-bottom:14px}
.back-link .ic{width:20px;height:20px}
.empty{padding:40px 20px;text-align:center;color:var(--text-2)}
.empty__ic{width:64px;height:64px;border-radius:18px;background:var(--gray-btn);color:#A5A7B4;display:grid;place-items:center;margin:0 auto 14px}
.empty__ic .ic{width:30px;height:30px}
.empty b{display:block;font-size:17px;color:var(--ink);margin-bottom:4px}
.empty .btn{margin-top:16px}

/* Вопросы */
.qsvc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 20px}
.qbox{background:var(--qbox);border-radius:24px;padding:20px 16px 16px;margin-top:28px}
.qbox__h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 14px}
.qbox__t{font-size:20px;font-weight:800;color:var(--ink-2)}
.qitem{background:#fff;border-radius:16px}
.qitem+.qitem{margin-top:8px}
.qitem__h{display:flex;align-items:flex-start;gap:8px;padding:16px 12px 16px 20px;cursor:pointer}
.qitem__q{flex:1;font-size:16px;font-weight:700;line-height:1.4;padding-top:6px}
.qitem__acts{display:flex;gap:2px;flex:none}
.qitem__acts .icon-btn{color:#8C8E9C}
.qitem__acts .chev{transition:transform .2s}
.qitem.is-open .qitem__acts .chev{transform:rotate(180deg)}
.qitem__a{display:none;padding:0 20px 18px;font-size:15.5px;line-height:1.6;color:#2A2C33}
.qitem.is-open .qitem__a{display:block}
.qitem__a p+p{margin-top:8px}
.qitem__m{font-size:13px;color:var(--muted);margin-top:10px}
.qfb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line-3);font-size:14px;color:var(--text-2)}
.qfb .done{color:#196225;display:inline-flex;align-items:center;gap:6px;font-weight:500}
.qfb .done .ic{width:18px;height:18px}

/* Документы и инструкции */
.dlist{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.drow{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line-3)}
.drow:last-child{border-bottom:0}
.drow:hover{background:#FAFAFC}
.dico{width:44px;height:44px;border-radius:10px;background:var(--file-ic);color:#5F6270;display:grid;place-items:center;flex:none}
.dico .ic{width:22px;height:22px}
.drow__b{min-width:0;flex:1}
.drow__t{display:block;font-size:16px;font-weight:700;line-height:1.35}
.drow__d{font-size:14px;color:var(--muted);margin-top:2px}
.doc{max-width:960px;margin:0 auto}
.doc h1{font-size:30px;font-weight:800;line-height:1.25;letter-spacing:-.01em;color:var(--ink)}
.doc__meta{font-size:14px;color:var(--muted);margin-top:10px}
.dbtns{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 26px}
.dbtns .btn{height:40px;padding:0 14px;font-weight:500}
.dbtns .btn .ic{width:20px;height:20px}
.dbtns .btn.is-on .ic{fill:currentColor}
.prose{font-size:16px;line-height:1.65;color:#1C1E24}
.prose h2,.prose h3{font-size:18px;font-weight:800;line-height:1.35;margin:28px 0 10px;color:var(--ink);scroll-margin-top:150px}
.prose p{margin:0 0 12px}
.prose ol,.prose ul{margin:0 0 14px;padding-left:22px}
.prose li{margin:6px 0}
.prose .lead{font-size:17px;color:#2A2C33}
.note{display:flex;gap:12px;padding:14px 16px;border-radius:12px;margin:14px 0 18px;font-size:15px;line-height:1.55;background:#EEF3FF}
.note .ic{color:var(--blue);width:22px;height:22px;margin-top:1px}
.note--warn{background:#FFF4E2}
.note--warn .ic{color:#D98A00}
.note b{display:block}
.fig{margin:16px 0 20px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg)}
.fig__in{padding:16px;overflow-x:auto}
.fig figcaption{padding:10px 16px;font-size:14px;color:var(--text-2);background:#fff;border-top:1px solid var(--line-3)}
.fbk{margin-top:32px;padding:18px 20px;border-radius:16px;background:var(--qbox)}
.fbk__t{font-size:17px;font-weight:700;margin-bottom:12px}
.fbk__row{display:flex;gap:8px;flex-wrap:wrap}
.fbk__row .btn{background:#fff}
.fbk .done{color:#196225;font-weight:600;display:flex;align-items:center;gap:8px}
.fbk .done .ic{width:20px;height:20px}
.ask-line{margin-top:14px;font-size:15px;color:var(--text-2)}
.related{margin-top:36px}
.related .sec__t{font-size:20px;margin-bottom:14px}

/* Макеты в инструкциях */
.mk{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:12px;min-width:460px}
.mk__bar{height:32px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 12px;font-weight:700;font-size:11.5px}
.mk__bar i{width:14px;height:14px;border-radius:4px;background:var(--blue)}
.mk__body{padding:12px}
.mk__t{font-weight:800;font-size:13px;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.mk__t small{font-weight:600;color:var(--text-2)}
.mk table{border-collapse:separate;border-spacing:0;width:100%}
.mk th,.mk td{border-bottom:1px solid var(--line-3);padding:6px;text-align:center;white-space:nowrap}
.mk th{font-weight:700;color:var(--text-2);font-size:11px}
.mk td:first-child,.mk th:first-child{text-align:left;color:var(--ink);font-weight:600}
.mk .hl{background:var(--soft)}
.mk th.hl{color:var(--soft-t);box-shadow:inset 0 0 0 2px var(--blue);border-radius:6px}
.mk .m5{color:#196225;font-weight:800}.mk .m4{color:#2B40BD;font-weight:800}.mk .m3{color:#A45B00;font-weight:800}
.mk .kr{display:inline-block;font-size:9px;font-weight:800;background:#9E2E2E;color:#fff;border-radius:4px;padding:1px 4px;margin-left:3px}
.mk__lesson{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mk__panel{border:1px solid var(--line-3);border-radius:10px;padding:10px}
.mk__k{color:var(--text-2);font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.mk__v{font-weight:700;margin:2px 0 8px}
.mk__st{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid var(--line-3)}
.mk__st:last-child{border-bottom:0}
.mk__st em{font-style:normal;flex:1}
.mk__btns{display:flex;gap:4px}
.mk__btns span{width:22px;height:22px;border-radius:6px;border:1px solid var(--line);display:grid;place-items:center;font-weight:700;font-size:11px;color:var(--text-2)}
.mk__btns span.on{background:var(--blue);border-color:var(--blue);color:#fff}
.mk__ok{color:#196225;display:flex}
.mk__ok .ic{width:14px;height:14px}
.mk__form{display:grid;gap:8px}
.mk__in{border:1px solid var(--input);border-radius:8px;padding:7px 9px;color:var(--text-2)}
.mk__in b{color:var(--ink)}
.mk__mat{display:flex;align-items:center;gap:8px;padding:8px;border-radius:8px;background:var(--soft);border:1px solid var(--soft-b)}
.mk__mat i{width:26px;height:26px;border-radius:7px;background:#F06A55;flex:none}
.mk__mat small{display:block;color:var(--text-2)}
.mk__btn{justify-self:end;background:var(--blue);color:#fff;border-radius:8px;padding:6px 12px;font-weight:700}

/* Видео */
.vpage{max-width:960px;margin:0 auto}
.player{position:relative;border-radius:16px;overflow:hidden;background:#0F1022}
.player .vcov{width:100%;aspect-ratio:16/9;height:auto}
.player__big{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--blue);display:grid;place-items:center;box-shadow:0 10px 28px rgba(0,0,0,.25);transition:transform .15s,opacity .2s}
.player__big:hover{transform:scale(1.05)}
.player__big .ic{width:30px;height:30px;margin-left:4px}
.player.is-play .player__big{opacity:0;pointer-events:none}
.pctl{position:absolute;left:0;right:0;bottom:0;padding:24px 16px 12px;background:linear-gradient(180deg,rgba(12,13,15,0),rgba(12,13,15,.7));color:#fff;display:flex;flex-direction:column;gap:8px}
.ptrack{position:relative;height:5px;border-radius:5px;background:rgba(255,255,255,.3);cursor:pointer}
.ptrack i{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:#fff}
.ptrack b{position:absolute;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:#fff}
.ptrack s{position:absolute;top:-1px;bottom:-1px;width:3px;background:rgba(12,13,15,.55)}
.prow{display:flex;align-items:center;gap:6px}
.prow .icon-btn{color:#fff;width:36px;height:36px}
.prow .icon-btn:hover{background:rgba(255,255,255,.16)}
.prow .icon-btn .ic{width:22px;height:22px}
.ptime{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.pchap{margin-left:10px;font-size:13px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.prow .sp{margin-left:auto}
.vinfo h1{font-size:26px;font-weight:800;line-height:1.3;margin:20px 0 8px}
.vinfo__desc{font-size:16px;line-height:1.6;color:#2A2C33}
.chap{margin-top:20px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.chap__h{padding:14px 18px;font-weight:800;font-size:17px;border-bottom:1px solid var(--line-3)}
.chap button{display:flex;align-items:center;gap:14px;width:100%;padding:12px 18px;border-bottom:1px solid var(--line-3);font-size:15px;font-weight:500;text-align:left}
.chap button:last-child{border-bottom:0}
.chap button:hover{background:#FAFAFC}
.chap button.is-on{color:var(--soft-t);background:var(--soft)}
.chap .tc{font-variant-numeric:tabular-nums;color:var(--soft-t);background:var(--soft);border-radius:6px;padding:3px 8px;font-size:13px;font-weight:700;flex:none}
.chap button.is-on .tc{background:#fff}

/* ---------- Выезжающие панели и всплывающие меню ---------- */
.scrim{position:fixed;inset:0;background:rgba(12,13,15,.32);z-index:300;animation:fade .15s ease-out}
@keyframes fade{from{opacity:0}to{opacity:1}}
.drawer{position:fixed;top:0;bottom:0;width:min(360px,88vw);background:#fff;z-index:310;display:flex;flex-direction:column;box-shadow:0 0 40px rgba(12,13,15,.2);animation:slideL .2s ease-out}
.drawer--l{left:0}
.drawer--r{right:0;animation-name:slideR}
@keyframes slideL{from{transform:translateX(-100%)}to{transform:none}}
@keyframes slideR{from{transform:translateX(100%)}to{transform:none}}
.drawer__h{display:flex;align-items:center;gap:10px;padding:14px 12px 10px 20px;border-bottom:1px solid var(--line-3)}
.drawer__t{font-size:20px;font-weight:800;flex:1}
.drawer__b{flex:1;overflow-y:auto;padding:10px 12px 20px}
.drawer__f{display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line-3)}
.drawer__f .btn{flex:1}
.dgroup{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding:16px 8px 8px}
.ditem{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:8px 10px;border-radius:10px;font-size:16px;font-weight:600;text-align:left}
.ditem:hover{background:var(--hover)}
.ditem.is-on{background:var(--gray-btn)}
.ditem .ic{color:#5F6270}
.ditem .svcico{width:32px;height:32px;flex:none}
.ditem .roleart{width:44px;height:44px;flex:none}
.ditem .n{margin-left:auto;font-size:13px;color:var(--muted);font-weight:600}
.ditem--sub{font-weight:500;font-size:15px;min-height:40px}
.radio{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 10px;border-radius:10px;font-size:15.5px;font-weight:500;text-align:left}
.radio:hover{background:var(--hover)}
.radio i{width:22px;height:22px;border-radius:50%;border:2px solid #C3C5CE;flex:none;display:grid;place-items:center}
.radio.is-on i{border-color:var(--blue)}
.radio.is-on i::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--blue)}
.radio .n{margin-left:auto;color:var(--muted);font-size:13px;font-weight:600}
.pop{position:fixed;background:#fff;border-radius:14px;box-shadow:0 10px 32px rgba(16,24,40,.16),0 0 0 1px rgba(16,24,40,.05);padding:6px;min-width:220px;z-index:320;animation:pop .14s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.pop__item{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px;border-radius:10px;font-size:15px;font-weight:500;text-align:left}
.pop__item:hover{background:var(--hover)}
.pop__item.is-on{background:var(--gray-btn)}
.pop__item .ic{width:22px;height:22px;color:#4A4C57}
.pop__item .svcico{width:28px;height:28px;flex:none}
.pop__item--danger,.pop__item--danger .ic{color:#B42828}
.pop__item .badge{margin-left:auto}
.pop__sep{height:1px;background:var(--line-3);margin:6px 4px}
.pop__head{padding:10px 12px 6px;font-size:13px;font-weight:700;color:var(--muted)}
.badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center}
.notif{width:380px;padding:0}
.notif__h{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid var(--line-3)}
.notif__h b{font-size:16px}
.notif__l{max-height:440px;overflow:auto;padding:6px}
.nitem{display:flex;gap:12px;width:100%;padding:10px;border-radius:10px;text-align:left}
.nitem:hover{background:var(--hover)}
.nitem .svcico{width:36px;height:36px;flex:none}
.nitem__t{font-weight:700;font-size:14px;line-height:1.35}
.nitem__d{color:var(--text-2);font-size:13px;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nitem__time{color:var(--muted);font-size:12px;margin-top:4px}
.nitem.is-new .nitem__t::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);margin-left:6px;vertical-align:middle}
.stlist{padding:8px 10px 10px;max-width:340px}
.stlist div{display:flex;align-items:flex-start;gap:10px;padding:6px 0;font-size:13.5px;color:var(--text-2);line-height:1.4}
.stlist .chip{flex:none;height:24px;font-size:13px}

/* ---------- Мои обращения ---------- */
.pbar{position:sticky;top:0;z-index:40;background:#fff;box-shadow:0 1px 0 var(--line-2)}
.pbar__in,.smain__in{width:100%;max-width:1100px;margin:0 auto;padding:0 24px}
.pbar__row{display:flex;align-items:center;gap:8px;min-height:68px}
.pbar__t{font-size:22px;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.pbar__sub{font-size:14px;color:var(--text-2);margin-top:2px}
.pbar__row .icon-btn--q{color:#8C8E9C;width:32px;height:32px}
.pbar__row .icon-btn--q .ic{width:22px;height:22px}
.pbar__acts{margin-left:auto;display:flex;align-items:center;gap:8px}
.sortbtn{width:40px;height:40px;border:1px solid #E4E5E9;border-radius:10px;display:grid;place-items:center}
.sortbtn:hover{border-color:#CFD1D8}
.sortbtn .ic{width:22px;height:22px}
.smain{flex:1;padding:0 0 32px}
.fchips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:16px 0 14px}
.fchips::-webkit-scrollbar{display:none}
.fchip{height:34px;padding:0 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none}
.fchip:hover{background:#E9EAF0}
.fchip b{font-weight:500;color:#7D7E82}
.fchip.is-on{background:var(--chip-on);color:#fff}
.fchip.is-on b{color:rgba(255,255,255,.78)}
.tcard{display:block;background:#fff;border-radius:12px;overflow:hidden;margin-bottom:12px;transition:box-shadow .15s}
.tcard:hover{box-shadow:0 4px 14px rgba(16,24,40,.07)}
.tcard__h{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #F4F4F6;font-weight:700;font-size:15px}
.tcard__h .ic{margin-left:auto;width:20px;height:20px;stroke-width:2}
.newpill{height:22px;padding:0 8px;border-radius:6px;background:var(--soft);color:var(--soft-t);font-size:12.5px;font-weight:600;display:inline-flex;align-items:center}
.tcard__row{display:grid;grid-template-columns:120px minmax(0,1fr);border-bottom:1px solid #F4F4F6}
.tcard__row:last-child{border-bottom:0}
.tcard__k{padding:12px 14px;color:var(--text-2);font-size:14px;border-right:1px solid #F0F0F2;display:flex;align-items:center}
.tcard__v{padding:10px 14px;min-width:0;font-size:14px;align-self:center}
.tcard__topic{color:#747474;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcard__desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fab{display:none}

/* Обращение */
.tback{display:flex;align-items:center;gap:6px;padding-top:14px}
.tback .icon-btn{margin-left:-8px}
.tback .icon-btn .ic{width:26px;height:26px;stroke-width:2}
.tback h1{font-size:22px;font-weight:700;letter-spacing:-.01em;min-width:0}
.tback .tmenu{margin-left:auto}
.tstat{margin:8px 0 0}
.tabs{display:flex;gap:28px;margin-top:12px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;padding:10px 0 13px;font-size:16px;font-weight:500;color:var(--ink);white-space:nowrap;display:inline-flex;align-items:center;gap:8px;flex:none}
.tab:hover{color:var(--blue-t)}
.tab.is-on{color:var(--blue-t)}
.tab.is-on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:2px 2px 0 0;background:var(--blue-t)}
.tab .badge{background:var(--blue);height:20px}
.icard{background:#fff;border-radius:16px;overflow:hidden;margin-top:16px}
.irow{padding:14px 20px;border-bottom:1px solid var(--line-2)}
.irow:last-child{border-bottom:0}
.irow__k{font-size:14px;color:var(--text-2);margin-bottom:4px}
.irow__v{font-size:16px;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.irow .btn{margin-top:6px}
.irow--ask{background:#FFFAF1}
.flist{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.frow{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border:1px solid var(--file-b);border-radius:10px;background:#fff;min-width:0;text-align:left;width:100%}
.frow:hover{border-color:#DCDEE4}
.frow__ic{width:40px;height:40px;border-radius:8px;background:var(--file-ic);color:#5F6270;display:grid;place-items:center;flex:none;overflow:hidden;position:relative}
.frow__ic .ic{width:22px;height:22px}
.frow__ic img,.frow__ic video{width:100%;height:100%;object-fit:cover}
.frow__ic .pl{position:absolute;inset:0;display:grid;place-items:center;background:rgba(12,13,15,.3);color:#fff}
.frow__ic .pl .ic{width:16px;height:16px}
.frow__b{min-width:0;flex:1}
.frow__n{font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frow__d{font-size:12px;color:#606062;margin-top:1px}
.frow>.ic{color:#606060;width:22px;height:22px}
.frow__x{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#606060;flex:none}
.frow__x:hover{background:var(--hover);color:var(--ink)}
.frow__x .ic{width:18px;height:18px}
.frow .bar{height:3px;border-radius:2px;background:#E7E8EE;margin-top:5px;overflow:hidden}
.frow .bar i{display:block;height:100%;width:0;background:var(--blue);transition:width .8s cubic-bezier(.2,.7,.3,1)}
.frow.is-done .bar{display:none}

/* История обращения */
.hist{padding:4px 0 18px}
.dsep{text-align:center;color:#868895;font-size:13.5px;margin:18px 0 10px}
.hc{background:#fff;border-radius:12px;max-width:min(560px,100%);margin-bottom:10px;box-shadow:0 1px 2px rgba(16,24,40,.04);animation:hcin .22s ease-out}
@keyframes hcin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.hc--me{margin-left:auto;background:var(--soft)}
.hc__s{padding:12px 14px}
.hc__s+.hc__s{border-top:1px solid #F4F4F6}
.hc--me .hc__s+.hc__s{border-top-color:#D6E0FC}
.hc__st{font-size:14px;font-weight:500;margin-bottom:8px}
.hc__lbl{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-2);margin-bottom:6px}
.hc__lbl--req{color:#8A4B00}
.hc__lbl--sol{color:#196225}
.hc__txt{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.hc__txt p{margin:0;white-space:pre-wrap}
.hc__txt p+p{margin-top:8px}
.hc__txt ol{margin:6px 0 0;padding-left:20px}
.hc__f{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:0 14px 10px;font-size:12px;color:var(--text-2)}
.hc__f .t{color:#6B6B6B;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.hc__f .t .ic{width:16px;height:16px;color:var(--blue)}
.hthumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.hthumbs.n1{grid-template-columns:minmax(0,1fr)}
.hthumbs.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hthumb{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:#DADDE6;cursor:zoom-in}
.hthumbs.n1 .hthumb{aspect-ratio:16/10}
.hthumb img,.hthumb video{width:100%;height:100%;object-fit:cover}
.hthumb .pl{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,rgba(12,13,15,0) 40%,rgba(12,13,15,.4))}
.hthumb .pl span{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--blue);display:grid;place-items:center}
.hthumb .pl .ic{width:20px;height:20px;margin-left:3px}
.hthumb .du{position:absolute;left:8px;bottom:7px;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;gap:4px}
.hthumb .du .ic{width:14px;height:14px}
.hc .flist{margin-top:10px}
.hc--me .frow{background:rgba(255,255,255,.7);border-color:#D6E0FC}
.hlink{display:flex;align-items:center;gap:12px;margin-top:10px;padding:8px 12px 8px 8px;border:1px solid var(--soft-b);border-radius:10px;background:#F7F9FF}
.hlink:hover{border-color:#B7C6F2}
.hlink .frow__ic{background:var(--soft);color:var(--soft-t)}
.hlink .frow__d{color:var(--soft-t)}
.hlink>.ic{margin-left:auto;color:var(--soft-t);width:20px;height:20px}
.helped{display:flex;gap:8px;max-width:min(560px,100%);margin:-2px 0 12px}
.helped .btn{flex:1;background:#fff;border:1px solid #E4E5E9;height:40px;font-size:14px;font-weight:500}
.helped .btn:hover{border-color:#CFD1D8}
.helped .btn .ic{width:20px;height:20px}
.helped-done{max-width:min(560px,100%);margin:-2px 0 12px;font-size:13.5px;color:var(--text-2);display:flex;align-items:center;gap:6px}
.helped-done .ic{width:18px;height:18px;color:#196225}
.typing .hc__s{padding:14px 16px}
.dots3{display:inline-flex;gap:4px;align-items:center;height:12px}
.dots3 i{width:7px;height:7px;border-radius:50%;background:#AEB2C0;animation:dot 1.2s infinite ease-in-out}
.dots3 i:nth-child(2){animation-delay:.15s}.dots3 i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}

/* Поле сообщения */
.comp{position:sticky;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line-2);padding:10px 0 calc(10px + env(safe-area-inset-bottom))}
.comp__in{max-width:1100px;margin:0 auto;padding:0 24px}
.comp__row{display:flex;align-items:flex-end;gap:8px}
.comp__row .icon-btn{width:44px;height:44px;color:#5F6270}
.comp textarea{flex:1;min-width:0;height:44px;min-height:44px;max-height:168px;resize:none;border:1px solid transparent;border-radius:12px;background:var(--bg);padding:11px 14px;font-size:15px;line-height:1.45;outline:none;transition:border-color .15s,background .15s}
.comp textarea::placeholder{color:#8C8E9C}
.comp textarea:focus{border-color:var(--blue);background:#fff}
.send{width:44px;height:44px;border-radius:12px;background:var(--blue);color:#fff;display:grid;place-items:center;flex:none}
.send:hover{background:var(--blue-h)}
.send:disabled{background:#C7D1F6;cursor:default}
.send .ic{width:22px;height:22px}
.tray{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px}
.titem{position:relative;width:72px;height:72px;flex:none;border-radius:10px;overflow:hidden;background:var(--file-ic);border:1px solid var(--line)}
.titem img,.titem video{width:100%;height:100%;object-fit:cover}
.titem--file{width:210px;display:flex;align-items:center;gap:10px;padding:0 34px 0 10px;background:#fff}
.titem--file .frow__ic{width:36px;height:36px}
.titem__x{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:rgba(12,13,15,.6);color:#fff;display:grid;place-items:center;z-index:2}
.titem__x .ic{width:13px;height:13px;stroke-width:2.6}
.titem--file .titem__x{background:#E1E3EA;color:#4A4C57}
.titem__bar{position:absolute;left:6px;right:6px;bottom:5px;height:4px;border-radius:3px;background:rgba(255,255,255,.6);overflow:hidden;z-index:2}
.titem--file .titem__bar{background:#E7E8EE}
.titem__bar i{display:block;height:100%;width:0;background:var(--blue);transition:width .8s cubic-bezier(.2,.7,.3,1)}
.titem.is-done .titem__bar{opacity:0;transition:opacity .3s .2s}
.titem__v{position:absolute;left:5px;bottom:5px;z-index:2;background:rgba(12,13,15,.6);color:#fff;border-radius:5px;padding:1px 5px;font-size:10.5px;font-weight:700;display:flex;align-items:center;gap:3px}
.titem__v .ic{width:12px;height:12px}
.drop{position:fixed;inset:0;z-index:200;background:rgba(228,235,254,.92);display:none;place-items:center;text-align:center;color:var(--soft-t);border:3px dashed var(--blue)}
.drop .ic{width:44px;height:44px;margin:0 auto 10px}
.drop b{display:block;font-size:18px}
body.is-drag .drop{display:grid}
.cbar{position:sticky;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line-2);padding:12px 0 calc(12px + env(safe-area-inset-bottom))}
.cbar__in{max-width:1100px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cbar__t{font-size:15px;font-weight:600}
.cbar__d{font-size:13px;color:var(--text-2)}
.cbar__a{margin-left:auto;display:flex;gap:8px}

/* Новое обращение */
.fcard{max-width:760px;margin:16px auto 0;background:#fff;border-radius:16px;padding:6px 24px 24px}
.fld{margin-top:18px;position:relative}
.fld__l{font-size:14px;color:var(--text-2);margin-bottom:6px;display:flex;gap:4px}
.fld__l .req{color:var(--red)}
.inp{width:100%;height:48px;border:1px solid var(--input);border-radius:10px;padding:0 14px;font-size:16px;outline:none;background:#fff;transition:border-color .15s,box-shadow .15s;text-align:left;display:flex;align-items:center;gap:10px}
.inp:hover{border-color:#BFC1C9}
.inp:focus,.inp.is-open{border-color:var(--blue);box-shadow:0 0 0 3px rgba(76,110,244,.14)}
.inp::placeholder,.inp .ph{color:#8C8E9C}
textarea.inp{height:auto;min-height:140px;padding:12px 14px;line-height:1.5;resize:vertical;display:block}
.inp .val{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inp .ph{flex:1}
.inp>.ic{color:#606060;width:22px;height:22px;transition:transform .15s}
.inp.is-open>.ic.chev{transform:rotate(180deg)}
.fld.has-err .inp{border-color:#D93A3A}
.fld__err{display:none;color:#C62828;font-size:13px;margin-top:6px}
.fld.has-err .fld__err{display:block}
.fld__cnt{font-size:12.5px;color:var(--muted);text-align:right;margin-top:4px}
.dd{position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border-radius:12px;box-shadow:0 10px 32px rgba(16,24,40,.16),0 0 0 1px rgba(16,24,40,.05);padding:6px;z-index:50;max-height:320px;overflow-y:auto;animation:pop .14s ease-out}
.dd__q{position:sticky;top:-6px;background:#fff;padding:0 0 6px;margin-top:-6px;padding-top:6px}
.dd__q input{width:100%;height:38px;border:1px solid var(--input);border-radius:9px;padding:0 12px;outline:none;font-size:14.5px}
.dd__q input:focus{border-color:var(--blue)}
.opt{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 10px;border-radius:9px;font-size:15px;text-align:left}
.opt:hover,.opt.is-hi{background:var(--hover)}
.opt.is-on{font-weight:600}
.opt .svcico{width:28px;height:28px;flex:none}
.opt>.ic{margin-left:auto;color:var(--blue);width:20px;height:20px}
.opt__none{padding:12px;color:var(--muted);font-size:14px;text-align:center}
.cal{width:300px;right:auto;padding:12px}
.cal__h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal__h b{font-size:15px;font-weight:700;text-transform:capitalize}
.cal__g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal__w{font-size:12px;color:var(--muted);text-align:center;padding:4px 0;font-weight:600}
.cal__d{height:36px;border-radius:9px;font-size:14px;display:grid;place-items:center}
.cal__d:hover{background:var(--hover)}
.cal__d.is-out{color:#B5B7C2}
.cal__d.is-today{box-shadow:inset 0 0 0 1.5px var(--blue);color:var(--soft-t);font-weight:700}
.cal__d.is-on{background:var(--blue);color:#fff;font-weight:700}
.cal__d.is-off{color:#C9CBD3;pointer-events:none}
.cal__f{display:flex;justify-content:space-between;margin-top:8px}
.fhint{margin-top:18px;background:var(--bg);border-radius:12px;padding:12px 14px}
.fhint__t{font-size:14px;font-weight:700;margin-bottom:4px}
.fhint a{display:flex;align-items:center;gap:8px;padding:5px 0;color:var(--link);font-size:15px;font-weight:500}
.fhint a .ic{width:20px;height:20px;flex:none}
.fattach{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fattach span{font-size:13px;color:var(--muted)}
.ffoot{display:flex;gap:10px;margin-top:26px}
.chk{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:15px;line-height:1.4;margin-top:18px}
.chk input{position:absolute;opacity:0;pointer-events:none}
.chk__b{width:22px;height:22px;border-radius:6px;border:2px solid #C3C5CE;background:#fff;display:grid;place-items:center;flex:none;transition:background .15s,border-color .15s}
.chk__b .ic{width:14px;height:14px;stroke-width:3;color:#fff;opacity:0}
.chk input:checked+.chk__b{background:var(--blue);border-color:var(--blue)}
.chk input:checked+.chk__b .ic{opacity:1}
.chk input:focus-visible+.chk__b{outline:2px solid var(--blue);outline-offset:2px}
.chk small{display:block;color:var(--muted);font-size:13px;margin-top:2px}

/* ---------- Уведомления ---------- */
.toasts{position:fixed;top:16px;right:16px;z-index:400;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 24px));pointer-events:none}
.toast{pointer-events:auto;position:relative;display:flex;gap:12px;padding:12px 40px 14px 14px;background:#fff;border-radius:12px;box-shadow:0 10px 32px rgba(16,24,40,.16),0 0 0 1px rgba(16,24,40,.05);overflow:hidden;animation:tin .25s ease-out}
.toast.out{animation:tout .2s ease-in forwards}
@keyframes tin{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes tout{to{opacity:0;transform:translateY(-8px)}}
.toast::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tc)}
.toast__ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--tb);color:var(--tc);flex:none}
.toast__ic .ic{width:18px;height:18px}
.toast__t{font-weight:700;font-size:14px;line-height:1.35}
.toast__d{color:var(--text-2);font-size:13px;margin-top:2px;line-height:1.4}
.toast__x{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:var(--muted)}
.toast__x:hover{background:var(--hover);color:var(--ink)}
.toast__x .ic{width:16px;height:16px}
.toast__bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--tc);opacity:.3;transform-origin:left;animation:tbar linear forwards}
.toast:hover .toast__bar{animation-play-state:paused}
@keyframes tbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}

/* ---------- Просмотр вложений ---------- */
.viewer{position:fixed;inset:0;z-index:500;background:rgba(10,12,20,.94);display:flex;flex-direction:column;animation:fade .18s ease-out}
.viewer__top{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 20px;color:#fff}
.viewer__n{font-weight:700;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer__s{font-size:12px;color:rgba(255,255,255,.62)}
.viewer__top .sp{margin-left:auto;font-size:13px;color:rgba(255,255,255,.7);font-weight:600;white-space:nowrap}
.viewer .icon-btn{color:#fff}
.viewer .icon-btn:hover{background:rgba(255,255,255,.12)}
.viewer__stage{flex:1;display:grid;place-items:center;padding:0 72px 28px;min-height:0;position:relative}
.viewer__stage img,.viewer__stage video{max-width:100%;max-height:100%;border-radius:10px;background:#fff}
.viewer__nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center}
.viewer__nav:hover{background:rgba(255,255,255,.22)}
.viewer__nav.prev{left:16px}.viewer__nav.next{right:16px}
.fakevid{position:relative;max-width:100%;max-height:100%}
.fakevid img{max-height:calc(100vh - 150px)}
.fakevid__bar{position:absolute;left:14px;right:14px;bottom:12px;display:flex;align-items:center;gap:12px;color:#fff;background:rgba(10,12,20,.7);border-radius:10px;padding:8px 12px}
.fakevid__bar .trk{flex:1;height:4px;border-radius:4px;background:rgba(255,255,255,.25);overflow:hidden}
.fakevid__bar .trk i{display:block;height:100%;width:0;background:#fff}
.fakevid__bar span{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}

/* ================= Адаптив ================= */
@media (max-width:1100px){
  .slist{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rlist{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vgrid,.ngrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qsvc{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  :root{--top-h:52px;--bn-h:62px}
  body{font-size:15px}
  .top__in{padding:0 8px 0 14px;gap:4px}
  .logo{gap:6px}
  .logo svg{width:27px;height:27px}
  .logo__pill{height:20px;font-size:11px;padding:0 7px}
  .logo__word{font-size:15px}
  .svcsw{margin-left:4px;height:38px}
  .svcsw .svcico{width:27px;height:27px}
  .svcsw__name,.usr__name,.usr__role{display:none}
  .top .icon-btn .ic{width:23px;height:23px}
  .ava{width:32px;height:32px;font-size:12px}
  .usr{padding:0 2px;gap:4px;height:40px}
  .svcbar__in{height:60px;padding:0 14px 0 16px;gap:12px}
  .svcbar__in .svcico{width:40px;height:40px}
  .svcbar__t{font-size:22px}
  .svcbar__in .icon-btn .ic{width:26px;height:26px}
  .secbar__in{padding:0 10px;height:52px}
  .secbar__t{font-size:19px}
  .bnav{gap:0;padding:0 4px env(safe-area-inset-bottom)}
  .bnav a,.bnav button{flex:1;min-width:0;font-size:11.5px}
  .bnav .ic{width:24px;height:24px}
  .hmain{padding:16px 16px calc(var(--bn-h) + 96px)}
  .hero{padding-top:18px}
  .hero h1{font-size:24px}
  .hsearch{height:52px;margin-top:20px}
  .hsearch input{font-size:16px;padding-left:46px}
  .hsearch>.ic{left:14px}
  .hsearch button{padding:0 18px;font-size:17px}
  .chips{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;margin:16px -16px 0;padding:0 16px;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chips a{flex:none}
  .sec{margin-top:34px}
  .sec__t{font-size:22px}
  .sec__t--sm{font-size:20px}
  .qbox__t{font-size:19px}
  .qbox__h{padding:0 2px 12px}
  .more-link{font-size:15px}
  .dbtns .btn:not([data-act="fav"]){width:44px;padding:0;font-size:0;gap:0}
  .chips a{height:34px}
  .alist{grid-template-columns:minmax(0,1fr)}
  .slist{display:none}
  .scar{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -16px}
  .scar::-webkit-scrollbar{display:none}
  .spage{flex:0 0 100%;scroll-snap-align:start;padding:0 16px;display:flex;flex-direction:column;gap:2px}
  .rlist{grid-template-columns:minmax(0,1fr)}
  .rcard .roleart{width:92px;height:92px}
  .rcard__n{font-size:18px}
  .hscroll{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 16px;margin:0 -16px;padding:0 16px 6px;gap:12px;scrollbar-width:none}
  .hscroll::-webkit-scrollbar{display:none}
  .hscroll>*{flex:0 0 84%;scroll-snap-align:start}
  .vgrid,.ngrid,.lgrid{grid-template-columns:minmax(0,1fr);gap:16px}
  .askbox{flex-wrap:wrap;padding:18px}
  .askbox__a{margin-left:0;width:100%}
  .askbox__a .btn{flex:1}
  .qsvc{grid-template-columns:minmax(0,1fr)}
  .qbox{margin:24px -4px 0;padding:18px 12px 12px;border-radius:22px}
  .qitem__h{padding:14px 8px 14px 16px}
  .qitem__a{padding:0 16px 16px}
  .doc h1{font-size:25px}
  .prose{font-size:16px}
  .mk{min-width:0;font-size:11px}
  .mk th,.mk td{padding:6px 3px}
  .mk__lesson{grid-template-columns:minmax(0,1fr)}
  .vinfo h1{font-size:22px}
  .player{border-radius:12px}
  .pchap{display:none}
  .fpill{right:16px}
  .upbtn{right:16px}
  .notif{width:auto;left:8px!important;right:8px}
  .pbar__in,.smain__in{padding:0 16px}
  .pbar__row{min-height:60px}
  .pbar__t{font-size:20px}
  .pbar__acts .btn--primary{display:none}
  .fchips{margin:0 -16px;padding:14px 16px 12px}
  .tcard__row{grid-template-columns:96px minmax(0,1fr)}
  .tcard__k{padding:12px 10px 12px 12px;font-size:14px}
  .tcard__v{padding:10px 12px;font-size:14.5px}
  .fab{display:inline-flex;position:fixed;z-index:35;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));height:50px;padding:0 20px 0 16px;border-radius:25px;background:var(--blue);color:#fff;font-size:16px;font-weight:600;align-items:center;gap:8px;box-shadow:0 8px 22px rgba(76,110,244,.38)}
  .fab .ic{width:22px;height:22px}
  .smain{padding-bottom:90px}
  body.no-fab .smain{padding-bottom:16px}
  .tback h1{font-size:20px}
  .tabs{gap:24px}
  .tab{font-size:16px}
  .irow{padding:14px 16px}
  .hist{padding-bottom:10px}
  .hc{max-width:92%}
  .helped,.helped-done{max-width:92%}
  .comp__in,.cbar__in{padding:0 10px}
  .comp__row{gap:6px}
  .comp__row .icon-btn{width:40px}
  .cbar__a{margin-left:0;width:100%}
  .cbar__a .btn{flex:1}
  .fcard{margin:12px 0 0;padding:4px 16px 20px;border-radius:16px}
  .ffoot{flex-direction:column-reverse}
  .ffoot .btn{width:100%}
  .cal{width:100%}
  .toasts{top:10px;right:10px;left:10px;width:auto}
  .viewer__stage{padding:0 8px 16px}
  .viewer__nav{display:none}
}
@media (min-width:768px){.m-only{display:none!important}}
@media (max-width:767px){.d-only{display:none!important}}
@media print{.top,.hhead,.secbar,.bnav,.fpill,.upbtn,.comp,.cbar,.pbar,.fab{display:none!important}}


/* ================= Портал: дополнения к макету ================= */
.logo__img{width:32px;height:32px;border-radius:8px;display:block}
.top--brand .logo__img{background:#fff;padding:2px}
.top__login{gap:6px}
.top__login .ic{width:18px;height:18px}
.top--brand .top__login{background:#fff;color:var(--blue-t)}
.login-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:36px 24px}
.login-card h2{font-size:20px;font-weight:700;margin-top:6px}
.login-card p{color:var(--text-2);max-width:460px;margin-bottom:6px}
.login-card .btn{min-width:240px}
.hnote{align-self:center;max-width:90%;margin:4px auto;padding:6px 12px;border-radius:10px;background:var(--line-3);color:var(--text-2);font-size:13px;text-align:center}
.hnote span{margin-left:8px;color:var(--muted);font-variant-numeric:tabular-nums}
.hc--me.is-failed{opacity:.75}
.hc--me.is-failed .hc__f{color:var(--red)}
.rate{display:flex;align-items:center;gap:2px;margin-top:8px;flex-wrap:wrap}
.rate>span:first-child{font-size:13px;color:var(--text-2);margin-right:6px}
.rate__s{display:inline-flex;padding:3px;border-radius:6px;color:#C9CBD6}
.rate__s .ic{width:22px;height:22px}
.rate:hover button.rate__s{color:#F5B301}
.rate button.rate__s:hover~button.rate__s{color:#C9CBD6}
.rate__s.is-on{color:#F5B301}
.rate__s.is-on .ic,.rate:hover button.rate__s .ic{fill:currentColor}
.rate button.rate__s:hover~button.rate__s .ic{fill:none}
.fig__in img{width:100%;height:auto;display:block;border-radius:10px}
