/* Mobile event details only. Keep desktop and other article layouts intact. */
@media(max-width:650px){
 body .oa-event-page .grid_mobile_service{gap:14px!important;align-items:stretch!important;justify-content:flex-start!important;height:auto!important;min-height:0!important}
 body .oa-event-page .grid_mobile_service>.service_info_block{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;align-content:start!important;gap:10px 12px!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
 body .oa-event-page .mobile_item_title{grid-column:1/-1!important;order:0!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
 body .oa-event-page .mobile_item_title h1{font-size:23px!important;line-height:1.3!important;margin:0!important;padding:0!important}
 body .oa-event-page .grid_mobile_service>.service_info_block>.mini_icons{grid-column:1!important;order:1!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px 12px!important;margin:0!important;padding:0!important;min-height:0!important;font-size:12px!important}
 body .oa-event-page .mini_icon{display:inline-flex!important;align-items:center!important;gap:6px!important;margin:0!important;min-height:0!important}
 body .oa-event-page .grid_mobile_service>.service_info_block>.share_icon{grid-column:2!important;order:1!important;justify-self:end!important;margin:0!important;padding:0!important;min-height:0!important}
 body .oa-event-page .share_icon :is(a,button,.share_btn,.btn_share){min-width:0!important;min-height:40px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap!important}
 body .oa-event-page .grid_mobile_service>.service_info_block>.item_address{grid-column:1/-1!important;order:2!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;font-size:13px!important;line-height:1.45!important}
 body .oa-event-page .item_address:has(>span:empty),body .oa-event-page .item_address[hidden]{display:none!important}
 body .oa-event-page .grid_mobile_service>.service_info_block>.service_info_block{grid-column:1/-1!important;order:3!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:10px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
 body .oa-event-page .oa-ticket-action{min-height:0!important;gap:6px!important;padding:0 0 10px!important;margin:0!important}
 body .oa-event-page .oa-free-entry{display:block!important;padding:10px 14px!important;font-size:17px!important;line-height:1.4!important;border-radius:12px!important}
 body .oa-event-page .oa-schedule{padding:14px!important;border-radius:14px!important}
 body .oa-event-page .oa-schedule h2{font-size:20px!important;line-height:1.3!important;margin:0 0 12px!important}
 body .oa-event-page .oa-schedule-dates{gap:8px!important;margin:0 0 12px!important}
 body .oa-event-page .oa-schedule-dates button{min-height:40px!important;padding:8px 10px!important;font-size:13px!important}
 body .oa-event-page .oa-session-entry{gap:12px!important;padding:12px 0 0!important;min-width:0!important}
 body .oa-event-page .oa-session-venue{min-width:0!important;font-size:14px!important;line-height:1.4!important;overflow-wrap:anywhere}
 body .oa-event-page .oa-session-time{font-size:15px!important;line-height:1.3!important;padding:9px 12px!important;border-radius:12px!important}
 body .oa-event-page .grid_mobile_service>.service_info_block>.service_info_block>.row_afisha:not(:has(.oa-schedule)){padding:12px!important}
}
@media(max-width:360px){body .oa-event-page .grid_mobile_service>.service_info_block{column-gap:8px!important}body .oa-event-page .oa-session-entry{flex-wrap:wrap!important}body .oa-event-page .oa-session-time{white-space:normal!important}}

@media(max-width:767px){
 .fancybox__container:has(#add_ballans){z-index:200000!important;--fancybox-bg:rgba(10,25,40,.65)}
 .fancybox__container:has(#add_ballans) .fancybox__slide{padding:12px 8px!important;min-height:0!important}
 .fancybox__container:has(#add_ballans) .fancybox__content{box-sizing:border-box!important;max-width:100%!important}
 #add_ballans{box-sizing:border-box!important;width:min(100%,540px)!important;min-height:0!important;height:auto!important;max-height:calc(var(--om-pay-vh,100dvh) - 32px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:36px 16px max(16px,env(safe-area-inset-bottom))!important;scroll-padding:16px 0 100px;border-radius:16px!important}
 #add_ballans .oc-checkout-note{padding:12px;margin:0 0 12px;border-radius:12px}
 #add_ballans .oc-checkout-note strong{font-size:17px!important;line-height:1.35!important}
 #add_ballans .oc-checkout-note p{font-size:13px!important;line-height:1.5!important;margin:8px 0!important}
 #add_ballans .oc-checkout-document{max-height:180px;overflow:auto;overscroll-behavior:contain}
 #add_ballans .oc-checkout-choice{margin:12px 0}
 #add_ballans h3{font-size:22px!important;margin:14px 0!important}
 #add_ballans .form_row{margin:12px 0!important}
 #add_ballans .grig_add_ballans{position:sticky!important;bottom:0!important;z-index:2;display:flex!important;flex-direction:column;gap:8px!important;background:#fff;padding:12px 0 max(8px,env(safe-area-inset-bottom))!important;margin:12px 0 0!important;border-top:1px solid #dce7ef}
 #add_ballans .grig_add_ballans>div{width:100%;min-width:0}
 #add_ballans .pay_img{display:flex!important;align-items:center;justify-content:center;gap:8px;height:20px}
 #add_ballans .pay_img img{height:18px!important;width:auto!important;max-width:42px;object-fit:contain}
 #add_ballans .top_add_button{display:block!important;width:100%!important;min-height:48px!important;padding:12px 16px!important;margin:0!important;font-size:17px!important;line-height:1.3!important}
 #payment_background{z-index:200001!important;height:var(--om-pay-vh,100dvh)!important;max-height:var(--om-pay-vh,100dvh)!important;overflow:auto!important;padding:12px 8px!important;overscroll-behavior:contain}
 #payment_background .ol-payment-panel{margin:auto!important;max-width:100%!important}
}

/* Desktop event: limit the poster column and avoid stretching the fact cards. */
@media(min-width:651px){
 body .oa-event-page .grid_afisha{grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important;gap:24px!important;padding:20px!important;align-items:start!important}
 body .oa-event-page .grid_afisha>div:nth-child(2){align-content:start!important;align-items:start!important;gap:12px!important}
 body .oa-event-page .grid_afisha .oa-schedule{padding:18px!important}
 body .oa-event-page .oa-schedule h2{margin-bottom:14px!important;font-size:22px!important}
 body .oa-event-page .oa-schedule-dates{margin-bottom:12px!important}
 body .oa-event-page .grid-page-header{margin-bottom:10px!important}
 body .oa-event-page .mini_icons{margin:10px 0!important}
}
@media(min-width:651px) and (max-width:900px){body .oa-event-page .grid_afisha{grid-template-columns:minmax(200px,240px) minmax(0,1fr)!important;gap:18px!important}}

/* The old module-heading circle must not decorate headings inside service copy. */
body #go_title.om-service-article .desc h3::before,
body #go_title.om-service-article .desc h3::after{content:none!important;display:none!important;border:0!important;box-shadow:none!important}
body #go_title.om-service-article .desc h3>.img-icon-module{display:none!important}
/* Home event cards: readable full posters, then title, details and session times. */
body.olekma-home .om-home-events .oa-day-card{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-width:0;border-radius:18px}
body.olekma-home .om-home-events .oa-day-card-top{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;min-width:0;flex:1}
body.olekma-home .om-home-events .oa-day-poster{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;align-self:stretch!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:440px!important;aspect-ratio:3/4!important;margin:0!important;border-radius:0!important;overflow:hidden!important;background:#edf3f8!important}
body.olekma-home .om-home-events .oa-day-poster img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:440px!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;margin:0!important;inset:auto!important;transform:none!important}
body.olekma-home .om-home-events .oa-day-card-top>div{padding:16px 18px!important;min-width:0!important}
body.olekma-home .om-home-events .oa-day-card-title{display:block!important;font-size:18px!important;line-height:1.4!important;margin:0 0 10px!important;overflow-wrap:anywhere!important}
body.olekma-home .om-home-events .oa-day-category{display:block!important;margin:0 0 10px!important;font-size:13px!important}
body.olekma-home .om-home-events .oa-day-card-sessions{padding:0 18px 16px!important;margin-top:auto!important}
body.olekma-home .om-home-events .oa-day-session{align-items:center!important;gap:12px!important;padding:14px 0!important;min-width:0!important}
body.olekma-home .om-home-events .oa-day-session>div{min-width:0!important}
body.olekma-home .om-home-events .oa-day-session span{overflow-wrap:anywhere!important}
body.olekma-home .om-home-events .oa-day-time{min-width:70px!important;font-size:16px!important;padding:10px 14px!important}
@media(max-width:650px){body.olekma-home .om-home-events .oa-day-poster{max-height:480px!important}body.olekma-home .om-home-events .oa-day-poster img{max-height:480px!important}body.olekma-home .om-home-events .oa-day-card-title{font-size:19px!important}body.olekma-home .om-home-events .oa-day-card-top>div{padding:16px!important}body.olekma-home .om-home-events .oa-day-card-sessions{padding:0 16px 14px!important}}
/* Compact home event copy while keeping the full poster readable. */
body.olekma-home .om-home-events .oa-day-card-top{flex:0 0 auto!important}
body.olekma-home .om-home-events .oa-day-card-top>div{padding:12px 16px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;align-content:flex-start!important;gap:7px 8px!important}
body.olekma-home .om-home-events .oa-day-card-title{flex:0 0 100%!important;font-size:16px!important;line-height:1.35!important;margin:0!important}
body.olekma-home .om-home-events .oa-day-category{display:inline!important;font-size:12px!important;line-height:1.4!important;margin:0 4px 0 0!important}
body.olekma-home .om-home-events :is(.oa-day-age,.oa-day-free,.oa-pushkin-badge){font-size:11px!important;line-height:1.4!important;padding:4px 7px!important;margin:0!important}
body.olekma-home .om-home-events .oa-day-card-sessions{padding:0 16px 10px!important;margin-top:0!important}
body.olekma-home .om-home-events .oa-day-session{padding:10px 0!important;gap:10px!important}
body.olekma-home .om-home-events .oa-day-session small{font-size:11px!important;line-height:1.4!important;margin:0 0 3px!important}
body.olekma-home .om-home-events .oa-day-session span{font-size:13px!important;line-height:1.4!important}
body.olekma-home .om-home-events .oa-day-time{font-size:14px!important;line-height:1.3!important;min-width:64px!important;padding:9px 12px!important;border-radius:12px!important}
@media(max-width:650px){body.olekma-home .om-home-events .oa-day-card-top>div{padding:12px 14px!important;gap:7px!important}body.olekma-home .om-home-events .oa-day-card-title{font-size:17px!important;line-height:1.35!important}body.olekma-home .om-home-events .oa-day-card-sessions{padding:0 14px 8px!important}}

/* Community sections share one aligned header and card baseline. */
body.olekma-home .om-community-grid{align-items:stretch!important}body.olekma-home .om-community-grid>.om-section{display:flex!important;flex-direction:column!important;min-width:0}body.olekma-home .om-community-grid .om-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 16px!important;align-items:start!important;margin-bottom:18px!important}body.olekma-home .om-community-grid .om-heading>div{min-width:0}body.olekma-home .om-community-grid .om-heading>a{white-space:nowrap!important;max-width:none!important;align-self:start!important;margin:6px 0 0!important;font-size:14px!important;text-align:right!important}body.olekma-home .om-community-grid .om-heading .oh-subtitle{margin:8px 0 0!important;line-height:1.45!important}body.olekma-home .om-community-grid .om-cp-grid,body.olekma-home .om-community-grid .oh-ad-cards{flex:1!important;align-items:stretch!important}body.olekma-home .om-community-grid .om-cp-card,body.olekma-home .om-community-grid .olf-home-card{height:100%!important;min-height:190px!important}body.olekma-home .om-community-grid .om-cp-info,body.olekma-home .om-community-grid .olf-home-info{display:flex;flex-direction:column}body.olekma-home .om-community-grid .om-cp-info time,body.olekma-home .om-community-grid .olf-home-info time{margin-top:auto;padding-top:12px}body.olekma-home .om-community-grid .om-cp-status,body.olekma-home .om-community-grid .om-lf-type{align-self:flex-start}@media(max-width:650px){body.olekma-home .om-community-grid .om-heading{grid-template-columns:minmax(0,1fr)!important}body.olekma-home .om-community-grid .om-heading>a{justify-self:start!important;text-align:left!important;margin:0!important}body.olekma-home .om-community-grid .om-cp-card,body.olekma-home .om-community-grid .olf-home-card{height:auto!important;min-height:150px!important}}
