/* Tvaity app screens. Values from the app ui_kit (colors, text styles, spacing, radius). */
@font-face{font-family:Onest;font-weight:400;src:url(fonts/Onest-Regular.ttf)}
@font-face{font-family:Onest;font-weight:500;src:url(fonts/Onest-Medium.ttf)}
@font-face{font-family:Onest;font-weight:600;src:url(fonts/Onest-SemiBold.ttf)}
:root{--bg:#EDEFF3;--ink:#0F1F3D;--accent:#2A46A3;--tile:#EEF3FA;--muted:#858D9D;--caption:#8A94A6;--navy:#1B3A6B;--blue:#8099D0;--yellow:#FFCF5E;--green:#4CAF84}
html,body{margin:0;overflow:hidden}
body{width:375px;height:812px;position:relative;background:var(--bg);font-family:Onest,sans-serif;font-weight:400;letter-spacing:-.31px;color:var(--ink);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
p,h1,h2{margin:0;font-weight:inherit}
.screen{position:absolute;inset:0;overflow:hidden;padding-top:20px}

/* ---- course plan ("programme") ---- */
.appbar{position:relative;background:#fff;border-radius:0 0 16px 16px;height:100px}
.appbar .toolbar{position:relative;height:68px}
.appbar .title{position:absolute;left:60px;right:60px;top:0;height:68px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;font-weight:500;line-height:1.4}
.tile{position:absolute;top:8px;width:48px;height:48px;border-radius:12px;background:var(--tile);display:flex;align-items:center;justify-content:center}
.tile.l{left:12px}.tile.r{right:12px}
.tile.l img{width:13.33px}.tile.r img{width:17.78px;height:17.78px}
.hdrprog{position:absolute;left:0;right:0;top:68px;height:32px;padding:0 8px 16px;display:flex;align-items:flex-start;justify-content:center}
.hdrprog .row{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.25;color:#383838}
.bar{height:4px;border-radius:8px;background:#F5F5F5;overflow:hidden}
.bar i{display:block;height:100%}
.hdrprog .bar{width:175px}
.list{padding:8px 12px 0;display:flex;flex-direction:column;gap:4px}
.card{background:#fff;border-radius:16px;padding:16px 12px}
.card .in{min-height:150px;max-height:183px;display:flex;flex-direction:column;align-items:stretch}
.badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.nb,.ok{border-radius:8px;padding:4.5px 12px;font-size:12px;font-weight:500;line-height:1.25}
.nb{background:#F5B93C;color:var(--ink)}
.ok{background:#EAF7F0;color:#25815C}
.card h2{margin-top:8px;font-size:16px;font-weight:500;line-height:1.3}
.card .sub{margin-top:4px;font-size:12px;line-height:1.25;color:var(--caption);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.prow{margin-top:8px;display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.25;color:#383838}
.prow .bar{flex:1}
.prow img{width:20px;height:20px}
.btn{align-self:flex-start;margin-top:8px;border-radius:30px;padding:8px 18px;font-size:14px;font-weight:500;line-height:1.3;background:var(--tile);color:var(--accent)}
.btn.p{background:var(--accent);color:#fff}

/* ---- quiz result: "Ваш рейтинг" ---- */
.rt{background:var(--navy)}
.rt .screen{background:var(--navy)}
.rthead{position:relative;height:92px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;line-height:1.4}
.rthead .back{position:absolute;left:12px;top:22px;width:48px;height:48px;border-radius:12px;background:rgba(255,255,255,.10);display:flex;align-items:center;justify-content:center}
.rthead .back img{width:15px}
.sheet{position:absolute;left:0;right:0;top:112px;bottom:0;background:#fff;border-radius:16px 16px 0 0;overflow:hidden;padding:16px 16px 0}
.ring{position:relative;width:193px;height:193px;margin:0 auto 32px}
.ring svg{position:absolute;inset:0}
.ring .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .v{font-size:68.57px;font-weight:600;line-height:1.25;letter-spacing:-.51px;color:var(--accent)}
.ring .m{font-size:14px;line-height:1.4;color:var(--muted)}
.lb{display:inline-block;background:var(--tile);color:var(--accent);border-radius:30px;padding:6px 12px;font-size:13px;font-weight:500;line-height:1.2;text-align:center}
.lvl{margin-top:16px;padding:10px 0;font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.6px}
.desc{margin-top:12px;font-size:14px;line-height:1.4}
.cat{margin-top:32px}
.cat+.cat,.cat.n{margin-top:0}
.cat .t{font-size:16px;font-weight:500;line-height:1.4}
.cat .r{margin-top:6px;display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.4;color:var(--muted)}
.cat .r b{width:36px;font-weight:400}
.cat .bar{flex:1;background:#F3F4F5}
.cat .bar i{background:var(--blue)}
.cat{padding-bottom:16px}
.gp{margin-top:16px;background:#fff;border-radius:24px;border:.5px solid rgba(0,0,0,.05);box-shadow:0 1px 8px rgba(20,20,20,.08),0 0 1px rgba(20,20,20,.12);padding:16px}
.gp .t{margin-top:12px;font-size:16px;font-weight:500;line-height:1.4}
.gp .d{margin-top:12px;font-size:14px;line-height:1.4;color:var(--muted)}
.cat:empty{padding:0}

/* ---- home dashboard ---- */
.home .screen{padding-top:0}
.hh{position:relative;height:98px;overflow:hidden;border-radius:0 0 12px 12px;background:#17306b;padding:36px 12px 16px;display:flex;align-items:center;gap:8px}
.hh>img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hh>*:not(.bg){position:relative}
.av{width:46px;height:46px;border-radius:50%;background:rgba(53,195,193,.2);display:flex;align-items:center;justify-content:center;font-size:18.4px;font-weight:600;color:#35C3C1;flex:none}
.hh .who{flex:1;min-width:0}
.hh .cap{font-size:12px;font-weight:500;line-height:1.25;color:var(--caption)}
.hh .nm{margin-top:4px;font-size:16px;font-weight:500;line-height:1.25;color:#fff}
.stk{display:flex;align-items:center;gap:8px;padding:12px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(0,0,0,.05);font-size:16px;line-height:1.25;color:#fff}
.stk img{width:17px;height:20px}
.blk{margin-top:8px;background:#fff;border-radius:16px;padding:12px}
.blk.cl{padding:16px 12px;display:flex;gap:12px}
.media{width:110px;height:121px;border-radius:8px;background:#F5F5F5;display:flex;align-items:center;justify-content:center;flex:none}
.media b{width:60px;height:60px;border-radius:20px;background:#121212;color:#fff;font-size:30px;font-weight:500;display:flex;align-items:center;justify-content:center}
.cl .det{flex:1;min-width:0;display:flex;flex-direction:column}
.cl h2{font-size:16px;font-weight:500;line-height:1.3}
.sb{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.sb span{background:rgba(242,245,249,.79);color:var(--caption);border-radius:8px;padding:4px 8px;font-size:10px;font-weight:500;line-height:1.25}
.cl .prow{margin-top:12px}
.cl .btn{margin-top:8px}
.blk.gl{padding:16px}
.blk h3{margin:0;font-size:16px;font-weight:500;line-height:1.3}
.pan{margin-top:12px;background:var(--tile);border-radius:16px;padding:16px 12px}
.pan .t{font-size:16px;font-weight:500;line-height:1.4}
.pan .am{margin-top:12px;display:flex;justify-content:space-between;align-items:flex-end}
.pan .am b{font-size:20px;font-weight:600;line-height:1.4;letter-spacing:-.6px;color:#30459D}
.pan .am span{font-size:12px;line-height:1.25;color:var(--muted)}
.pan .bar{margin-top:12px;background:#F5F5F5}
.pan .bar i{background:#30459D}
.acts{margin-top:16px;display:flex;flex-wrap:wrap;gap:12px}
.acts .btn{margin:0;background:#fff;color:var(--ink)}
.po{display:flex;gap:12px;margin-top:12px;overflow:hidden}
.po div{flex:none;width:165px;height:199px;border-radius:16px;position:relative;overflow:hidden;background:linear-gradient(160deg,#4a62b8,#1B3A6B)}
.po div:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 40%,rgba(0,0,0,.6))}
.po p{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;color:#fff}
.po p b{display:block;font-size:16px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.po p span{display:block;margin-top:4px;font-size:12px;font-weight:500;line-height:1.25}
.nav{z-index:5;position:absolute;left:12px;right:12px;bottom:34px;height:60px;border-radius:30px;border:1px solid rgba(255,255,255,.75);background:linear-gradient(to bottom,rgba(255,255,255,.96),rgba(247,247,247,.94));box-shadow:0 8px 40px rgba(0,0,0,.12);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);display:flex;padding:0}
.nav .it{flex:1;padding:0 4px;display:flex;align-items:center;justify-content:center}
.nav .it div{display:flex;flex-direction:column;align-items:center;padding:2px 6px;border-radius:100px;font-size:13px;line-height:16px;color:var(--muted)}
.nav .it img{width:24px;height:24px;margin-bottom:1px}
.nav .it.on div{background:rgba(42,70,163,.1);color:var(--accent);font-weight:500}
