.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:20px}.home-tile{display:block;color:inherit;overflow:hidden;text-decoration:none;transition:transform .2s,box-shadow .2s}.home-tile:hover{transform:translateY(-3px);box-shadow:0 16px 40px #182b4d12}.home-tile h2{margin-top:16px}.home-tile p{line-height:1.7}.home-cover{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}.home-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px}.home-gallery figure{margin:0;overflow:hidden}.home-gallery img{width:100%;height:260px;object-fit:contain;background:#edf0f5;border-radius:12px}.home-gallery figcaption{padding:14px 0;line-height:1.6}.home-question{border:1px solid #dce3ee;border-radius:14px;padding:18px;margin:24px 0;min-width:0}.home-question legend{font-weight:700;padding:0 8px;max-width:100%;overflow-wrap:anywhere}.home-choice{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:8px;cursor:pointer}.home-choice:hover{background:#f1f4f9}.home-choice input{width:18px;height:18px;flex:none}.home-lesson{font-size:15px;line-height:1.95;overflow-wrap:anywhere}.home-result{padding:16px 0;border-bottom:1px solid #e2e7ef}.home-result p{font-size:13px}.home-gallery .card{padding:16px}.social-preview{max-width:100%;overflow:hidden}.home-grid>*{min-width:0}.home-grid p{overflow-wrap:anywhere}.home-grid form{margin-top:14px}@media(prefers-reduced-motion:reduce){.home-tile{transition:none}.home-tile:hover{transform:none}}
.social-placeholder[hidden]{display:none!important}

.gallery-lightbox{width:min(1100px,96vw);max-height:94vh;padding:20px;border:1px solid #dce3ee;border-radius:18px;box-sizing:border-box;background:#fff}.gallery-lightbox::backdrop{background:#06132de6}.gallery-lightbox figure{margin:16px 0}.gallery-lightbox img{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;background:#edf1f8}.gallery-lightbox figcaption{padding-top:12px;font-size:13px;overflow-wrap:anywhere}.gallery-lightbox .actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.gallery-lightbox a,.gallery-lightbox button{min-height:42px}.home-gallery [data-gallery-open]{display:block;cursor:zoom-in}.home-gallery figure>.btn{margin-bottom:10px}.gallery-lightbox:focus{outline:none}.gallery-lightbox button:focus-visible,.gallery-lightbox a:focus-visible{outline:3px solid #1e4ed8;outline-offset:4px}
