/* UNI GROUPS — превју на почетна: „термостатот на Земјата“. Префикс .ugh- */
:root { --ugh-ink: #071326; --ugh-blue: #2f8bff; --ugh-warm: #ff9a3c; --ugh-font: 'Manrope', 'Roboto', system-ui, sans-serif; }

.ugh {
  position: fixed; inset: 0; z-index: 3000; overflow: hidden; isolation: isolate;
  height: 100svh;
  transition: transform .9s cubic-bezier(.6,0,.2,1), opacity .75s ease .12s;
  background: var(--ugh-ink); color: #fff; font-family: var(--ugh-font);
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100%;
}
.ugh.is-leaving { transform: scale(3.2); opacity: 0; pointer-events: none; }
html.ugh-lock, html.ugh-lock body { overflow: hidden; }
.ugh-stage { position: absolute; inset: 0; }
.ugh-canvas { width: 100%; height: 100%; display: block; }
.ugh.is-fallback .ugh-canvas { display: none; }
.ugh.is-fallback .ugh-stage { background: url(warm.jpg) 52% 8% / cover no-repeat; }

.ugh-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,19,38,0) 52%, rgba(7,19,38,.72) 78%, rgba(7,19,38,.94) 100%); }

/* ознаки врз сликата (позицијата ја поставува JS) */
.ugh-tag { position: absolute; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .8s ease; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ugh-tag svg { display: block; width: 30px; height: 30px; margin: .45rem auto 0; }
.ugh-tag.is-heat { color: var(--ugh-warm); } .ugh-tag.is-cool { color: #5db4ff; }
.ugh.is-warm .ugh-tag { opacity: 1; }

.ugh-pin { position: absolute; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.ugh.is-pinned .ugh-pin { opacity: 1; }
.ugh-pin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(255,154,60,.95), 0 0 18px 6px rgba(255,154,60,.75); }
.ugh-pin i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #ffb565;
  animation: ugh-pulse 1.9s ease-out infinite; }
@keyframes ugh-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.ugh-pin span { position: absolute; left: 18px; top: -15px; white-space: nowrap;
  background: rgba(7,19,38,.88); border: 1px solid rgba(255,181,101,.7); border-radius: 999px;
  padding: .32rem .75rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.ugh-pin span b { color: #ffb565; font-weight: 800; }

.ugh-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center;
  padding: 0 1.25rem clamp(1rem, 3.2vh, 2rem); }
.ugh-line1 { margin: 0 0 .35rem; font-size: clamp(.95rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #dfe9f7; }
.ugh-line2 { margin: 0 0 1.1rem; font-family: var(--ugh-font); font-size: clamp(1.45rem, 3.3vw, 2.9rem); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.08; color: #fff; text-wrap: balance; }
.ugh-line2 em { font-style: normal; color: var(--ugh-blue); }
.ugh-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: clamp(.8rem, 2.4vh, 1.5rem); }
.ugh-btn { appearance: none; border: 0; cursor: pointer; text-decoration: none; font-family: var(--ugh-font);
  font-size: .96rem; font-weight: 700; min-height: 48px; padding: .85rem 1.4rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .55rem; transition: transform .18s ease, background .18s ease; }
.ugh-btn.is-primary { background: #116DFF; color: #fff; box-shadow: 0 10px 26px rgba(17,109,255,.4); }
.ugh-btn.is-primary:hover { background: #2f80ff; transform: translateY(-1px); }
.ugh-btn.is-ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.ugh-btn.is-ghost:hover { background: #fff; color: var(--ugh-ink); transform: translateY(-1px); }
.ugh-btn:focus-visible { outline: 3px solid #ffb300; outline-offset: 3px; }

.ugh-icons { list-style: none; margin: 0 auto; padding: .9rem 0 0; max-width: 1100px; display: flex; justify-content: center;
  border-top: 1px solid rgba(120,170,255,.28); }
.ugh-icons li { display: flex; align-items: center; gap: .7rem; padding: 0 clamp(.8rem, 2.4vw, 2.2rem);
  font-size: clamp(.72rem, 1.05vw, .95rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #eaf1fb; }
.ugh-icons li + li { border-left: 1px solid rgba(120,170,255,.28); }
.ugh-icons svg { width: 30px; height: 30px; color: #58b0ff; flex: none; }

.ugh-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 3; }
.ugh-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #58b0ff, #ff9a3c); }
.ugh.is-playing .ugh-progress i { animation: ugh-fill 5.8s linear forwards; }
@keyframes ugh-fill { to { width: 100%; } }

/* телефон: сликата е исечена околу Земјата и раката, текстот е под неа */
@media (max-width: 760px) {
  .ugh { display: flex; flex-direction: column; }
  .ugh-stage { position: relative; inset: auto; flex: 1 1 auto; min-height: 44svh; }
  .ugh-scrim { background: linear-gradient(180deg, rgba(7,19,38,0) 78%, rgba(7,19,38,1) 100%); }
  .ugh-copy { position: relative; flex: none; padding: .4rem 1.1rem 1.4rem; }
  .ugh-line1 { font-size: .8rem; }
  .ugh-line2 { font-size: clamp(1.35rem, 6.6vw, 1.8rem); margin-bottom: 1rem; }
  .ugh-actions { flex-direction: column; }
  .ugh-btn { justify-content: center; width: 100%; }
  .ugh-icons { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem .5rem; padding-top: 1rem; }
  .ugh-icons li { padding: 0; font-size: .68rem; gap: .5rem; }
  .ugh-icons li + li { border-left: 0; }
  .ugh-icons svg { width: 24px; height: 24px; }
  .ugh-tag { display: none; }
  .ugh-pin span { font-size: .64rem; top: -13px; left: 14px; padding: .26rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ugh-pin i::after { animation: none; }
  .ugh-tag, .ugh-pin, .ugh-btn { transition: none; }
  .ugh { transition: opacity .3s ease; }
  .ugh.is-leaving { transform: none; }
  .ugh.is-playing .ugh-progress i { animation: none; }
}
