/* Страница «Что такое харнес?» — поверх style.css */
.hw .nav{background:rgba(12,38,48,.94);backdrop-filter:blur(8px)}

/* шапка-определение */
.hw-hero{background:var(--tura);color:#EEF3F3;padding:calc(64px + clamp(40px,8vh,96px)) 0 clamp(48px,9vh,110px);min-height:min(100svh,920px);display:flex;align-items:center}
.hw-hero .wrap{width:100%}
.hw-back{display:inline-block;font-size:15px;color:#8FB6BF;text-decoration:none;margin-bottom:clamp(18px,3vh,30px)}
.hw-back:hover{color:#EEF3F3}
.hw-hero h1{font-size:clamp(2.4rem,min(6vw,9vh),5rem);font-weight:500;letter-spacing:-.04em;line-height:1}
.hw-lede{max-width:46ch;margin-top:clamp(16px,2.6vh,26px);font-size:clamp(17px,1.35vw,21px);line-height:1.5;color:#C5D6D9}
/* формула: модель + инструменты + методики = харнес */
.hf{list-style:none;margin:clamp(30px,6vh,64px) 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.15fr);gap:14px;align-items:stretch}
.hf-i{display:grid;align-content:center;gap:4px;padding:16px 18px;border-radius:14px;border:1px solid #2A5A68;background:#0E2A33}
.hf-i b{font-size:clamp(16px,1.3vw,19px);font-weight:600;color:#F3F6F5}
.hf-i span{font-size:14px;color:#86A3A8;line-height:1.35}
.hf-res{border-color:var(--natriy);background:linear-gradient(135deg,rgba(242,179,61,.16),rgba(242,179,61,.04));box-shadow:0 0 50px -12px rgba(242,179,61,.45)}
.hf-res b{color:var(--natriy);font-size:clamp(19px,1.7vw,24px)}
.hf-op{align-self:center;font-size:28px;font-weight:300;color:#5F7E84}
.js .hf-i,.js .hf-op{opacity:0;transform:translateY(10px)}
.hf.in .hf-i,.hf.in .hf-op{animation:hfin .55s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i) * .45s + .2s)}
.hf.in .hf-op{animation-delay:calc(var(--i) * .45s + .42s)}
.hf.in .hf-res{animation:hfin .55s cubic-bezier(.2,.8,.2,1) forwards,hfglow 2.4s 2s ease-in-out infinite;animation-delay:1.6s,2.2s}
@keyframes hfin{to{opacity:1;transform:none}}
@keyframes hfglow{50%{box-shadow:0 0 70px -8px rgba(242,179,61,.65)}}
@media (max-width:900px){.hf{grid-template-columns:1fr;gap:8px}.hf-op{justify-self:center;line-height:1;font-size:24px}}

/* шесть шагов */
.hs{position:relative}
.hs-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;position:relative}
.hs-steps::before{content:"";position:absolute;left:4%;right:4%;top:27px;height:2px;background:rgba(12,38,48,.14)}
.hs-steps::after{content:"";position:absolute;left:4%;top:27px;height:2px;width:calc(92% * var(--p,0));background:var(--natriy);transition:width .6s ease}
.hs-steps li{position:relative;z-index:1}
.hs-n{all:unset;box-sizing:border-box;cursor:pointer;display:grid;justify-items:center;text-align:center;gap:6px;width:100%;padding:0 4px 8px}
.hs-n i{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:19px;font-weight:600;background:var(--sneg);border:2px solid rgba(12,38,48,.2);color:var(--kern);transition:all .35s}
.hs-n b{font-size:16.5px;font-weight:600;margin-top:4px}
.hs-n span{font-size:13.5px;line-height:1.35;color:#5A6461;max-width:18ch}
.hs-n.done i{border-color:var(--natriy);color:var(--neft);background:#FBEBC8}
.hs-n[aria-selected="true"] i{background:var(--natriy);border-color:var(--natriy);color:var(--neft);box-shadow:0 0 0 6px rgba(242,179,61,.22)}
.hs-n:focus-visible i{outline:2px solid var(--tura);outline-offset:3px}
/* петля проверки: шаги 3–5 */
.hs-loop{position:relative;margin:2px calc(100% / 6 * 1.5 + 5px) 0 calc(100% / 6 * 2.5 - 5px);height:26px;border:2px dashed rgba(12,38,48,.22);border-top:0;border-radius:0 0 14px 14px;transition:border-color .3s}
.hs-loop span{position:absolute;left:50%;bottom:-11px;transform:translateX(-50%);white-space:nowrap;font-size:12.5px;color:var(--kern);background:var(--sneg);padding:0 8px}
.hs.retry .hs-loop{border-color:var(--natriy)}.hs.retry .hs-loop span{color:#9A6A10}
/* панель шага */
.hs-panels{position:relative;margin-top:30px;min-height:240px;border-radius:18px;background:var(--tura);overflow:hidden;box-shadow:0 30px 70px -36px rgba(12,38,48,.6)}
.hp{position:absolute;inset:0;display:grid;place-items:center;padding:clamp(18px,3vw,36px);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .35s,transform .35s,visibility 0s .35s}
.hp.on{opacity:1;visibility:visible;transform:none;transition:opacity .35s,transform .35s}
.hp-chat{max-width:520px;width:100%;background:#F3F6F5;color:var(--neft);border-radius:4px 16px 16px 16px;padding:14px 16px 16px}
.hp-who{display:flex;align-items:center;gap:10px;font-size:13px;color:#55605D;line-height:1.25}
.hp-who i{width:36px;height:36px;border-radius:50%;background:#C9D3D1 center/cover;flex:none}
.hp-who em{display:block;font-style:normal;color:#8A928E}
.hp-msg{margin-top:10px;font-size:16px;line-height:1.45;min-height:4.4em}
.hp-plan,.hp-calls,.hp-checks{list-style:none;margin:0;padding:0;width:100%;max-width:560px;display:grid;gap:8px}
.hp-plan{counter-reset:p}
.hp-plan li{counter-increment:p;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;color:#DDE7E8;font-size:15.5px;padding:8px 12px;border-radius:9px;background:#0E2A33;border:1px solid #234B58}
.hp-plan li::before{content:counter(p);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;background:#163C48;color:var(--led)}
.hp-calls li{font-family:var(--mono);font-size:14px;color:#C5D6D9;padding:8px 12px;border-radius:8px;background:#081B22;border:1px solid #1E4855;display:flex;gap:8px;align-items:center;min-width:0}
.hp-calls code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#F3F6F5}
.hp-ar{color:var(--natriy)}
.hp-calls em{font-style:normal;color:#9ED9A8;font-size:12.5px}
.hp.on .hp-plan li,.hp.on .hp-calls li,.hp.on .hp-checks li,.hp.on .hp-files span{animation:hpin .4s both;animation-delay:calc(var(--j) * .45s + .15s)}
@keyframes hpin{from{opacity:0;transform:translateY(6px)}}
.hp-app{width:100%;max-width:520px;border-radius:12px;overflow:hidden;border:1px solid #2A5A68;background:#0B1C22}
.hp-app-h{display:flex;align-items:center;gap:7px;padding:9px 12px;background:#12343F;border-bottom:1px solid #234B58;color:#fff;font-size:13.5px}
.hp-app-h i{width:9px;height:9px;border-radius:50%;background:#2E5A66}
.hp-app-h b{margin-left:6px;font-weight:600;flex:1}
.hp-bg{font-size:12px;color:var(--led);border:1px solid rgba(143,211,230,.4);border-radius:999px;padding:2px 9px}
.hp-app-b{display:grid;gap:12px;padding:18px 16px}
.hp-prog{font-size:17px;font-weight:600;color:#F3F6F5;font-variant-numeric:tabular-nums}
.hp-bar{height:8px;border-radius:4px;background:#163C48;overflow:hidden}
.hp-bar u{display:block;height:100%;width:0;background:var(--natriy)}
.hp.on .hp-bar u{animation:hpbar 3.6s ease-in-out forwards}
@keyframes hpbar{to{width:100%}}
.hp-app-b small{font-size:13.5px;color:#86A3A8}
.hp-checks li{display:flex;align-items:center;gap:10px;font-size:15.5px;color:#DDE7E8;padding:9px 12px;border-radius:9px;background:#0E2A33;border:1px solid #234B58}
.hp-checks i{flex:none;width:20px;height:20px;border-radius:50%;background:#2F8F5B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.hp-checks li.bad{border-color:rgba(224,100,90,.55)}
.hp-checks li.bad i{background:#E0645A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat}
.hp-files{display:grid;gap:12px;justify-items:center;text-align:center}
.hp-files small{font-size:14px;color:#86A3A8}
.hp-files div{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.hp-files span{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:500;background:#F3F6F5;color:var(--neft);border-radius:8px;padding:6px 12px 6px 6px}
@media (max-width:900px){
  .hs-steps{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}
  .hs-steps::before,.hs-steps::after,.hs-loop{display:none}
}
@media (max-width:560px){
  .hs-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hs-n i{width:46px;height:46px;font-size:17px}
  .hs-panels{min-height:300px}
}

/* форматы */
.hw-fm{overflow:hidden}
.hw-fm .sec-head p{color:#A8C0C4}
.fm-card{display:flex;align-items:center;gap:16px;width:max-content;max-width:100%;margin:0 auto clamp(28px,5vh,52px);padding:18px 26px 18px 18px;border-radius:16px;background:#F3F6F5;color:var(--neft);box-shadow:0 30px 80px -30px rgba(0,0,0,.7)}
.fm-tag{font-style:normal;font-size:15px;font-weight:700;letter-spacing:.03em;border-radius:8px;padding:12px 12px;min-width:74px;text-align:center;transition:background-color .3s}
.fm-name{font-size:clamp(22px,3vw,36px);font-weight:600;letter-spacing:-.02em;white-space:nowrap}
.fm-ext{font-weight:600;color:var(--kern)}
.fm-ext::after{content:"";display:inline-block;width:3px;height:.9em;margin-left:2px;vertical-align:-.1em;background:var(--tura);animation:led 1s steps(2) infinite}
.fm-rows{display:grid;gap:12px}
.fm-row{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.fm-row>div{display:flex;gap:10px;width:max-content;animation:fmr 46s linear infinite}
.fm-rev>div{animation-direction:reverse;animation-duration:54s}
@keyframes fmr{to{transform:translateX(-50%)}}
.fx{font-family:var(--mono);font-size:15px;font-weight:500;padding:10px 16px;border-radius:10px;border:1px solid #234B58;background:#0E2A33;color:#C5D6D9}
/* цвета групп: документы, таблицы, чертежи и модели, изображения и карты, данные */
.fx.doc,.fm-tag.doc{--c:var(--natriy)}.fx.tab,.fm-tag.tab{--c:#9ED9A8}.fx.cad,.fm-tag.cad{--c:#C7B3E8}.fx.img,.fm-tag.img{--c:#D9D4C7}.fx.dat,.fm-tag.dat{--c:var(--led)}
.fx{border-color:color-mix(in srgb,var(--c) 45%,transparent);color:var(--c)}
.fm-tag{background:var(--c,var(--natriy));color:var(--neft)}
@media (prefers-reduced-motion:reduce){.fm-row>div,.fm-ext::after,.hf.in .hf-res{animation:none}}

/* сравнение с чат-ботом */
.hw-vs{width:100%;border-collapse:collapse;font-size:clamp(16px,1.2vw,18px)}
.hw-vs th{text-align:left;font-size:14px;font-weight:600;padding:0 18px 12px;color:var(--kern)}
.hw-vs th:last-child{color:#9A6A10}
.hw-vs td{width:50%;padding:16px 18px;border-top:1px solid rgba(12,38,48,.12);vertical-align:top}
.hw-vs td:first-child{color:#6A7471;text-decoration:line-through;text-decoration-color:rgba(106,116,113,.45)}
.hw-vs td:last-child{font-weight:500;background:rgba(242,179,61,.08)}
.hw-vs tr:last-child td:last-child{border-radius:0 0 10px 10px}
@media (max-width:600px){.hw-vs th,.hw-vs td{padding-left:10px;padding-right:10px}}

/* финальный призыв */
.hw-end h2{font-size:clamp(1.9rem,3.4vw,3rem);font-weight:500;letter-spacing:-.03em;line-height:1.08;max-width:20ch}
.hw-end p{margin-top:14px;color:#A8C0C4;max-width:50ch}
/* панель шага по высоте самого длинного шага: ничего не обрезается */
.hs-panels{display:grid;min-height:0}
.hp{position:relative;inset:auto;grid-area:1/1}
.hs-cur{display:none}
@media (max-width:560px){
  .hs-steps{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
  .hs-steps::before,.hs-steps::after{display:block;top:20px}
  .hs-n{padding:0}.hs-n i{width:40px;height:40px;font-size:15px}.hs-n b,.hs-n span{display:none}
  .hs-cur{display:grid;gap:2px;text-align:center;margin-top:14px}
  .hs-cur b{font-size:17px;font-weight:600}.hs-cur span{font-size:14px;color:#5A6461}
  .hs-panels{margin-top:16px}
  .hp{padding:16px 12px}
}

/* ===== запись экрана: одна ночная задача ===== */
.pl{--bg:#0B2129;--ln:#234B58;--tx:#DDE7E8;--mu:#8FA9AE;margin-top:8px}
.pl-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:14px}
.pl-tab{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 10px;align-items:center;padding:10px 12px;border-radius:10px;border:1px solid #D3DAD8;background:#fff;transition:border-color .25s,background-color .25s}
.pl-tab:hover{border-color:#9FB0AD}
.pl-tab:focus-visible{outline:2px solid var(--natriy);outline-offset:2px}
.pl-tab i{grid-row:span 2;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:600;font-size:13px;border:1.5px solid #B9C4C1;color:#5D6966}
.pl-tab b{font-size:15px;font-weight:600;line-height:1.2}
.pl-tab span{font-size:12.5px;color:#6A7471;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-tab.done i{border-color:var(--tura);color:var(--tura)}
.pl-tab[aria-selected="true"]{border-color:var(--tura);background:var(--tura);color:#EEF3F3}
.pl-tab[aria-selected="true"] i{background:var(--natriy);border-color:var(--natriy);color:var(--neft)}
.pl-tab[aria-selected="true"] span{color:#A8C0C4}
.pl-scr{background:var(--bg);color:var(--tx);border-radius:16px 16px 0 0;overflow:hidden;border:1px solid #2A5A68;border-bottom:0;box-shadow:0 40px 80px -48px rgba(12,38,48,.8)}
.pl-bar{height:40px;display:flex;align-items:center;gap:7px;padding:0 14px;background:#12343F;border-bottom:1px solid var(--ln)}
.pl-bar>i{width:10px;height:10px;border-radius:50%;background:#2E5A66}
.pl-title{flex:1;margin-left:8px;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-clock{display:flex;align-items:center;gap:6px;font-size:13.5px;color:#C5D6D9;font-variant-numeric:tabular-nums}
.pl-clock svg{width:16px;height:16px;fill:none;stroke:var(--natriy);stroke-width:2;stroke-linecap:round}
.pl-clock .sy-moon{display:none;fill:#C5D6D9;stroke:none}
.pl-scr.night .sy-sun{display:none}.pl-scr.night .sy-moon{display:block}
.pl-body{display:grid;grid-template-columns:minmax(230px,30%) minmax(0,1fr);height:clamp(400px,58vh,540px)}
/* журнал харнеса */
.pl-ag{display:grid;grid-template-rows:auto minmax(0,1fr);border-right:1px solid var(--ln);background:#09191F;min-height:0}
.pl-ag-h{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--ln);font-size:13px}
.pl-ag-h b{display:flex;align-items:center;gap:8px;font-size:14px}
.pl-ag-h b i{width:8px;height:8px;border-radius:50%;background:#5F7E84}
.pl-scr.busy .pl-ag-h b i{background:var(--natriy);animation:led 1s steps(2) infinite}
.pl-ag-s{color:var(--mu)}
.pl-log{overflow:hidden;padding:10px 14px 14px;display:flex;flex-direction:column;gap:7px;scroll-behavior:smooth;font-size:13.5px;line-height:1.4}
.lg{display:none;animation:lgIn .35s ease-out}
.lg.on{display:block}
@keyframes lgIn{from{opacity:0;transform:translateY(6px)}}
.lg code{font-family:var(--mono);font-size:12.5px;color:var(--led);background:rgba(143,211,230,.08);border-radius:4px;padding:2px 6px;display:inline-block;max-width:100%;overflow-wrap:anywhere}
.lg-wait span{color:var(--mu)}
.lg-h{margin-top:4px;font-weight:600;color:#fff}
.lg-li span::before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;border:1.5px solid var(--mu);border-radius:3px;vertical-align:-1px}
.lg-ok span{color:#9EE0B0}.lg-ok span::before{content:"✓ ";font-family:var(--mono)}
.lg-bad span{color:#F09189}.lg-bad span::before{content:"✗ ";font-family:var(--mono)}
.lg-live span{color:var(--natriy);font-variant-numeric:tabular-nums}
/* окна программ */
.pl-ws{position:relative;min-width:0;min-height:0}
.pv{position:absolute;inset:0;padding:clamp(14px,2vw,22px);opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s;display:grid}
.pv.on{opacity:1;visibility:visible;transition:opacity .35s}
/* 0 письмо */
.pm{align-self:center;background:#F3F6F5;color:var(--neft);border-radius:12px;padding:18px 20px;display:grid;gap:8px;max-width:560px;width:100%;justify-self:center;box-shadow:0 24px 50px -30px #000}
.pm-who{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.pm-who i{width:38px;height:38px;border-radius:50%;background:#C9D3D1 center/cover}
.pm-row{display:flex;gap:10px;font-size:14px;border-bottom:1px solid #DCE2E0;padding-bottom:6px}
.pm-row small{width:4.5em;color:#6A7471;font-size:13px}
.pm-body{min-height:6.2em;font-size:16px;line-height:1.5;padding-top:4px}
.pm-body s{display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-.15em;background:var(--tura);text-decoration:none;animation:led 1s steps(2) infinite}
.pm-foot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pm-att{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;border:1px solid #CDD5D3;border-radius:8px;padding:5px 10px 5px 5px;opacity:0;transform:translateY(6px);transition:all .3s}
.pv.att .pm-att{opacity:1;transform:none}
.pm-send{background:var(--tura);color:#fff;font-size:14px;font-weight:600;border-radius:8px;padding:8px 16px;transition:background-color .2s,transform .2s}
.pv.sent .pm-send{background:var(--natriy);color:var(--neft);transform:scale(.95)}
/* 1 таблица */
.px{overflow:hidden;background:#fff;border-radius:6px;color:var(--neft);font-size:13.5px;font-variant-numeric:tabular-nums}
.px table{width:100%;border-collapse:collapse}
.px th,.px td{border:1px solid #DCE2E0;padding:5px 10px;text-align:right;height:28px}
.px thead th{position:sticky;top:0;background:#E7EEEB;font-weight:600;text-align:center;z-index:1}
.px tbody th{background:#F1F4F3;color:#8A928E;font-weight:400;width:36px;text-align:center}
.px tr.rd td{color:#6A7471}
.px tr.hl td{background:#FFF1CF;outline:2px solid var(--natriy);outline-offset:-2px}
/* 2 модель */
.pc{position:relative;background:#0E2A33;border-radius:8px;background-image:linear-gradient(rgba(143,211,230,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(143,211,230,.07) 1px,transparent 1px);background-size:20px 20px;display:grid}
.pc svg,.pf-cv svg,.pq-fix svg,.pp-dwg svg{width:100%;height:100%;min-height:0;font-family:var(--font)}
.pc-tree{position:absolute;right:12px;top:12px;display:grid;gap:4px;font-size:12.5px;background:rgba(9,25,31,.85);border:1px solid var(--ln);border-radius:8px;padding:8px 10px}
.pc-tree li{opacity:.3;transition:opacity .3s}.pc-tree li::before{content:"▸ ";color:var(--natriy)}
.pc-tree li.on{opacity:1}
.bk-body,.bk-rib{fill:rgba(143,211,230,.08);stroke:#E6EDED;stroke-width:2;stroke-dasharray:1;stroke-linejoin:round;transition:fill .3s}
.bk.st .bk-body,.bk.st .bk-rib{stroke:#0B2129;stroke-width:1.5}
.bk-rib{transition:opacity .3s}
.bk-dim{transition:opacity .4s}
.bk-dim path{fill:none;stroke:var(--natriy);stroke-width:1}
.bk-dim text{fill:var(--natriy);font-size:12px;font-family:var(--mono)}
/* 3 прочность */
.pf{grid-template-rows:minmax(0,1fr) auto auto auto;display:grid;gap:8px}
.pf-cv{position:relative;display:grid;min-height:0;background:#0E2A33;border-radius:8px}
.pf-leg{position:absolute;right:10px;top:10px;bottom:10px;width:46px;display:grid;grid-template-rows:auto 1fr;grid-template-columns:12px 1fr;column-gap:6px;font-size:11px;color:var(--mu)}
.pf-leg b{grid-column:span 2;font-weight:500;margin-bottom:4px}
.pf-leg i{grid-row:2 / span 3;border-radius:3px;background:linear-gradient(#E0645A,#F2B33D 30%,#5FD68A 58%,#3B82C4)}
.pf-leg span{grid-column:2;grid-row:2;align-self:start}.pf-leg span:nth-of-type(2){align-self:center}.pf-leg span:nth-of-type(3){align-self:end}
.pf-ctl{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px}
.pf-ctl label{display:flex;align-items:center;gap:10px;flex:1;white-space:nowrap}
.pf-ctl label b{min-width:1.6em;color:var(--natriy);font-variant-numeric:tabular-nums}
.pf-ctl input{flex:1;accent-color:var(--natriy);min-width:80px;cursor:grab}
.pf-sf{white-space:nowrap}.pf-sf b{font-variant-numeric:tabular-nums;color:#9EE0B0}.pf-sf.bad b{color:#F09189}
.pf-hint{font-size:12px;color:var(--mu);margin-top:-6px;transition:opacity .3s}.pv.touched .pf-hint{opacity:0}
.pf-bars{display:flex;align-items:flex-end;gap:3px;height:34px}
.pf-bars i{flex:1;background:#1C3E49;border-radius:2px 2px 0 0;min-height:3px;transition:background-color .2s}
.pf-bars i.on{background:#5FD68A}.pf-bars i.bad{background:#E0645A}.pf-bars i.cur{background:var(--natriy)}
/* 4 проверка */
.pq{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:14px;min-height:0}
.pq-t{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(12,minmax(0,1fr));gap:3px 10px;font-size:13px;font-variant-numeric:tabular-nums;min-height:0}
.pq-t li{display:grid;grid-template-columns:2em 1fr auto;gap:6px;align-items:center;padding:0 8px;border-radius:5px;background:#10303A;opacity:.25;transition:opacity .2s,background-color .3s}
.pq-t li.on{opacity:1}
.pq-t li b{color:var(--mu);font-weight:500}.pq-t li span{color:#B6C8CB}
.pq-t li em{font-style:normal;color:#9EE0B0;font-weight:600}
.pq-t li.bad{background:rgba(224,100,90,.25);outline:1.5px solid #E0645A}.pq-t li.bad em{color:#F09189}
.pq-t li.fixed{background:rgba(95,214,138,.2);outline:1.5px solid #5FD68A}
.pq-fix{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;background:#0E2A33;border-radius:10px;padding:12px;opacity:.2;transition:opacity .3s,outline-color .3s;outline:1.5px solid transparent}
.pq-fix.on{opacity:1;outline-color:#E0645A}.pq-fix.ok{outline-color:#5FD68A}
.pq-fix>b{font-size:14px}
.pq-fix p{display:grid;gap:4px;font-size:13px}
.pq-a{color:#F09189}.pq-b{color:#9EE0B0;opacity:.25;transition:opacity .3s}.pq-fix.ok .pq-b{opacity:1}.pq-fix.ok .pq-a{text-decoration:line-through;opacity:.6}
/* 5 почта с вложениями */
.po{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto;gap:8px;min-height:0}
.po-h{display:flex;justify-content:space-between;gap:10px;font-size:14px}.po-h em{font-style:normal;color:var(--mu)}
.po-s{font-weight:600;font-size:15px}
.po-b{font-size:14px;color:#C5D6D9;line-height:1.45}
.po-files{display:flex;flex-wrap:wrap;gap:8px}
.po-files button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-size:13.5px;background:#F3F6F5;color:var(--neft);border-radius:8px;padding:5px 12px 5px 5px;opacity:0;transform:translateY(8px);transition:opacity .3s,transform .3s,box-shadow .2s}
.po-files button.in{opacity:1;transform:none}
.po-files button[aria-selected="true"]{box-shadow:0 0 0 2px var(--natriy)}
.po-files button:focus-visible{outline:2px solid var(--natriy);outline-offset:2px}
.po-pre{position:relative;min-height:0;border-radius:8px;background:#09191F;overflow:hidden}
.pp{position:absolute;inset:0;padding:12px;opacity:0;transform:scale(.97);transition:opacity .3s,transform .3s;display:grid}
.pp.on{opacity:1;transform:none}
.pp-page{background:#fff;color:var(--neft);border-radius:4px;padding:14px 18px;display:grid;align-content:start;gap:6px;width:min(100%,420px);justify-self:center;overflow:hidden;box-shadow:0 10px 30px -10px #000}
.pp-page b{font-size:14px}.pp-page small{font-size:11.5px;color:#6A7471}.pp-page em{font-style:normal;font-size:11.5px;font-weight:600;margin-top:4px}
.pp-page u{display:block;height:5px;border-radius:3px;background:#E3E8E6}.pp-page u.s{width:60%}
.pp-ch rect{fill:#5FD68A}.pp-ch rect.f{fill:var(--natriy)}.pp-ch line{stroke:#E0645A;stroke-dasharray:3 3}.pp-ch text{fill:#E0645A;font-size:8px}
.pp-xls{align-content:start}
.pp-xls table{width:100%;border-collapse:collapse;background:#fff;color:var(--neft);font-size:13px;font-variant-numeric:tabular-nums}
.pp-xls th,.pp-xls td{border:1px solid #DCE2E0;padding:4px 8px;text-align:right}.pp-xls th{background:#E7EEEB;text-align:center}
.pp-xls tr.f td{background:#FFF1CF}
.pp-dwg{background:#0A1A20}
.pp-stamp{position:absolute;right:12px;bottom:12px;border:1px solid #8FA9AE;padding:6px 10px;display:grid;font-size:11.5px;color:#C5D6D9;background:#0A1A20}
.po-hint{font-size:12px;color:var(--mu)}
/* панель управления */
.pl-ctl{display:flex;align-items:center;gap:14px;padding:10px 14px;background:#12343F;border:1px solid #2A5A68;border-top:1px solid var(--ln);border-radius:0 0 16px 16px;color:#C5D6D9}
.pl-pp{all:unset;cursor:pointer;width:36px;height:36px;border-radius:50%;background:var(--natriy);display:grid;place-items:center;flex:none}
.pl-pp:focus-visible{outline:2px solid #fff;outline-offset:2px}
.pl-pp svg{width:18px;height:18px;fill:var(--neft)}
.pl-pp .i-play{display:none}.pl.paused .pl-pp .i-play{display:block}.pl.paused .pl-pp .i-pause{display:none}
.pl-tl{flex:1;display:flex;gap:4px}
.pl-seg{all:unset;cursor:pointer;height:20px;position:relative}
.pl-seg::before{content:"";position:absolute;left:0;right:0;top:8px;height:4px;border-radius:2px;background:#2E5A66}
.pl-seg u{position:absolute;left:0;top:8px;height:4px;border-radius:2px;background:var(--natriy);width:0}
.pl-seg:hover::before{background:#3D7080}
.pl-seg:nth-child(1){flex:6}.pl-seg:nth-child(2){flex:5}.pl-seg:nth-child(3){flex:6}.pl-seg:nth-child(4){flex:8}.pl-seg:nth-child(5){flex:7}.pl-seg:nth-child(6){flex:7}
.pl-time{font-size:13px;font-variant-numeric:tabular-nums;font-family:var(--mono);min-width:7.5em;text-align:right}
@media (max-width:1000px){.pl-tab span{display:none}.pl-tab{grid-template-columns:28px minmax(0,1fr)}.pl-tab i{grid-row:auto}}
@media (max-width:760px){
  .pl-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pl-tab{padding:8px}.pl-tab b{font-size:14px}
  .pl-body{grid-template-columns:1fr;grid-template-rows:340px 150px;height:auto}
  .pl-ag{order:2;border-right:0;border-top:1px solid var(--ln)}
  .pl-ag-h{padding:8px 12px}.pl-log{padding:8px 12px}
  .pv{padding:12px}
  .pq{grid-template-columns:1fr}.pq-fix{display:none}
  .pq-t{font-size:12px;gap:2px 6px}.pq-t li{padding:0 5px}
  .pm{padding:14px}.pm-body{font-size:14.5px}
  .pl-time{min-width:0;font-size:12px}
  .pp-page{padding:10px 12px}
}
.pv{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.pv>*{min-width:0;min-height:0}
.pm{align-self:center;height:auto}
.pc,.pf-cv{overflow:hidden}
.pl-tab{min-width:0;overflow:hidden}
.pl-tab b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:760px){
  .pl-tab{grid-template-columns:1fr;justify-items:center;text-align:center;padding:9px 4px}
  .pl-tab i{display:none}.pl-tab b{font-size:13.5px;max-width:100%}
  .pl-body{grid-template-rows:400px 150px}
  .pf-ctl{flex-wrap:wrap;gap:4px 12px}.pf-ctl label{flex:1 1 100%}
  .pf-hint{display:none}
  .po{gap:6px}.po-b{font-size:13px}.po-hint{display:none}
  .po-files button{font-size:12.5px;padding:4px 9px 4px 4px}
}
.lg-li span::before{transition:background-color .3s}
.lg-li.dn span{color:#9EE0B0}
.lg-li.dn span::before{background:#5FD68A;border-color:#5FD68A;box-shadow:inset 0 0 0 2px #09191F}
/* мелкие экраны: всё внутри рамок */
.pm-row span{min-width:0;overflow-wrap:anywhere}
.pm-foot{flex-wrap:wrap}
@media (max-width:1000px){
  .pq{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:10px}
  .pq-t{font-size:12px;gap:3px 6px}.pq-t li{grid-template-columns:1.6em minmax(0,1fr) auto;gap:4px;padding:0 6px}
  .pq-t li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:760px){
  .px{font-size:12px}.px th,.px td{padding:4px 6px;height:26px}.px thead th{white-space:nowrap}
}
@media (max-width:400px){
  .pm{padding:12px;gap:6px}.pm-who i{width:32px;height:32px}.pm-who b{font-size:14px}
  .pm-row{font-size:13px}.pm-row small{width:3.8em;font-size:12px}
  .pm-body{font-size:13.5px;min-height:5.6em}
  .pm-send{font-size:13px;padding:7px 12px}.pm-att{font-size:12.5px}
  .pl-body{grid-template-rows:380px 128px}
  .po-h{display:none}.po-s{font-size:14px}.po-b{font-size:12.5px;line-height:1.4}
  .pp{padding:8px}.pp-xls table{font-size:12px}.pp-xls th,.pp-xls td{padding:3px 5px}
  .pp-page{padding:8px 10px;gap:4px}.pp-page b{font-size:12.5px}
  .pl-ctl{gap:10px;padding:8px 10px}.pl-pp{width:32px;height:32px}
  .pl-bar{padding:0 10px;gap:5px}.pl-bar>i{width:8px;height:8px}.pl-title{font-size:13px;margin-left:4px}.pl-clock{font-size:12.5px}
}
.pp-page{max-height:100%}
.pp-ch{width:100%;min-height:0}
@media (max-width:760px){
  .pp-page{grid-template-rows:auto auto minmax(0,1fr);align-content:stretch}
  .pp-page u,.pp-page em{display:none}
  .pp-ch{height:100%}
}
/* первый экран: текст слева, формула столбиком справа */
@media (min-width:1100px){
  .hw-hero .wrap{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);column-gap:clamp(40px,6vw,110px);align-items:center}
  .hw-hero .wrap>*:not(.hf){grid-column:1}
  .hw-back{justify-self:start}
  .hf{grid-column:2;grid-row:1 / span 3;margin:0;grid-template-columns:1fr;gap:6px;max-width:440px;width:100%;justify-self:end}
  .hf-op{justify-self:center;line-height:1;font-size:24px}
}
/* значки у слагаемых формулы */
.hf-i{grid-template-columns:auto minmax(0,1fr);column-gap:14px}
.hf-i::before{content:"";grid-row:span 2;align-self:center;width:42px;height:42px;border-radius:11px;background:#163C48 center/24px no-repeat}
.hf-i:nth-child(1)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD3E6' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E")}
.hf-i:nth-child(3)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD3E6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.2L3 17.8V21h3.2l6.3-6.3a4 4 0 0 0 5.2-5.4l-2.6 2.6-2.4-.4-.4-2.4z'/%3E%3C/svg%3E")}
.hf-i:nth-child(5)::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD3E6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4zM20 4h-5a2 2 0 0 0-2 2'/%3E%3Cpath d='M20 4v14h-7'/%3E%3C/svg%3E")}
.hf-res::before{background-color:var(--natriy)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1612' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E")!important}
@media (max-width:560px){.hf-i::before{width:36px;height:36px;background-size:20px}.hf-i{padding:12px 14px}}
@media (min-width:761px) and (max-width:1000px){.pl-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.pl-tab{padding:9px 12px}}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){
  .pl-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-bottom:8px}
  .pl-tab{grid-template-columns:1fr;justify-items:center;padding:6px 4px}.pl-tab i,.pl-tab span{display:none}.pl-tab b{font-size:13px}
  .pl-body{height:max(250px,calc(100svh - 150px))}
  .pl-bar{height:34px}
  .pq-fix{display:none}.pq{grid-template-columns:1fr}
}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){.pl-body{height:max(210px,calc(100svh - 196px))}.pf-hint,.pf-bars{display:none}}
@media (max-width:760px),(orientation:landscape) and (max-height:520px){
  .pp-pdf{align-items:stretch}
  .pp-page{height:100%;overflow:hidden;align-content:start;grid-template-rows:auto auto minmax(0,1fr)}
  .pp-page u,.pp-page em{display:none}
  .pp-ch{height:100%;width:100%;min-height:0}
}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){.pq-t{gap:2px 6px}.pq-t li{font-size:11.5px}}
@media (max-width:760px),(orientation:landscape) and (max-height:520px){
  .po-h{display:none}
  .po-b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .po-files{flex-wrap:nowrap;gap:6px}
  .po-files button{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:4px 7px 4px 4px}
  .po-files button i{display:inline-block;margin-right:5px;vertical-align:1px}
  .po-pre{min-height:150px}
}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){.po-b{display:none}.po-pre{min-height:0}.pv{padding:10px}}
.po{grid-template-columns:minmax(0,1fr)}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){.pq-t{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}}
.po{display:flex;flex-direction:column;min-height:0}
.po>*{flex:none}
.po-pre{flex:1 1 0;min-height:120px}
@media (orientation:landscape) and (max-height:520px) and (min-width:600px){.po-pre{min-height:0}}
