/* Локальные окна контактов и просмотра сертификатов */
#local-contact-modal,#local-photo-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(30,26,38,.50);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-family:"muller",Arial,sans-serif}
#local-contact-modal.is-open,#local-photo-modal.is-open{display:flex}
.local-modal-card{position:relative;width:min(100%,760px);padding:48px 38px 38px;background:#fff;border-radius:28px;box-shadow:0 18px 70px rgba(29,20,50,.22);color:#352d45;font-family:"muller",Arial,sans-serif;text-align:center}
.local-modal-title{margin:0 48px 28px;font-size:clamp(25px,4vw,36px);line-height:1.2;color:#9b90c8;font-weight:600}
.local-modal-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:48px!important;height:48px!important;min-width:48px;min-height:48px;padding:0!important;border:0;border-radius:50%!important;aspect-ratio:1;background:#f3f1f7;color:#423957;font-family:Arial,sans-serif;font-size:28px;line-height:1;cursor:pointer}
.local-contact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.local-contact-link{display:flex;align-items:center;justify-content:center;gap:14px;min-height:104px;padding:16px;border-radius:20px;background:#f7f5fa;color:#352d45;text-decoration:none;font-size:clamp(18px,2.4vw,26px);font-weight:500;transition:transform .15s,background .15s}
.local-contact-link:hover{transform:translateY(-2px);background:#eee9f7}
.local-contact-link img,.local-mail-icon{display:block;width:52px;height:52px;flex:none;border-radius:12px;object-fit:contain}
.local-mail-icon{display:grid;place-items:center;background:#9b90c8}
.local-mail-icon svg{width:34px;height:34px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#local-photo-modal{cursor:zoom-out;background:rgba(12,10,16,.88);padding:32px}
#local-photo-modal .local-photo-frame{position:relative;width:min(96vw,1100px);height:min(92vh,1000px);display:flex;align-items:center;justify-content:center}
#local-photo-modal img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:default;border-radius:4px;box-shadow:0 8px 40px rgba(0,0,0,.4)}
#local-photo-modal .local-modal-close{position:fixed;top:16px;right:18px;background:rgba(255,255,255,.92)}
/* Принудительно загружаем обе обложки материалов из локальной папки */
#rec837142458 .tn-elem[data-elem-id="1733654979736"] .tn-atom{background-image:url("./material-cover-1-photo.jpg")!important;background-size:cover!important;background-position:center!important}
#rec837142458 .tn-elem[data-elem-id="1733654979749"] .tn-atom{background-image:url("./material-cover-2.svg")!important;background-size:cover!important;background-position:center!important}
/* На телефоне сокращаем пустые зоны вокруг афиши фонетического курса */
@media screen and (max-width:639px){
 #rec1058519776 .t396__artboard,#rec1058519776 .t396__filter,#rec1058519776 .t396__carrier{height:820px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439057"]{top:130px!important;height:585px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439069"]{top:120px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439127"]{top:114px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439157"]{top:745px!important}
}
@media(max-width:520px){#local-contact-modal{padding:14px}.local-modal-card{padding:42px 18px 22px;border-radius:24px}.local-modal-title{margin:0 34px 22px}.local-contact-list{grid-template-columns:1fr;gap:10px}.local-contact-link{min-height:76px;font-size:20px}.local-contact-link img,.local-mail-icon{width:48px;height:48px}#local-photo-modal{padding:12px}#local-photo-modal .local-photo-frame{width:100%;height:90vh}}
/* Штатную панель масштабирования Tilda заменяет локальное окно */
.t-zoomer__ui-wrapper,.t-zoomer__scale,.t-zoomer__close,.t-zoomer__wrapper,.t-zoomer__container,.t-carousel__zoomer__wrapper{display:none!important}
/* Афиша курса использует отдельный вертикальный оригинал, а не квадратную миниатюру сертификата */
#rec1058519776 .tn-elem[data-elem-id="1733644439057"] .tn-atom{background-image:url("./attestations-original/fonetika-aug-2025.jpg")!important;background-size:100% auto!important;background-position:top center!important}
@media screen and (min-width:1200px){
 #rec1058519776 .t396__artboard,#rec1058519776 .t396__filter,#rec1058519776 .t396__carrier{height:853px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439057"]{height:560px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439157"]{top:760px!important}
}
@media screen and (min-width:640px) and (max-width:1199px){
 #rec1058519776 .t396__artboard,#rec1058519776 .t396__filter,#rec1058519776 .t396__carrier{height:1490px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439057"]{top:836px!important;height:560px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439069"]{top:823px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439127"]{top:817px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439157"]{top:1420px!important}
}
@media screen and (max-width:639px){
 #rec1058519776 .t396__artboard,#rec1058519776 .t396__filter,#rec1058519776 .t396__carrier{height:1450px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439057"]{top:797px!important;height:529px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439069"]{top:784px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439127"]{top:778px!important}
 #rec1058519776 .tn-elem[data-elem-id="1733644439157"]{top:1356px!important}
}
