*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: var(--tg-theme-bg-color, #ffffff);--bg2: var(--tg-theme-secondary-bg-color, #f4f4f5);--text: var(--tg-theme-text-color, #111111);--hint: var(--tg-theme-hint-color, #888888);--link: var(--tg-theme-link-color, #2481cc);--btn: var(--tg-theme-button-color, #2481cc);--btn-text: var(--tg-theme-button-text-color, #ffffff);--divider: color-mix(in srgb, var(--hint) 20%, transparent);--radius: 12px;--radius-sm: 8px}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior:none}a{color:var(--link);text-decoration:none}button{cursor:pointer;border:none;outline:none;font-family:inherit;font-size:inherit}.page{min-height:100vh;padding-bottom:32px}.page-header{padding:16px 16px 8px;font-size:22px;font-weight:700;letter-spacing:-.3px}.btn-primary{display:block;width:100%;padding:14px;background:var(--btn);color:var(--btn-text);border-radius:var(--radius);font-size:16px;font-weight:600;text-align:center;transition:opacity .15s}.btn-primary:active{opacity:.8}.btn-secondary{display:block;width:100%;padding:14px;background:var(--bg2);color:var(--text);border-radius:var(--radius);font-size:16px;font-weight:500;text-align:center;transition:opacity .15s}.card{background:var(--bg2);border-radius:var(--radius);overflow:hidden}.product-card{margin:12px 16px;background:var(--bg2);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:opacity .15s}.product-card:active{opacity:.85}.product-card__cover{width:100%;aspect-ratio:16 / 9;background:var(--btn);display:flex;align-items:center;justify-content:center;font-size:48px}.product-card__cover img{width:100%;height:100%;object-fit:cover}.product-card__body{padding:14px 16px}.product-card__title{font-size:17px;font-weight:600;margin-bottom:4px}.product-card__price{font-size:15px;color:var(--hint)}.product-card__price strong{color:var(--text)}.course-cover{width:100%;aspect-ratio:16 / 9;background:var(--btn);display:flex;align-items:center;justify-content:center;font-size:64px}.course-cover img{width:100%;height:100%;object-fit:cover}.course-body{padding:16px}.course-title{font-size:22px;font-weight:700;letter-spacing:-.3px;margin-bottom:8px}.course-description{font-size:14px;color:var(--hint);line-height:1.6;margin-bottom:20px;white-space:pre-line}.course-price-row{display:flex;align-items:center;gap:12px;margin-bottom:16px}.course-price{font-size:24px;font-weight:700}.course-price--alt{font-size:15px;color:var(--hint)}.modules-section{padding:0 16px 16px}.section-title{font-size:13px;font-weight:600;color:var(--hint);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.module-block{margin-bottom:12px;background:var(--bg2);border-radius:var(--radius);overflow:hidden}.module-title{padding:12px 16px;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:space-between;-webkit-user-select:none;user-select:none}.module-title__chevron{font-size:12px;color:var(--hint);transition:transform .2s}.module-title__chevron--open{transform:rotate(180deg)}.lesson-list{border-top:1px solid var(--divider)}.lesson-item{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--divider);cursor:pointer;transition:background .1s}.lesson-item:last-child{border-bottom:none}.lesson-item:active{background:var(--divider)}.lesson-item--locked{cursor:default}.lesson-item__icon{font-size:16px;flex-shrink:0;width:20px;text-align:center}.lesson-item__title{flex:1;font-size:14px}.lesson-item--locked .lesson-item__title{color:var(--hint)}.lesson-item__badge{font-size:11px;color:var(--btn);font-weight:500}.lesson-page{padding:20px 16px}.lesson-locked{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;text-align:center}.lesson-locked__icon{font-size:48px}.lesson-locked__text{color:var(--hint);font-size:15px}.state-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:12px;color:var(--hint);font-size:15px}.spinner{width:28px;height:28px;border:3px solid var(--divider);border-top-color:var(--btn);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:flex-end;z-index:100}.modal-sheet{width:100%;background:var(--bg);border-radius:20px 20px 0 0;padding:8px 16px 32px;max-height:85vh;overflow-y:auto}.modal-handle{width:36px;height:4px;background:var(--divider);border-radius:2px;margin:8px auto 16px}.modal-title{font-size:18px;font-weight:700;margin-bottom:4px}.modal-subtitle{font-size:14px;color:var(--hint);margin-bottom:20px}.modal-price{font-size:28px;font-weight:700;margin-bottom:20px}.modal-methods{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}.purchases-list{padding:8px 16px;display:flex;flex-direction:column;gap:10px}.purchase-card{background:var(--bg2);border-radius:var(--radius);padding:14px 16px}.purchase-card__title{font-size:16px;font-weight:600;margin-bottom:4px}.purchase-card__meta{font-size:13px;color:var(--hint);margin-bottom:12px}
