/* Шрифт Rubik хранится на сайте математики (лицензия SIL OFL, fonts/OFL.txt) — без запросов к сторонним серверам */
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rubik-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/rubik-latin-500-normal.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:'Rubik';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rubik-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/rubik-latin-600-normal.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:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-latin-700-normal.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:'Rubik';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/rubik-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Rubik';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/rubik-latin-800-normal.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}
/* Дизайн-система тренажёра по математике (образец — english-games-site/src/base.css).
   Палитра: фирменная «Райская Птица», линия математики — оранжевая. */
:root{
  /* дизайн «Яркие острова»: белый фон, фиолетовые кнопки, у каждого блока свой цвет */
  --brand:#5B34C9;        /* заголовки, главные кнопки */
  --brand-2:#5B34C9;
  --brand-dark:#3A1F8A;
  --accent:#E0520F;       /* оранжевый: чертежи и графика */
  --teal:#0A7D83;
  --gold:#FFD300; --gold-soft:#FFE773;
  --paper:#FFFFFF; --ink:#1D2433; --muted:#525D72; --line:#E1E6F0; --tint:#F3F5FA;
  --soft:#ECE6FF; --soft-text:#3F2296;
  --ok:#1E7A3C; --ok-bg:#E4F4E9; --bad:#B3261E; --bad-bg:#FDECEA;
  --field-line:#7C879B;
  --font-display:'Rubik','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --font-body:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --shadow:0 8px 22px rgba(58,31,138,.14);
  --shadow-sm:0 2px 10px rgba(29,36,51,.10);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font-body);background:var(--paper);color:var(--ink);min-height:100vh;-webkit-text-size-adjust:100%}
h1,h2,h3,.btn,.st .t,.stair b{font-family:var(--font-display)}
.wrap{max-width:900px;margin:0 auto;padding:16px 14px 44px}

