/* Стиль одобренного макета (design/maket.html): шрифты Montserrat и Golos Text лежат на этом же сервере. */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/golos-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/golos-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/golos-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/montserrat-800-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/montserrat-800-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/montserrat-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --ink:#111114; --muted:#86868B; --line:#E4E2E0; --soft:#F6F4F2;
  --pink:#C2125E; --pink-soft:#FCE6EF;
  --green-soft:#E3F5EA; --amber-soft:#FFF2D9;
  --g-brand:linear-gradient(135deg,#8E2BC4 0%,#D8246A 40%,#F2592C 72%,#F9B43E 100%);
  --g-btn:linear-gradient(90deg,#C2125E 0%,#F0592A 100%);
  --head:'Montserrat',system-ui,sans-serif; --body:'Golos Text',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--soft)}
body{font-family:var(--body);color:var(--ink);-webkit-font-smoothing:antialiased;min-height:100vh}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;text-align:inherit}
main{max-width:560px;margin:0 auto;padding:6px 14px calc(96px + env(safe-area-inset-bottom))}
main.notabs{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
.muted{color:var(--muted)}

.d-name{font-family:var(--head);font-weight:800;font-size:34px;letter-spacing:-.6px;padding:8px 6px 14px;line-height:1.1}
.d-card{background:#fff;border-radius:24px;padding:16px;margin-bottom:12px;box-shadow:0 2px 10px rgba(0,0,0,.03)}
.d-card h4{font-family:var(--head);font-weight:800;font-size:17px;margin-bottom:8px}
.d-card p{font-size:14.5px;line-height:1.45;color:#3E3E43}
.line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 0;border-top:1px solid #F0EEEC;font-size:14.5px}
.line:first-of-type{border-top:0}
.line b{font-weight:700;white-space:nowrap}

.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;background:#fff;border-radius:99px;padding:9px 15px;font-size:14.5px;font-weight:600;box-shadow:0 0 0 1px var(--line)}
.chip.on{background:var(--ink);color:#fff;box-shadow:none}
.chip small{opacity:.6;font-weight:500;margin-left:4px}

.grp{font-family:var(--head);font-weight:800;font-size:21px;padding:14px 6px 2px}
.sub{font-size:13px;font-weight:600;color:var(--muted);padding:8px 6px 6px}
.acc{background:#fff;border-radius:22px;padding:14px 16px;margin-bottom:10px;display:block;width:100%}
.acc:active{transform:scale(.99)}
.acc .t{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.acc .nm{font-family:var(--head);font-weight:800;font-size:18px}
.acc .km{font-size:13px;color:var(--muted);margin-top:1px}
.acc .sc{font-family:var(--head);font-weight:800;font-size:18px;color:#C9C9CD}
.st{margin-top:10px;font-size:14px;line-height:1.4;border-radius:12px;padding:8px 11px}
.st.ok{background:var(--green-soft);color:#0F6E3C}
.st.wait{background:var(--amber-soft);color:#8A5300}
.st.none{background:var(--soft);color:#5B5B60}

.back{font-size:15px;font-weight:600;color:var(--pink);padding:6px 6px 0;display:inline-block}
.ptitle{font-family:var(--head);font-weight:800;font-size:32px;letter-spacing:-.6px;padding:4px 6px 0;line-height:1.1}
.psub{font-size:14px;color:var(--muted);padding:4px 6px 14px}

.seg{display:flex;background:#E9E6E3;border-radius:14px;padding:3px;margin:0 2px 12px}
.seg button{flex:1;padding:9px 4px;border-radius:11px;font-size:14px;font-weight:700;color:#5B5B60;text-align:center}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.weeks{display:grid;gap:10px}
.weeks.two{grid-template-columns:1fr 1fr}
.week{background:#fff;border-radius:20px;padding:12px}
.week .wh{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:8px;display:flex;justify-content:space-between}
.week .wh b{color:var(--ink);font-family:var(--head);font-size:15px}
.pill{display:inline-block;font-size:13.5px;font-weight:600;background:var(--soft);border-radius:10px;padding:6px 9px;margin:0 4px 6px 0}
.bal{display:flex;height:14px;border-radius:9px;overflow:hidden;gap:3px;margin:8px 0 6px}
.bal i{display:block;height:100%;border-radius:5px}
.hint{font-size:14px;line-height:1.45;border-radius:14px;padding:10px 12px;margin-top:8px}
.kmg{margin:12px 0 4px}
.kmg-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0 6px}
.kmg-h b{font-family:var(--head);font-weight:800;font-size:17px}
.kmg-h span{font-size:13px;color:var(--muted);font-weight:600}
.kmg .bal{margin:6px 6px 0}
.kmg .hint{margin:6px 0 8px}
.crow{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border-radius:18px;padding:11px 14px;margin-bottom:8px}
.crow .nm{font-weight:700;font-size:15px}
.per{font-size:13px;font-weight:700;padding:6px 10px;border-radius:9px;background:var(--g-btn);color:#fff;white-space:nowrap}
.per.p2{background:linear-gradient(90deg,#F0592A 0%,#F9B43E 100%)}
.note{font-size:12.5px;color:#5B5B60;margin:4px 6px 10px;line-height:1.45}

.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #EEECEA;padding:8px 10px calc(10px + env(safe-area-inset-bottom))}
.tabs button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:600;color:#A2A2A7;padding:4px 14px}
.tabs button.on{color:var(--pink)}
.tabs svg{width:26px;height:26px}
.err{background:#fff;border-radius:24px;padding:18px;margin-top:20px;font-size:15px;line-height:1.45}

/* ---------- проект: оценки и статистика ---------- */
.defs{position:absolute;width:0;height:0}
.mini{display:inline-flex;gap:1px;vertical-align:-2px}
.mini svg{display:block}
.acc .sc{display:flex;align-items:center;gap:4px;color:var(--ink)}
.acc .sc.none{color:#C9C9CD}
.up{color:#0F8A4A;font-size:13px;font-weight:700}
.down{color:#C62828;font-size:13px;font-weight:700}
.st.demo{background:#F3E8FB;color:#5B2A86}
.big{font-family:var(--head);font-weight:800;font-size:20px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.tile{background:#fff;border-radius:22px;padding:14px 14px 12px 16px;position:relative;overflow:hidden}
.tile .k{font-size:13px;color:var(--muted);font-weight:600}
.tile .v{font-family:var(--head);font-weight:800;font-size:23px;margin-top:4px;letter-spacing:-.4px}
.tile .d{font-size:13px;margin-top:3px;min-height:16px}
.tile.wide{grid-column:span 2;display:flex;justify-content:space-between;align-items:center}
.tile .accent{position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--g-brand)}
.mchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.mchips button{font-size:13px;font-weight:600;padding:7px 12px;border-radius:99px;background:var(--soft)}
.mchips button.on{background:var(--g-btn);color:#fff}
.chart{position:relative;margin-top:4px;touch-action:pan-y}
.chart svg{display:block;overflow:visible}
.tip{position:absolute;top:0;width:150px;background:#1B1B1E;color:#fff;border-radius:12px;padding:8px 10px;font-size:12.5px;line-height:1.5;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.tip .tt{font-weight:700;margin-bottom:2px}
.tip i,.legend i,.rev summary i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:0}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:13px;font-weight:600}
.legend small{color:var(--muted);font-weight:500}
.legend i{width:12px;height:12px;border-radius:3px;vertical-align:-1px}
.rev{border-top:1px solid #F0EEEC}
.rev:first-of-type{border-top:0}
.rev summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 0;cursor:pointer;font-size:14.5px;font-weight:600}
.rev summary::-webkit-details-marker{display:none}
.rev summary small{color:var(--muted);font-weight:500;font-size:12.5px}
.rev summary b{font-family:var(--head);font-weight:800}
.qrow{padding:9px 0;border-top:1px solid #F6F4F2}
.qrow .qt{display:flex;justify-content:space-between;gap:10px;font-size:14px;font-weight:500}
.qrow .cm{font-size:14px;color:#3E3E43;margin-top:6px;line-height:1.45;background:var(--soft);border-radius:12px;padding:8px 10px}
