/* Раздел безопасности и полноэкранный просмотр фотографий */
.safety-page{scroll-margin-top:22px;background:linear-gradient(180deg,#f4f9fc 0%,#fff 100%)}
.safety-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.safety-page-kicker{display:block;margin-bottom:9px;color:#1483b3;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.safety-page-head h2{max-width:740px;color:#123f70;font-size:clamp(28px,4vw,42px);line-height:1.08;letter-spacing:-.04em}
.safety-page-head p{margin:10px 0 0;color:#657e91;font-size:15px;line-height:1.55}
.safety-back{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;margin-bottom:4px;padding:10px 14px;border:1px solid #cfe3ed;border-radius:999px;background:#fff;color:#087fbd;font-size:13px;font-weight:700;transition:background .2s ease,transform .2s ease}
.safety-back:hover{background:#eaf6fb;transform:translateX(-2px)}
.safety-content{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);gap:22px;align-items:start}
.safety-guidance{padding:22px;border:1px solid #d4e5ed;border-top:4px solid #d84b4b;border-radius:15px;background:#fff;box-shadow:0 12px 30px rgba(24,72,99,.06)}
.safety-guidance-heading{display:flex;align-items:center;gap:11px;margin:0 0 15px}
.safety-guidance-heading h3{margin:0;color:#173d5d;font-size:19px;line-height:1.25}
.safety-guidance-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#fff0ef;color:#d84b4b;font-size:20px;font-weight:850}
.safety-guidance p{margin:0 0 13px;color:#526e82;font-size:14px;line-height:1.65}
.safety-guidance p:last-child{margin-bottom:0}
.safety-guidance p strong{color:#183f60}
.safety-emergency{padding:12px 13px;border:1px solid #f2d7d4;border-radius:10px;background:#fff5f3}
.safety-emergency strong{color:#b63835!important}
.safety-gallery-block{min-width:0;padding:18px;border:1px solid #d8e8ef;border-radius:15px;background:rgba(255,255,255,.86);box-shadow:0 12px 30px rgba(24,72,99,.05)}
.safety-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
.safety-gallery-heading h3{margin:0;color:#163f60;font-size:17px}
.safety-gallery-heading p{margin:5px 0 0;color:#708799;font-size:12px;line-height:1.45}
.safety-gallery-count{flex:0 0 auto;padding:6px 9px;border:1px solid #d7e8ef;border-radius:999px;background:#f4f9fc;color:#648093;font-size:11px;font-weight:700}
.safety-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:620px;overflow:auto;padding:2px 5px 4px 2px;scrollbar-width:thin;scrollbar-color:#9ccde0 transparent}
.safety-gallery .album-thumb{aspect-ratio:4/3;min-width:0}
.album-dialog{width:min(1120px,calc(100% - 16px));max-width:1120px;max-height:95vh;padding:0;overflow:hidden;border:1px solid rgba(221,239,247,.7);border-radius:18px;background:#0c2434;color:#fff;box-shadow:0 28px 100px rgba(0,0,0,.5)}
.album-dialog::backdrop{background:rgba(3,15,24,.86);backdrop-filter:blur(7px)}
.album-dialog-inner{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-height:95vh;min-height:45vh;padding:16px 76px 42px}
.album-head{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;color:rgba(255,255,255,.84)}
.album-head h2{margin:0;color:inherit;font-size:13px;font-weight:600;letter-spacing:.02em}
.album-close{width:40px;height:40px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(7,26,39,.55);color:#fff;font-size:25px;line-height:1;cursor:pointer;backdrop-filter:blur(6px);transition:background .2s ease,transform .2s ease}
.album-close:hover{background:rgba(255,255,255,.2);transform:rotate(90deg)}
.album-photo-stage{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:10px;width:100%;min-height:0}
.album-large-photo{display:block;width:100%;height:min(78vh,820px);object-fit:contain;border-radius:9px;background:#091a26}
.album-photo-caption{color:rgba(255,255,255,.86);font-size:13px;text-align:center}
.album-photo-count{position:absolute;bottom:13px;left:0;right:0;color:rgba(255,255,255,.66);font-size:12px;text-align:center}
.album-photo-nav{display:grid;place-items:center;width:44px;height:52px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;font-size:28px;cursor:pointer;transition:background .2s ease,transform .2s ease}
.album-photo-nav:hover{background:rgba(255,255,255,.2);transform:scale(1.04)}
@media(max-width:780px){.safety-content{grid-template-columns:1fr}.safety-guidance{order:0}.safety-gallery-block{order:1}.safety-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:540px}}
@media(max-width:600px){.safety-page-head{align-items:flex-start;flex-direction:column;gap:14px}.safety-back{margin:0}.safety-guidance{padding:18px}.safety-gallery-block{padding:13px}.safety-gallery-heading{align-items:flex-start;flex-direction:column}.safety-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.album-dialog{width:calc(100% - 10px);max-height:96vh;border-radius:13px}.album-dialog-inner{min-height:68vh;padding:56px 42px 48px}.album-photo-stage{grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}.album-large-photo{height:72vh}.album-photo-nav{width:34px;height:44px;font-size:25px}.album-close{position:absolute;top:8px;right:8px;width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.safety-back,.album-photo-nav,.album-close,.album-thumb img{transition:none!important}}
/* Safety information is a dedicated, initially closed page-like dialog. */
.safety-dialog{width:min(1080px,calc(100% - 24px));max-width:1080px;max-height:min(94vh,1000px);padding:0;overflow:hidden;border:1px solid #c8e1ed;border-radius:20px;background:#f7fbfd;color:#153b59;box-shadow:0 28px 100px rgba(4,33,53,.4)}
.safety-dialog::backdrop{background:rgba(5,27,43,.76);backdrop-filter:blur(6px)}
.safety-dialog .safety-page{max-height:min(94vh,1000px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(20px,4vw,42px);scrollbar-width:thin;scrollbar-color:#9bc9db transparent}
.safety-dialog .safety-page-head{align-items:flex-start;margin-bottom:22px}
.safety-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;border:1px solid #d6e6ef;border-radius:50%;background:#fff;color:#123f70;font-size:25px;line-height:1;cursor:pointer;transition:background .2s ease,transform .2s ease}
.safety-close:hover{background:#e6f4fa;transform:rotate(90deg)}
.safety-dialog .safety-content{grid-template-columns:minmax(260px,.92fr) minmax(0,1.08fr);gap:20px}
.safety-dialog .safety-guidance{margin:0;padding:22px;border-top:4px solid #d84b4b;border-left:1px solid #d4e5ed}
.safety-dialog .safety-guidance-heading{margin-bottom:14px}
.safety-dialog .safety-guidance-heading h3{font-size:20px}
.safety-dialog .safety-guidance p{margin:0 0 13px;font-size:14px;line-height:1.7}
.safety-dialog .safety-guidance p:last-child{margin-bottom:0}
.safety-dialog .safety-subheading{margin:18px 0 7px;color:#17496a;font-size:14px;line-height:1.35}
.safety-dialog .safety-emergency{margin-top:17px!important;padding:12px 13px!important;border:1px solid #f2d7d4;border-radius:10px;background:#fff5f3;color:#75533c;font-size:13px!important}
.safety-dialog .safety-emergency strong{color:#a63c35!important}
.safety-dialog .safety-gallery-block{padding:16px}
.safety-dialog .safety-gallery{max-height:520px}
@media(max-width:780px){.safety-dialog{width:calc(100% - 14px);max-height:96vh;border-radius:16px}.safety-dialog .safety-page{max-height:96vh;padding:22px 16px}.safety-dialog .safety-content{grid-template-columns:1fr}.safety-dialog .safety-gallery{max-height:420px}}
@media(max-width:600px){.safety-dialog .safety-page-head{flex-direction:row;align-items:flex-start;gap:10px}.safety-dialog .safety-page-head h2{font-size:28px}.safety-close{flex-basis:38px;width:38px;height:38px;font-size:22px}.safety-dialog .safety-gallery-block{padding:12px}.safety-dialog .safety-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:380px}.safety-dialog .safety-guidance{padding:17px}.safety-dialog .safety-guidance p{font-size:13px;line-height:1.65}}
@media(prefers-reduced-motion:reduce){.safety-close{transition:none!important}}

/* Compact photo mosaic styled like the shop gallery. */
.safety-dialog .safety-gallery-block{padding:14px}
.safety-dialog .safety-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:360px;padding:2px;overflow:auto}
.safety-dialog .safety-gallery .album-thumb{width:100%;min-width:0;aspect-ratio:4/3;border:1px solid #d8e8ef;border-radius:9px}
.safety-dialog .safety-gallery .album-thumb img{width:100%;height:100%;object-fit:cover}
.safety-dialog .safety-gallery .album-thumb span{font-size:9px;padding:4px 7px}
@media(max-width:760px){.safety-dialog .safety-gallery{grid-template-columns:repeat(3,minmax(0,1fr));max-height:320px;gap:7px}}
@media(max-width:480px){.safety-dialog .safety-gallery{grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}}

/* A translucent blue tide rises across only the lower part of the open safety panel. */
.safety-dialog{position:relative;isolation:isolate;background:#f7fbfd}
.safety-dialog::before,.safety-dialog::after{content:"";position:absolute;z-index:0;left:-15%;width:130%;height:61%;bottom:-67%;pointer-events:none;opacity:0;clip-path:polygon(0 22%,8% 16%,16% 19%,24% 12%,32% 18%,40% 11%,48% 17%,56% 10%,64% 16%,72% 9%,80% 15%,88% 8%,96% 14%,100% 10%,100% 100%,0 100%)}
.safety-dialog::before{background:linear-gradient(180deg,rgba(65,184,220,.28),rgba(28,149,201,.18) 48%,rgba(18,124,184,.14));filter:blur(.3px)}
.safety-dialog::after{left:-22%;bottom:-71%;height:56%;background:linear-gradient(180deg,rgba(117,214,235,.18),rgba(49,167,210,.12));clip-path:polygon(0 27%,10% 19%,20% 25%,30% 15%,40% 22%,50% 14%,60% 22%,70% 13%,80% 20%,90% 12%,100% 19%,100% 100%,0 100%)}
.safety-dialog[open]::before{opacity:1;animation:safety-wave-rise 1.05s cubic-bezier(.2,.75,.22,1) both,safety-wave-flow 6s ease-in-out 1.05s infinite alternate}
.safety-dialog[open]::after{opacity:1;animation:safety-wave-rise-soft 1.25s cubic-bezier(.2,.75,.22,1) .08s both,safety-wave-flow-soft 7s ease-in-out 1.3s infinite alternate}
.safety-dialog .safety-page{position:relative;z-index:1;background:transparent!important}
@keyframes safety-wave-rise{0%{transform:translateY(78%);opacity:0}65%{opacity:.9}100%{transform:translateY(0);opacity:1}}
@keyframes safety-wave-flow{0%{transform:translateX(-2%) translateY(0)}100%{transform:translateX(2%) translateY(-5px)}}
@keyframes safety-wave-rise-soft{0%{transform:translateY(85%);opacity:0}68%{opacity:.75}100%{transform:translateY(0);opacity:.76}}
@keyframes safety-wave-flow-soft{0%{transform:translateX(2%) translateY(0)}100%{transform:translateX(-2%) translateY(-7px)}}
@media(prefers-reduced-motion:reduce){.safety-dialog[open]::before,.safety-dialog[open]::after{animation:none!important;transform:translateY(0);opacity:.65}.safety-dialog .safety-gallery .album-thumb img{transition:none!important}}