/* шапка — тёмная полоса, как в библиотеке игр */
h1{font-size:27px;line-height:1.15;margin:18px 0 6px;font-weight:700;color:var(--brand)}
h2{font-size:21px;margin:0 0 6px;font-weight:700;color:var(--brand)}
h3{font-size:16px;margin:15px 0 5px;color:var(--brand);font-weight:700}
p{line-height:1.6;margin:8px 0}
.lead{font-size:16.5px;line-height:1.65}
.muted{color:var(--muted)}
.small{font-size:13px}
.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow-sm)}
.panel.dark{background:linear-gradient(165deg,#3A1C12,#2A1209 75%);border:0;color:#fff;box-shadow:var(--shadow)}
.panel.dark .muted{color:#E8C9B8}
.panel.dark h2,.panel.dark h3{color:#fff}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{background:var(--brand-2);color:#fff;border:0;border-radius:999px;padding:12px 26px;font:inherit;
  font-family:var(--font-display);font-weight:600;font-size:16px;cursor:pointer;box-shadow:var(--shadow)}
.btn:hover{background:#B13C09}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:#fff;color:var(--brand);border:1.5px solid var(--line);box-shadow:none}
.btn.ghost:hover{border-color:var(--brand-2);background:var(--tint)}
.btn.sm{padding:9px 18px;font-size:14px;box-shadow:none}
.panel.dark .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.speak{background:#fff;border:1.5px solid var(--line);color:var(--brand);border-radius:999px;
  padding:7px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.speak:hover{border-color:var(--brand-2);background:var(--tint)}
.back{background:none;border:0;color:var(--muted);font:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:6px 0}
.back:hover{color:var(--brand)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
input[type=range]{accent-color:var(--accent);width:100%;height:34px}

/* вводная карточка темы с пилюлями — как «Слова: Питомцы» */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:6px 13px 6px 7px;font-size:13.5px;font-weight:600;color:var(--ink)}
.chip i{width:22px;height:22px;border-radius:50%;background:var(--tint);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12px}

/* ступеньки и карточки станций — как «Ступенька 1. Знакомлюсь» + карточки игр */
.stairs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:8px;align-items:start}
.stair{display:flex;flex-direction:column;gap:10px}
.stair .sh{display:flex;align-items:flex-start;gap:9px;padding:0 2px}
.stair .num{width:26px;height:26px;border-radius:50%;background:var(--gold);color:#4A2A00;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;font-family:var(--font-display)}
.stair b{font-size:14.5px;font-weight:700;color:var(--brand);line-height:1.2;display:block}
.stair .sd{font-size:12px;color:var(--muted);display:block;margin-top:2px;line-height:1.3}
.st{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:14px;color:var(--ink);font:inherit;cursor:pointer;transition:.15s;box-shadow:var(--shadow-sm);width:100%}
.st:hover{border-color:var(--brand-2);transform:translateY(-2px);box-shadow:var(--shadow)}
.st .ico{width:34px;height:34px;border-radius:50%;background:var(--tint);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-size:17px;margin-bottom:8px}
.st .t{font-weight:700;font-size:15.5px;margin:0 0 4px;line-height:1.2;color:var(--ink)}
.st .d{font-size:12.5px;color:var(--muted);line-height:1.4}
.st .tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.st .tg{background:var(--tint);border:1px solid var(--line);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:600;color:var(--muted)}
.st .play{margin-top:11px;display:inline-block;background:var(--brand-2);color:#fff;border-radius:999px;
  padding:8px 20px;font-family:var(--font-display);font-weight:600;font-size:14px}
.st .sr{margin-top:9px;font-size:14px;font-weight:700;color:var(--gold);text-shadow:0 0 1px rgba(74,42,0,.5)}
.st.lit{border-color:var(--brand-2);background:linear-gradient(170deg,#FFF8F3,#FDEDE3)}
.st.locked{opacity:.55;cursor:not-allowed;background:var(--paper);box-shadow:none}
.st.locked:hover{transform:none;border-color:var(--line);box-shadow:none}
.st.locked .play{background:var(--line);color:var(--muted)}
.cityscape{width:100%;height:auto;display:block;margin:4px 0 2px;border-radius:12px}
.progress{height:10px;border-radius:999px;background:var(--tint);overflow:hidden;margin:10px 0 2px;border:1px solid var(--line)}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--accent));border-radius:999px;transition:width .5s}
figure{margin:0}
svg.fig{width:100%;max-width:400px;height:auto;display:block;margin:0 auto}
.qbox{background:var(--tint);border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0 0}
.panel.dark .qbox{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
.q{font-size:17px;font-weight:600;line-height:1.5}
.opts{display:flex;flex-direction:column;gap:9px;margin-top:11px}
.opt{text-align:left;background:#fff;border:2px solid var(--line);color:var(--ink);border-radius:13px;
  padding:12px 15px;font:inherit;font-size:15.5px;font-weight:600;cursor:pointer;line-height:1.4}
.opt:hover{border-color:var(--brand-2);background:var(--tint)}
.opt .mk{font-weight:700;margin-right:6px;color:var(--brand)}
input[type=text]{background:#fff;border:2px solid var(--field-line);color:var(--ink);border-radius:12px;
  padding:12px 13px;font:inherit;font-size:19px;font-weight:700;width:118px;text-align:center}
input[type=text]:focus{outline:none;border-color:var(--accent)}
.ilab{font-size:13.5px;color:var(--muted);display:block;margin-bottom:4px;font-weight:600}
.fb{margin-top:11px;border-radius:13px;padding:12px 15px;font-size:15px;line-height:1.55;border:1px solid}
.fb.ok{background:var(--ok-bg);border-color:#A9D9BC;color:var(--ink)}
.fb.no{background:#FFF4E8;border-color:#F0CDA8;color:var(--ink)}
.fb b{color:var(--brand)}
.fb.ok b{color:var(--ok)}
.steps{margin:7px 0 0;padding-left:20px;line-height:1.7}
.tag{display:inline-block;background:var(--tint);border:1px solid var(--line);border-radius:999px;
  padding:4px 12px;font-size:11.5px;font-weight:700;margin-bottom:9px;color:var(--brand);letter-spacing:.4px}
.dots{display:flex;gap:6px;margin:0 0 10px}
.dots i{width:28px;height:6px;border-radius:999px;background:var(--line)}
.dots i.on{background:var(--accent)}
.dots i.cur{background:var(--gold)}
.levels{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.lvl{flex:1;min-width:170px;text-align:left;background:#fff;border:2px solid var(--line);color:var(--ink);
  border-radius:16px;padding:14px;cursor:pointer;font:inherit;box-shadow:var(--shadow-sm)}
.lvl:hover{border-color:var(--brand-2);box-shadow:var(--shadow)}
.lvl b{display:block;font-size:16px;margin-bottom:3px;font-family:var(--font-display)}
.lvl span{font-size:13px;color:var(--muted);line-height:1.4}
.gauge{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.g{flex:1;min-width:148px;background:var(--tint);border:1px solid var(--line);border-radius:13px;padding:10px 13px}
.g .gl{font-size:12.5px;color:var(--muted);font-weight:600}
.g .gv{font-size:20px;font-weight:700;color:var(--brand);margin-top:2px;font-family:var(--font-display)}
.medal{text-align:center;padding:6px 0}
.medal .mm{font-size:56px;line-height:1}
.mark{font-size:48px;font-weight:700;color:var(--gold);line-height:1;font-family:var(--font-display)}
.chk{display:flex;align-items:flex-start;gap:10px;text-align:left;background:#fff;border:2px solid var(--line);
  border-radius:13px;padding:12px 14px;color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;width:100%;line-height:1.4}
.chk:hover{border-color:var(--brand-2)}
.chk.sel{border-color:var(--brand-2);background:var(--tint)}
.chk .bx{width:22px;height:22px;border-radius:7px;border:2px solid var(--field-line);flex:0 0 auto;margin-top:1px;
  display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1}
.chk.sel .bx{background:var(--brand-2);border-color:var(--brand-2);color:#fff}
.review{background:var(--tint);border:1px solid var(--line);border-radius:13px;padding:12px 14px;margin:9px 0}
.review .rq{font-weight:600;font-size:15px}
.review .ra{font-size:14px;margin-top:5px;line-height:1.55}
.bad-t{color:var(--bad);font-weight:700}
.good-t{color:var(--ok);font-weight:700}
.mini{max-width:190px}
.sx{width:18px;height:18px;vertical-align:-3px;margin-right:2px}
.sx.off{opacity:.22;filter:grayscale(1)}
.logo img{height:30px;width:auto;display:block}
.hero{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}
.hero .txt{flex:1;min-width:230px}
.hero img{width:clamp(130px,30vw,200px);height:auto;filter:drop-shadow(0 8px 18px rgba(43,35,32,.3))}
.birdline{display:flex;gap:12px;align-items:flex-start;margin-top:4px}
.birdline img{width:72px;height:auto;flex:0 0 auto}
.birdline .bubble{color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:16px 16px 16px 4px;
  padding:11px 14px;font-size:14.5px;line-height:1.5;box-shadow:var(--shadow-sm)}
.note{font-size:12.5px;color:var(--muted);border-top:1px solid var(--line);margin-top:18px;padding-top:11px;line-height:1.55}
@media (max-width:880px){ .stairs{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ h1{font-size:23px} .logo{font-size:15px} }
@media (max-width:420px){
  .stairs{grid-template-columns:1fr}
  .wrap{padding:12px 11px 34px}
  .panel{padding:14px}
  input[type=text]{width:98px;font-size:17px}
  .btn{padding:12px 20px;font-size:15px}
  .q{font-size:16px}
}

/* Дорога темы — по образцу карты «Учу правило» на сайте английского */
.helper{display:flex;gap:12px;align-items:flex-start;margin:12px 0 4px}
.helper img{width:64px;height:auto;flex:0 0 auto}
.helper .bubble{color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:16px 16px 16px 4px;padding:12px 15px;font-size:15.5px;line-height:1.5;box-shadow:var(--shadow-sm)}
.pillgold{background:var(--gold);color:#4A2A00;border-radius:999px;padding:6px 14px;font-weight:700;font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.road{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 8px 8px;background:#fff;border:1px solid var(--line);border-radius:22px;margin-top:10px}
.road::before{content:"";position:absolute;left:50%;top:44px;bottom:70px;width:0;border-left:4px dashed #E9CDBD;transform:translateX(-2px)}
.strow{position:relative;display:flex;align-items:center;gap:14px;width:50%;padding:6px 0}
.strow.left{flex-direction:row-reverse;align-self:flex-start;padding-right:46px;text-align:right}
.strow.right{align-self:flex-end;padding-left:46px}
.node{position:relative;flex:0 0 auto;width:88px;height:88px;border-radius:50%;border:3px solid var(--line);background:#fff;color:var(--brand);
  display:grid;place-items:center;cursor:pointer;transition:transform .15s;font-size:34px;font-family:inherit;padding:0}
.node:hover{transform:scale(1.06)}
.node.done{background:var(--gold);border-color:#A68900}
.node.next{border-color:var(--brand-2);animation:pulse 1.8s infinite}
.node.final{width:104px;height:104px;border:4px solid var(--gold);background:var(--brand);font-size:40px}
.node.final.done{background:var(--gold);border-color:#A68900}
.node.prize{width:104px;height:104px;border:4px dashed var(--brand-2);background:linear-gradient(160deg,#FFF8F3,#FDE3D3);font-size:42px}
.node.prize.open{border-style:solid;animation:pulse 1.8s infinite}
.node.shut{opacity:.5;cursor:not-allowed;filter:grayscale(.6)}
.node.shut:hover{transform:none}
.nnum{position:absolute;top:-6px;left:-6px;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;font-size:14px;font-weight:700;display:grid;place-items:center;font-family:var(--font-display)}
.stlabel{display:flex;flex-direction:column;gap:3px;max-width:300px}
.strow.left .stlabel{align-items:flex-end}
.stname{font-family:var(--font-display);font-weight:700;font-size:18px;color:var(--brand)}
.stabout{font-size:14px;color:var(--muted);line-height:1.35}
.opt-tag{font-size:11.5px;font-weight:700;background:var(--tint);border:1px solid var(--line);border-radius:999px;padding:2px 8px;color:var(--muted);font-family:var(--font-body)}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(201,69,11,.45)}60%{box-shadow:0 0 0 14px rgba(201,69,11,0)}}
.gameframe{width:100%;height:860px;border:0;border-radius:16px;background:var(--paper)}
.stlabel{min-width:0}
.stname,.stabout{overflow-wrap:break-word}
/* карта в одну колонку — пока двум колонкам тесно: длинные названия станций не должны вылезать за рамку */
@media (max-width:860px){
  .road::before{left:60px}
  .strow,.strow.left,.strow.right{width:100%;flex-direction:row;align-self:flex-start;padding:6px 0 6px 8px;text-align:left}
  .strow.left .stlabel{align-items:flex-start}
  .stlabel{max-width:none;flex:1 1 auto}
}
@media (max-width:620px){
  .road::before{left:52px}
  .node{width:76px;height:76px;font-size:30px}.node.final,.node.prize{width:88px;height:88px}
  .gameframe{height:900px}
}
/* Каркас сайта math.luminexus.ru: шапка, меню, главная, блоки — дизайн «Яркие острова» */
header{position:sticky;top:0;z-index:20;background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.hrow{max-width:1100px;margin:0 auto;padding:9px 16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.logo{font-family:var(--font-display);font-weight:700;font-size:16px;display:flex;align-items:center;gap:8px;color:var(--ink);min-width:0}
.logo span{overflow-wrap:anywhere;min-width:0}
.spacer{flex:1}
.stars{background:var(--soft);color:var(--soft-text);border:0;border-radius:999px;padding:5px 13px;font-weight:700;font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;font-family:var(--font-display)}
.iconbtn{background:#fff;border:1.5px solid var(--line);color:var(--ink);border-radius:999px;min-height:36px;
  padding:6px 13px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.iconbtn:hover{border-color:var(--brand);color:var(--brand)}
.sub{font-size:12.5px;color:var(--muted);width:100%;margin-top:-1px}
.sub:empty{display:none}
.app{min-height:100vh;display:flex;flex-direction:column}
main{flex:1;width:100%}
.site-foot{max-width:900px;margin:0 auto;padding:10px 14px 24px;font-size:12px;color:var(--muted)}
.site-foot p{margin:4px 0}
.hub .iconbtn,.hub .sub{display:none}
.intheme .topnav,.intheme .tabbar{display:none}
button:focus-visible,.navb:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

/* меню: на компьютере сверху, на телефоне снизу */
.topnav{display:flex;gap:4px;margin-left:14px}
.tabbar{display:none}
.navb{background:none;border:0;font-family:var(--font-display);font-size:14.5px;font-weight:600;color:var(--muted);cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;min-height:40px}
.navb svg{width:20px;height:20px}
.navb:hover{color:var(--brand)}
.navb.on{background:var(--soft);color:var(--soft-text);font-weight:700}
@media (max-width:760px){
  .hub .topnav{display:none}
  .hub .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);
    justify-content:space-around;align-items:center;height:70px;padding-bottom:env(safe-area-inset-bottom)}
  .tabbar .navb{flex-direction:column;gap:3px;font-size:12px;font-weight:500;padding:8px 4px;min-width:64px;border-radius:14px;background:none}
  .tabbar .navb svg{width:24px;height:24px}
  .tabbar .navb.on{color:var(--brand);font-weight:700;background:none}
  .hub .site-foot{padding-bottom:92px}
}

/* страницы меню */
.wrap.hubwrap{max-width:1100px;padding:18px 20px 30px}
.hubpage{font-family:var(--font-display);color:var(--ink);font-weight:500}
.hubpage h1{margin:0;font-size:26px;line-height:1.15;font-weight:800;color:var(--ink)}
.hh2{margin:20px 0 10px;font-size:16px;font-weight:700;color:var(--ink)}
.subj{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.subj span{padding:7px 12px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);border:1px solid var(--line)}
.subj .on{background:var(--brand);color:#fff;border-color:var(--brand)}
.hello{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hello img{width:92px;height:104px;object-fit:contain;flex-shrink:0}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.hchip{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;background:var(--soft);color:var(--soft-text);font-size:13px;font-weight:700}
.hcols{display:block}
.hcard{margin-top:16px;padding:16px;border-radius:26px;background:var(--tint);display:flex;flex-direction:column;gap:10px}
.hcap{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted)}
.hbig{font-size:22px;font-weight:800}
.hnote{font-size:13.5px;line-height:1.5;color:var(--muted);margin:6px 0 0;font-weight:500}
.crow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ctitle{font-size:18px;font-weight:700;line-height:1.25}
.cnum{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.hbar{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.hbar i{display:block;height:100%;border-radius:99px;background:var(--brand)}
.hbar.onc{height:6px;background:rgba(255,255,255,.3)}
.hbar.onc i{background:#fff}
.hbtn{display:block;width:100%;margin-top:4px;margin-bottom:5px;padding:14px;border:0;border-radius:16px;background:var(--brand);color:#fff;box-shadow:0 5px 0 var(--brand-dark);
  font-family:inherit;font-size:17px;font-weight:700;cursor:pointer}
.hbtn:active{transform:translateY(3px);box-shadow:0 2px 0 var(--brand-dark)}
.blocks{display:flex;flex-direction:column;gap:12px}
.bcard{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:22px;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.18);
  font-family:inherit;text-align:left;cursor:pointer;width:100%}
.bcard:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.18)}
.bico{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bbody{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}
.bt{font-size:16px;font-weight:700}
.bd{font-size:12.5px;font-weight:500}
.bch{display:flex;flex-shrink:0}
.lastm{display:flex;align-items:center;gap:12px}
.lastm b{display:block;font-size:15px}
.lastm span{font-size:13px;color:var(--muted)}
.week{display:flex;justify-content:space-between;gap:4px}
.wd{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--muted)}
.wd i{width:32px;height:32px;border-radius:50%;background:#fff;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:800;color:#fff;font-size:15px}
.wd.on i{background:var(--brand);border-color:var(--brand)}
.wd.today{color:var(--ink);font-weight:700}
.wd.today i{border-color:var(--brand)}

/* блок и карточки тем */
.hback{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:10px 12px 10px 0;color:var(--muted);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.hback:hover{color:var(--brand)}
.bhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.bsub{font-size:13.5px;color:var(--muted);margin-top:5px;line-height:1.4}
.bbadge{width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.seg{display:flex;gap:6px;padding:5px;border-radius:999px;background:var(--soft);margin-bottom:14px;max-width:560px}
.seg button{flex:1;min-height:44px;border:0;border-radius:999px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;background:transparent;color:var(--soft-text);padding:4px 8px}
.seg button.on{background:var(--brand);color:#fff}
.tgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tcard{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:10px;border:0;border-radius:22px;background:var(--tint);color:var(--ink);
  font-family:inherit;text-align:left;cursor:pointer;transition:transform .12s, box-shadow .12s}
.tcard:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.tpic{display:block;border-radius:14px;background:#fff;padding:6px 8px;line-height:0}
.tgrade{font-size:12px;font-weight:600;color:var(--muted)}
.ttitle{font-size:14.5px;font-weight:700;line-height:1.2;flex:1;overflow-wrap:anywhere}
.chip{align-self:flex-start;padding:4px 9px;border-radius:999px;font-size:11.5px;font-weight:700;border:1px solid transparent}
.chip.go{background:var(--brand);color:#fff}
.chip.done{background:var(--soft);color:var(--soft-text)}
.chip.new{color:var(--muted);border-color:#C3CAD8}
.bstrip{display:flex;align-items:center;gap:10px;margin:22px 0 12px;padding:10px 14px;border-radius:18px;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.18)}
.bstrip b{font-size:16px;font-weight:700;flex:1}
.bstrip span{font-size:12.5px;font-weight:600;white-space:nowrap}

/* награды и профиль */
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.stats div{background:var(--tint);border-radius:20px;padding:12px 8px;text-align:center}
.hcard .stats{margin-top:0}
.hcard .stats div{background:#fff}
.stats b{display:block;font-size:24px;font-weight:800;color:var(--brand)}
.stats span{font-size:12px;font-weight:600;color:var(--muted);line-height:1.25;display:block}
.mgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mcard{background:var(--tint);border-radius:20px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}
.mcard b{font-size:13.5px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.mcard span{font-size:12px;color:var(--muted);line-height:1.25}
.mcard em{font-style:normal;font-size:11.5px;font-weight:700;color:var(--muted);margin-top:3px}
.mcard.on{background:var(--soft)}
.mcard.on em{color:var(--soft-text)}
.prof{flex-direction:row;align-items:center;gap:14px}
.prof img{border-radius:50%;background:#fff;object-fit:contain;flex-shrink:0}
.prof b{display:block;font-size:18px}
.prof span{font-size:13.5px;color:var(--muted);line-height:1.4}
.swrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}
.swrow b{display:block;font-size:15px}
.swrow span{font-size:12.5px;color:var(--muted);line-height:1.35;display:block}
.sw{width:64px;height:40px;border-radius:999px;border:0;background:#AEB7C8;position:relative;cursor:pointer;flex-shrink:0;padding:0}
.sw i{position:absolute;top:5px;left:5px;width:30px;height:30px;border-radius:50%;background:#fff;transition:left .15s}
.sw.on{background:var(--brand)}
.sw.on i{left:29px}

@media (min-width:620px){ .tgrid{grid-template-columns:repeat(3,minmax(0,1fr))} .mgrid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:900px){
  .tgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px} .mgrid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hubpage h1{font-size:30px}
  .hcols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
  .blocks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .bcard{flex-direction:column;align-items:flex-start;padding:16px;min-height:170px}
  .bcard .bbody{width:100%;justify-content:flex-end}
  .bch{display:none}
  .hbtn{max-width:300px}
  .pcols{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
  .ttitle{font-size:15.5px}
}
@media (max-width:350px){ .wrap.hubwrap{padding:14px 12px 30px} .wd i{width:28px;height:28px} .ttitle{font-size:13.5px} .hello img{width:72px;height:82px} }
