/* экраны мини-приложения: главный (/app), сообщество, материалы */
body { min-height: 100vh; background: var(--bg); }
.appw { max-width: 560px; margin: 0 auto; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }
.appw h1 { font-size: 26px; margin: 4px 0 6px; }
.appw .lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.appw .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl { display: flex; flex-direction: column; gap: 10px; padding: 16px; color: var(--text); min-height: 138px; border-radius: 20px; }
.tl b { font-size: 17px; margin-top: auto; } .tl span:last-child { color: var(--muted); font-size: 14px; margin-top: -6px; min-height: 2.6em; }
.tl.hot { border-color: var(--green); }
.rows { display: grid; gap: 8px; margin-top: 14px; }
.rw { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); border-radius: 16px; }
.rw .tile { width: 20px; height: 20px; } .rw .tile svg.i { width: 20px; height: 20px; }
.rw > span:not(.tile) { flex: 1; font-weight: 500; } .rw small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; } .rw i { color: var(--faint); font-style: normal; font-size: 22px; }
.blist { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.blist li { display: flex; gap: 10px; line-height: 1.45; font-size: 15px; } .blist li::before { content: '✓'; color: var(--green); font-weight: 600; }
.price { font: 500 28px/1.2 var(--mono); font-variant-numeric: tabular-nums; margin: 4px 0 2px; } .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; } .chk input { width: auto; margin-top: 2px; }
.wide { width: 100%; justify-content: center; }
.ok { color: var(--green); font-weight: 600; }
.mat { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--text); margin-bottom: 10px; border-radius: 16px; }
.mat .tile { width: 42px; height: 42px; border-radius: 13px; } .mat .tile svg.i { width: 21px; height: 21px; }
.mat div { flex: 1; } .mat small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* на сайте (не в Телеграме) экраны мини-приложения шире и с отступом под шапкой */
html:not(.tgapp) .appw { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
