/* «Погружение»: полноэкранная панорама 360°. */
body.gp-open { overflow: hidden; }
.gp { position: fixed; inset: 0; z-index: 2000; background: #050a18; color: #fff; font-family: Ubuntu, system-ui, sans-serif; clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); outline: none; }
.gp.on { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.gp.off { clip-path: circle(0 at 50% 50%); transition-duration: .45s; }
.gp-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.gp-view:active { cursor: grabbing; }
.gp-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 6, 20, .45) 100%); }
.gp.gp-flash .gp-view { animation: gp-flash .5s ease; }
@keyframes gp-flash { 40% { filter: brightness(1.6) saturate(.6); } }

.gp-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(10, 18, 40, .55); color: #fff; font: 600 16px/1 inherit; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .15s; }
.gp-btn span { font-size: 13px; }
.gp-btn:hover { background: rgba(30, 50, 90, .7); }
.gp-btn:active { transform: scale(.94); }
.gp-btn.on { background: #0f8f7a; border-color: #31b39b; }
.gp-btn:focus-visible, .gp-pin:focus-visible, .gp-list button:focus-visible, .gp-go:focus-visible { outline: 3px solid #7cc4ff; outline-offset: 2px; }

.gp-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 40px; background: linear-gradient(180deg, rgba(4, 10, 26, .7), transparent); pointer-events: none; }
.gp-top > * { pointer-events: auto; }
.gp-title { animation: gp-rise .8s .35s both cubic-bezier(.2, .9, .3, 1); }
.gp-kind { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gp-title h2 { margin: 8px 0 2px; font-size: clamp(24px, 4vw, 40px); line-height: 1.1; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.gp-coord { margin: 0; font-size: 13px; opacity: .8; }
.gp-close { width: 46px; height: 46px; justify-content: center; font-size: 26px; padding: 0; border-radius: 50%; }

.gp-compass { position: absolute; right: 20px; top: 92px; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.gp-rose { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(10, 18, 40, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gp-rose b, .gp-rose i { position: absolute; left: 50%; top: 50%; width: 18px; margin: -9px; text-align: center; font: 700 12px/18px inherit; font-style: normal; }
.gp-rose b { transform: translateY(-22px); color: #ff6b5a; }
.gp-rose i:nth-of-type(1) { transform: translateX(22px); } .gp-rose i:nth-of-type(2) { transform: translateY(22px); } .gp-rose i:nth-of-type(3) { transform: translateX(-22px); }
.gp-compass::before { content: ''; position: absolute; top: -6px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 8px solid #ffd36b; }
.gp-head { padding: 3px 9px; border-radius: 999px; background: rgba(10, 18, 40, .55); font-size: 12px; font-weight: 700; }

.gp-bar { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(4, 10, 26, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: gp-rise .7s .6s both cubic-bezier(.2, .9, .3, 1); }
.gp-help { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(4, 10, 26, .55); font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .6s; animation: gp-rise .7s 1.6s both; }
.gp.gp-used .gp-help { opacity: 0; }

/* Метки на панораме: «маяк», выезжающая подпись. */
.gp-hot { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gp-pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; pointer-events: auto; will-change: transform; animation: gp-pop .6s calc(1.4s + var(--d) * .08s) both cubic-bezier(.2, 1.4, .4, 1); }
.gp-pin i { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #14204a; font-style: normal; font-size: 17px; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.gp-pin i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: gp-ping 2.4s infinite; }
.gp-pin span { max-width: 0; overflow: hidden; margin: -18px 0 0 8px; padding: 0; border-radius: 10px; background: rgba(10, 18, 40, .78); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: max-width .35s ease, padding .35s ease; }
.gp-pin:hover span, .gp-pin:focus-visible span { max-width: 260px; padding: 6px 10px; }
.gp-pin-near i { background: #ffd36b; color: #4a3200; width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 13px; }
.gp-pin-near span { max-width: 220px; padding: 5px 9px; margin-top: -15px; background: rgba(60, 40, 0, .6); font-size: 12.5px; }
.gp-pin-fact i { background: #7cdcc4; color: #053b33; }
@keyframes gp-ping { 0% { transform: scale(.8); opacity: 1; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes gp-pop { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes gp-rise { from { opacity: 0; transform: translateY(14px); } }
.gp-bar { animation-name: gp-rise-c; }
@keyframes gp-rise-c { from { opacity: 0; transform: translate(-50%, 14px); } to { transform: translate(-50%, 0); } }
.gp-help { animation-name: gp-rise-c; }

.gp-card { position: absolute; left: 20px; bottom: 90px; width: min(380px, calc(100vw - 40px)); padding: 18px 18px 16px; border-radius: 20px; background: rgba(250, 252, 255, .96); color: #14204a; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.gp-card.on { animation: gp-card .5s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes gp-card { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.gp-card h3 { margin: 8px 0 6px; font-size: 20px; }
.gp-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #33406b; }
.gp-card-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e6f6f2; font-size: 20px; }
.gp-card-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2f7; color: #14204a; font-size: 20px; cursor: pointer; }
.gp-go { margin-top: 12px; padding: 10px 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #0b6e64, #31b39b); color: #fff; font: 700 14px inherit; cursor: pointer; }

.gp-list { position: absolute; right: 20px; bottom: 90px; width: min(330px, calc(100vw - 40px)); max-height: min(60vh, 520px); overflow: auto; padding: 14px; border-radius: 20px; background: rgba(10, 18, 40, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: gp-card .4s; }
.gp-list h3 { margin: 2px 4px 10px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.gp-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: #fff; text-align: left; cursor: pointer; }
.gp-list button:hover { background: rgba(255, 255, 255, .1); }
.gp-list i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-style: normal; }
.gp-list b { display: block; font-size: 14px; } .gp-list small { display: block; font-size: 12px; opacity: .7; }

.gp-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at center, rgba(20, 40, 80, .5), rgba(5, 10, 24, .9)); font-weight: 600; }
.gp-load[hidden] { display: none; }
.gp-load i { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #31b39b; animation: gp-spin .9s linear infinite; }
@keyframes gp-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .gp-top { padding: 12px 12px 30px; } .gp-compass { top: 80px; right: 12px; transform: scale(.85); transform-origin: top right; }
  .gp-btn span { display: none; } .gp-bar { bottom: 12px; gap: 6px; } .gp-help { bottom: 74px; white-space: normal; width: calc(100% - 40px); text-align: center; }
  .gp-card, .gp-list { left: 12px; right: 12px; width: auto; bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .gp, .gp.on, .gp.off { transition: none; clip-path: none; } .gp-pin, .gp-title, .gp-bar, .gp-help, .gp-card.on { animation: none; } .gp-pin i::after { animation: none; } }

/* Кнопка «Погружение» в атласе. */
.atl-dive { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #14204a, #0b6e64); color: #fff; font: 700 14.5px/1 Ubuntu, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 110, 100, .35); transition: transform .2s, box-shadow .2s; }
.atl-dive:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 110, 100, .45); }
.atl-dive b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 11px; }
.atl-dives { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.atl-dives button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #cfe0ea; border-radius: 999px; background: linear-gradient(180deg, #fff, #eef7f5); color: #14204a; font: 600 13.5px Ubuntu, sans-serif; cursor: pointer; transition: transform .15s, border-color .15s; }
.atl-dives button:hover { transform: translateY(-1px); border-color: #31b39b; }
.atl-spot-dive { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; animation: atl-pop .5s .15s both; }
.atl-spot-dive small { color: #5b6688; font-size: 12.5px; line-height: 1.3; }
.atl-dives span { font-weight: 700; }
.gp-credit { position: absolute; left: 16px; bottom: 10px; max-width: min(46vw, 520px); margin: 0; padding: 4px 10px; border-radius: 8px; background: rgba(4, 10, 26, .5); font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.gp-credit a { color: #9fe3d3; }
.gp-nocompass .gp-compass { display: none; }
@media (max-width: 640px) { .gp-credit { bottom: 66px; max-width: calc(100% - 32px); } }

/* Встроенная панорама в задании. */
.gp.gp-inline { position: relative; inset: auto; z-index: auto; height: clamp(280px, 52vh, 460px); border-radius: 18px; overflow: hidden; clip-path: none; transition: none; box-shadow: 0 14px 40px rgba(20, 40, 80, .22); }
.gp-inline .gp-close, .gp-inline [data-act=full], .gp-inline .gp-help { display: none; }
.gp-inline .gp-top { padding: 12px 14px 24px; }
.gp-inline .gp-title h2 { font-size: 22px; }
.gp-inline .gp-bar { bottom: 10px; padding: 6px; } .gp-inline .gp-btn { height: 36px; min-width: 36px; }
.gp-inline .gp-compass { top: 14px; right: 14px; }
.gp-inline .gp-card, .gp-inline .gp-list { bottom: 62px; }
.gp-inline .gp-credit { bottom: 56px; left: 10px; }
.gp-quiz .gp-title, .gp-quiz [data-act=list], .gp-quiz [data-act=src] { display: none; }
.gp [hidden] { display: none !important; }
.gp-view { opacity: 0; transition: opacity .6s ease; }
.gp.gp-ready .gp-view { opacity: 1; }
.exp-dive { display: inline-flex; align-items: center; gap: 8px; border: 0 !important; background: linear-gradient(135deg, #14204a, #0b6e64) !important; color: #fff !important; }
.exp-dive b { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 11px; }
.gp:not(.gp-inline) .gp-credit { top: 120px; bottom: auto; left: 20px; max-width: min(380px, 60vw); }
@media (max-width: 640px) { .gp:not(.gp-inline) .gp-credit { top: 104px; left: 12px; } }
