/* П. 144: только визуальный верх в сетке, все условия — в окне. */
@media(min-width:1024px){html:has(.offers-catalog--compact){scrollbar-gutter:stable}}
.offers_main:has(.offers-catalog--compact) .offers_head{margin-top:12px;margin-bottom:24px}
.offers-catalog--compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.offers-catalog--compact .offer-teaser{position:relative;padding:0;isolation:isolate;border-radius:22px;background:#082a20;color:#fff3df}
.offers-catalog--compact .catalog-card__intro{box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;height:236px;min-height:0;margin:0;padding:20px;border-radius:inherit}
.offers-catalog--compact .catalog-card__image{height:auto;top:50%;bottom:auto;transform:translateY(-50%);object-fit:contain;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)}
.offers-catalog--compact .season-card__top{margin-bottom:10px}
.offers-catalog--compact .season-card__icon{width:34px;height:34px;border-radius:11px}
.offers-catalog--compact .season-card__icon svg{width:23px;height:23px}
.offers-catalog--compact .season-card__until{font-size:12px;padding:4px 7px}
.offers-catalog--compact .season-card__price{margin-bottom:10px;gap:4px}
.offers-catalog--compact .season-card__price b{font-size:36px;color:#ffe4b3}
.offers-catalog--compact .season-card__price span{font-size:13px;line-height:1.25;color:#f5e8cf;max-width:60%}
.offers-catalog--compact .season-card__price--text b{font-size:28px}
.offers-catalog--compact .catalog-card__intro .season-card__title{font-size:21px;line-height:1.15;min-height:2.3em;max-width:88%;margin:0;color:#fff3df}
.offers-catalog--compact .catalog-card__visual:after{background:linear-gradient(90deg,rgba(4,32,23,.92),rgba(4,32,23,.6) 40%,transparent 78%)}
.offer-teaser__open{position:absolute;inset:0;z-index:2;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;cursor:pointer;padding:0}
.offer-teaser__open:focus-visible{outline:3px solid var(--c-gold);outline-offset:4px}
.offer-teaser__more{position:absolute;right:17px;bottom:17px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#fff3df;background:#082a20;pointer-events:none;transition:background .16s ease,color .16s ease}
@media(hover:hover){.offer-teaser:hover .offer-teaser__more{background:#ffe4b3;color:#082a20}}
.offer-popup{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:0;border-radius:24px;background:var(--c-surface);color:var(--c-text);font-family:"Exo 2",sans-serif;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.22)}
.offer-popup[open]{display:flex;flex-direction:column;animation:offer-popup-in .22s cubic-bezier(.2,.7,.2,1) both}
.offer-popup::backdrop{background:rgba(0,16,11,.72);animation:offer-backdrop-in .22s ease both}
.offer-popup.is-closing{animation:offer-popup-out .16s ease both}
.offer-popup.is-closing::backdrop{animation:offer-backdrop-out .16s ease both}
.offer-popup__scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.offer-popup .catalog-card__intro{box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;min-height:238px;margin:0;padding:26px 28px 22px;border-radius:0}
.offer-popup .season-card__top{padding-right:44px}
.offer-popup .season-card__until{padding:5px 8px;border-radius:8px;background:#082a20;color:#fff3df;font-size:13px}
.offer-popup .season-card__price b{font-size:42px}
.offer-popup .season-card__title{font-family:"Exo 2",sans-serif;font-size:27px;line-height:1.2;text-align:left;margin:0;padding:0;font-weight:500;max-width:70%}
.offer-popup--pictured .season-card__title,.offer-popup--pictured .season-card__price b{color:#fff3df}
.offer-popup--pictured .season-card__price span{color:#f5e8cf}
.offer-popup--pictured .season-card__icon{color:#ffe4b3;background:rgba(222,192,84,.17)}
.offer-popup__close{position:absolute;z-index:3;top:10px;right:10px;min-width:44px;min-height:44px;background:#082a20;color:#fff3df;border:0}
.offer-popup__close:focus-visible,.offer-popup button:focus-visible,.offer-popup a:focus-visible{outline:2px solid var(--c-gold);outline-offset:3px}
.offer-popup__content{padding:24px 28px}
.offer-popup .season-card__lead,.offer-popup .season-card__body{font-size:16px;line-height:1.5}
.offer-popup .season-card__lead{margin:0 0 20px}
.offer-popup .season-card__body p{margin:0 0 14px}
.offer-popup .season-card__body p:last-child{margin-bottom:0}
.offer-popup__doctors{margin-top:22px;padding-top:18px;border-top:1px solid var(--c-surface-line)}
.offer-popup__actions{flex:none;padding:16px 28px 20px;border-top:1px solid var(--c-surface-line);background:var(--c-surface)}
html.offer-preview-open,html.offer-preview-open body{overflow:hidden}
@keyframes offer-popup-in{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes offer-popup-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes offer-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes offer-backdrop-out{from{opacity:1}to{opacity:0}}
@media(max-width:1023px){.offers-catalog--compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .offers-catalog--compact{grid-template-columns:1fr;gap:16px}
 .offers-catalog--compact .offer-teaser{padding:0;border-radius:20px}
 .offers-catalog--compact .catalog-card__intro{height:236px;padding:20px;margin:0}
 .offer-popup{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:20px}
 .offer-popup .catalog-card__intro{padding:20px;min-height:234px}
 .offer-popup .catalog-card__image{height:auto;top:50%;bottom:auto;transform:translateY(-50%);object-fit:contain;mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)}
 .offer-popup .season-card__icon{width:36px;height:36px}
 .offer-popup .season-card__price b{font-size:36px}
 .offer-popup .season-card__price--text b{font-size:28px}
 .offer-popup .season-card__price span{max-width:55%;font-size:13px}
 .offer-popup .season-card__title{font-size:23px;max-width:80%}
 .offer-popup__content{padding:22px 20px}
 .offer-popup__actions{padding:14px 20px max(16px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.offer-popup[open],.offer-popup.is-closing,.offer-popup::backdrop,.offer-popup.is-closing::backdrop{animation:none}.offer-teaser__more{transition:none}}
