dialog.dsm-modal[open]{--dsm-brand:#82104a;position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;background:transparent;display:grid;place-items:center;box-sizing:border-box}
dialog.dsm-modal[data-brand="plus"]{--dsm-brand:#7fbd26}
dialog.dsm-modal::backdrop{background:#82104ab8;backdrop-filter:blur(var(--dsm-blur,12px));-webkit-backdrop-filter:blur(var(--dsm-blur,12px))}
dialog.dsm-modal[data-brand="plus"]::backdrop{background:#7fbd26b8}
.dsm-panel{position:relative;width:min(94vw,1160px);height:min(84vh,820px);height:min(84dvh,820px);box-sizing:border-box;padding:46px 56px 44px}
.dsm-area{height:100%;width:100%;position:relative;display:grid;place-items:center;overflow:hidden}
.dsm-shell{position:relative;max-width:100%;margin:auto}
.dsm-sheet{background:white;overflow:hidden}
.dsm-sheet img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.dsm-modal .dsm-panel button,.dsm-tools a,.dsm-tools output,.dsm-loading{box-sizing:border-box;background:white;color:#242424;border:0;border-radius:32px;box-shadow:0 2px 12px #0002;font:600 15px/1.2 system-ui}
.dsm-modal .dsm-panel button,.dsm-tools a{cursor:pointer}
.dsm-panel .dsm-close{position:absolute;top:0;left:50%;right:auto;transform:translateX(-50%);padding:10px 16px;z-index:4}
.dsm-panel .dsm-prev,.dsm-panel .dsm-next{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;padding:0;font:32px/1 system-ui}
.dsm-panel .dsm-prev{left:0}.dsm-panel .dsm-next{right:0}
.dsm-panel button:disabled{opacity:.45;cursor:default}
.dsm-panel button:focus-visible,.dsm-tools a:focus-visible{outline:3px solid #161616;outline-offset:3px}
.dsm-tools{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;white-space:nowrap}
.dsm-tools output,.dsm-tools a{padding:8px 12px;display:inline-flex;align-items:center}
.dsm-tools :empty:not(svg):not(path),.dsm-panel [hidden]{display:none}
.dsm-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:14px 18px;white-space:nowrap}
.dsm-loading i{width:19px;height:19px;border:3px solid #ddd;border-top-color:var(--dsm-brand);border-radius:50%;animation:dsm-spin .85s linear infinite}
@keyframes dsm-spin{to{transform:rotate(360deg)}}
@media(max-width:650px){.dsm-panel{width:98vw;padding-inline:33px}.dsm-panel .dsm-prev,.dsm-panel .dsm-next{width:32px;height:40px}}
@media(prefers-reduced-motion:reduce){.dsm-loading i{animation:none}}
dialog.dsm-modal[open]{grid-template-rows:minmax(0,1fr) auto;--tg-brand:var(--dsm-brand)}
dialog.dsm-modal::backdrop{animation:dsm-back-in .36s ease-out both}
dialog.dsm-modal.dsm-closing::backdrop{animation:dsm-back-out .25s ease-in both}
.dsm-modal.dsm-closing>.dsm-panel,.dsm-modal.dsm-closing>.dsm-contacts{opacity:0;transition:opacity .23s ease}
.dsm-modal .dsm-panel{max-height:100%;min-height:0}
.dsm-modal .dsm-shell.dsm-arrive{animation:dsm-arrive 1.3s cubic-bezier(.19,.76,.24,1) both;transform-origin:center bottom}
.dsm-modal .dsm-panel button:is(.dsm-prev,.dsm-next,.dsm-close){border:none;border-radius:0;box-shadow:none;background:white;color:black;display:grid;place-items:center;padding:0}
.dsm-modal .dsm-panel button:is(.dsm-prev,.dsm-next){position:fixed;top:47%;width:46px;height:50px;font-size:0;z-index:3}
.dsm-modal .dsm-prev{left:clamp(3px,1vw,22px)}.dsm-modal .dsm-next{right:clamp(3px,1vw,22px)}
.dsm-modal .dsm-prev:after,.dsm-modal .dsm-next:after{content:"";width:10px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
.dsm-modal .dsm-prev:after{transform:rotate(135deg)}
.dsm-modal .dsm-panel button.dsm-close{width:44px;height:44px;font:600 25px/1 system-ui}
.dsm-contacts{align-self:end;width:100%;--tg-brand:var(--dsm-brand)}
.dsm-contacts:empty{display:none}
.dsm-contacts .tg-contactbar{position:static;background:white;color:black;padding:20px 24px calc(20px + env(safe-area-inset-bottom));max-height:28dvh;overflow:auto}
.dsm-contacts .tg-contact-inner,.dsm-contacts .tg-contact-items{display:flex;align-items:center;justify-content:center;gap:30px;flex-wrap:wrap}
.dsm-contacts h2{color:var(--dsm-brand);font-weight:500;font-size:24px;line-height:1.3;margin:0;padding:0}
.dsm-contacts .tg-contact-item{display:inline-flex;align-items:center;gap:10px;color:black;font-size:15px;text-decoration:none}
.dsm-contacts .tg-icon{color:var(--dsm-brand);width:23px;height:23px}
.dsm-contacts a:hover span{text-decoration:underline}
@keyframes dsm-back-in{from{opacity:0}to{opacity:1}}
@keyframes dsm-back-out{from{opacity:1}to{opacity:0}}
@keyframes dsm-arrive{from{opacity:0;transform:translate3d(-36vw,100vh,0) rotate(-18deg)}to{opacity:1;transform:none}}
@media(max-width:650px){.dsm-modal .dsm-panel button:is(.dsm-prev,.dsm-next){width:32px;height:42px}}
@media(prefers-reduced-motion:reduce){dialog.dsm-modal::backdrop,dialog.dsm-modal.dsm-closing::backdrop,.dsm-modal .dsm-shell.dsm-arrive{animation:none}}
dialog.dsm-modal[open]{overflow:hidden}
.dsm-stage{position:relative;align-self:stretch;justify-self:stretch;display:grid;place-items:center;min-width:0;min-height:0}
.dsm-stage>.dsm-panel{grid-area:1/1}
.dsm-stage>button{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:48px;display:grid;place-items:center;background:#fff;color:black;border:0;border-radius:0;padding:0;box-shadow:none;cursor:pointer}
.dsm-stage>.dsm-prev{left:22px}.dsm-stage>.dsm-next{right:22px}
.dsm-stage>button:disabled{opacity:.45;cursor:default}
.dsm-modal .dsm-stage button::before,.dsm-modal .dsm-stage button::after{content:none!important}
.dsm-stage button svg{display:block;position:static;margin:0;pointer-events:none}
.dsm-stage button:hover{color:var(--dsm-brand)}
.dsm-modal .dsm-panel button.dsm-close:hover{color:var(--dsm-brand)}
.dsm-modal .dsm-area{min-height:0;min-width:0;overflow:visible}
.dsm-shell .dsm-flip,.dsm-flip>.stf__wrapper{position:absolute!important;inset:0;width:100%;height:100%;padding:0!important;box-sizing:border-box}
.dsm-flip .stf__block{width:100%;height:100%}
.dsm-sheet{box-shadow:none}
.dsm-sheet::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,rgba(0,0,0,.13),rgba(0,0,0,.035) 4%,transparent 13%,transparent 98%,rgba(0,0,0,.035))}
.dsm-sheet.--left::after{transform:scaleX(-1)}
.dsm-shell:not(.dsm-arrive){visibility:hidden}
.dsm-modal.dsm-closing>.dsm-stage{opacity:0;transition:opacity .23s ease}
.dsm-modal.dsm-closing>.dsm-contacts{opacity:1;transition:none}
@media(max-width:650px){.dsm-stage>.dsm-prev{left:6px}.dsm-stage>.dsm-next{right:6px}.dsm-stage>button{width:34px;height:42px}}
.dsm-flip .dsm-outside{background:transparent!important;box-shadow:none!important;pointer-events:none}
.dsm-outside::after,.dsm-cover-page::after{display:none!important}
.dsm-cover-page{box-shadow:none}

.dsm-flip .dsm-sheet:not(.dsm-cover-page)::after{content:""!important;position:absolute;inset:0;background:linear-gradient(90deg,#00000013,transparent 6%);pointer-events:none}
.dsm-flip .dsm-sheet.--left:not(.dsm-cover-page)::after{transform:scaleX(-1)}

@media(max-width:760px){
    .dsm-contacts .tg-contactbar{box-sizing:border-box;padding:18px 22px calc(18px + env(safe-area-inset-bottom));max-height:42dvh}
    .dsm-contacts .tg-contact-inner,.dsm-contacts .tg-contact-items{flex-direction:column;flex-wrap:nowrap;align-items:center;text-align:center}
    .dsm-contacts .tg-contact-inner{gap:18px}
    .dsm-contacts .tg-contact-items{width:100%;gap:12px}
    .dsm-contacts .tg-contact-item{justify-content:center;gap:12px;max-width:100%;line-height:1.5;overflow-wrap:anywhere}
    .dsm-contacts .tg-contactbar h2{width:100%;text-align:center;font-size:21px}
}
dialog.dsm-modal.dsm-over-tile::backdrop{backdrop-filter:blur(calc(var(--dsm-blur,12px) + 6px));-webkit-backdrop-filter:blur(calc(var(--dsm-blur,12px) + 6px))}
.dsm-edge-hit,.dsm-edge-layer{position:absolute;top:0;bottom:0;z-index:2;touch-action:none;user-select:none}
.dsm-edge-hit{width:50%;cursor:grab}.dsm-edge-hit.left{left:0}.dsm-edge-hit.right{right:0}
.dsm-edge-layer{inset:0;z-index:3;perspective:2200px}
.dsm-turning-cover>.dsm-flip{visibility:hidden!important;opacity:0!important}
.dsm-edge-layer>.dsm-edge-face,.dsm-edge-paper{position:absolute;top:0;bottom:0;width:50%}
.dsm-edge-layer>.left,.dsm-edge-paper.backward{left:0}
.dsm-edge-layer>.right,.dsm-edge-paper.forward{left:50%}
.dsm-edge-paper{transform-style:preserve-3d;z-index:1}
.dsm-edge-paper.forward{transform-origin:left center}.dsm-edge-paper.backward{transform-origin:right center}
.dsm-edge-paper>.dsm-edge-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.dsm-edge-paper>.back{transform:rotateY(180deg)}
.dsm-edge-face{background:white}.dsm-edge-face img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}

.dsm-modal :is(.dsm-prev,.dsm-next,.dsm-close,.dsm-tools){transition:opacity .32s ease}
.dsm-modal:not(.dsm-controls-ready) :is(.dsm-prev,.dsm-next,.dsm-close,.dsm-tools){visibility:hidden;opacity:0;pointer-events:none}
.dsm-modal.dsm-load-error .dsm-close,.dsm-modal.dsm-load-error .dsm-tools{visibility:visible;opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.dsm-modal :is(.dsm-prev,.dsm-next,.dsm-close,.dsm-tools){transition:none}}
