/* Zgodbe partnerjev (13. 11. 2026) - kreative: trak, hero, krogi, phone, bubble + celozaslonski predvajalnik.
   Barve iz palete strani (turkizna #53c0ac, temno zelena #004d47, meta #dbefe1, koral #ff6961, rjava #b08973). */
.zg {
    --zg-teal: #53c0ac; --zg-deep: #004d47; --zg-mint: #dbefe1; --zg-coral: #ff6961; --zg-sand: #b08973;
    --zg-ink: #004d47; --zg-text: #4a5553; --zg-muted: #7c8a86; --zg-line: #dfe8e3; --zg-pad: 0px;
    position: relative; clear: both; padding: var(--zg-pad); line-height: 1.45; color: var(--zg-text); font-family: inherit;
}
.zg *, .zg *::before, .zg *::after, .zg-viewer *, .zg-viewer *::before, .zg-viewer *::after { box-sizing: border-box; }
.zg button { font: inherit; color: inherit; cursor: pointer; }
.zg .zg-card, .zg .zg-hero-vid, .zg .zg-bubble-x { color: #fff; }
.zg img { max-width: 100%; }
.zg :focus-visible, .zg-viewer :focus-visible { outline: 3px solid var(--zg-teal, #53c0ac); outline-offset: 2px; }
.zg-region { width: 96%; max-width: 1400px; margin: 0 auto 46px; clear: both; }
.zg-region:has(.zg--bubble) { margin-bottom: 0; }
.pb-zgodbe { width: 96%; max-width: 1400px; margin: 40px auto; }

/* Glava */
.zg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.zg-eyebrow { font-size: 12px; letter-spacing: .2em; color: var(--zg-teal); font-weight: 600; text-transform: uppercase; }
.zg-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--zg-ink); margin: 4px 0 0; font-weight: 600; text-wrap: balance; }
.zg-sub { margin: 8px 0 0; max-width: 62ch; }
.zg-arrows { display: flex; gap: 8px; flex: none; }
.zg-arr { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--zg-line); background: #fff; color: var(--zg-deep); font-size: 22px; line-height: 1; transition: border-color .2s, transform .2s; }
.zg-arr:hover { border-color: var(--zg-teal); }
.zg-arr:active { transform: scale(.94); }
@media (max-width: 760px) { .zg-arrows { display: none; } }

/* Skupno: slika + senca + predvajanje predogleda */
.zg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 50%, rgba(0,0,0,.74) 100%); pointer-events: none; }
.zg-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.zg-prev.is-on { opacity: 1; }
.zg-av { width: 32px; height: 32px; border-radius: 50%; background: var(--zg-mint); color: var(--zg-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; letter-spacing: .02em; }
.zg-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.zg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s; }
.zg-btn:active { transform: scale(.97); }
.zg-btn--pri { background: var(--zg-deep); color: #fff !important; }
.zg-btn--pri:hover { background: #00635b; }
.zg-btn--sec { background: transparent; box-shadow: inset 0 0 0 1.5px var(--zg-deep); color: var(--zg-deep) !important; }
.zg-btn--sec:hover { background: rgba(0,77,71,.06); }

/* A) Trak */
.zg-trak { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.zg-card { position: relative; flex: 0 0 clamp(150px, 16vw, 210px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 0; padding: 0; scroll-snap-align: start; text-align: left; color: #fff; background: var(--zg-deep);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.zg-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(0,60,55,.55); }
.zg-card-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; }
.zg-chip { background: rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zg-play-s { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); position: relative; }
.zg-play-s::before { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--zg-deep); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.zg-card-bot { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 1px; }
.zg-card-bot b { font-size: 14px; line-height: 1.25; }
.zg-card-bot span { font-size: 12px; opacity: .88; line-height: 1.3; }
.zg-card.is-seen .zg-play-s { background: rgba(255,255,255,.55); }

/* B) Izpostavljena */
.zg-hero { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(22px, 5vw, 64px); align-items: center; background: var(--zg-mint); border-radius: 22px; padding: clamp(18px, 4vw, 44px); }
.zg-hero-vid { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 300px; border-radius: 18px; overflow: hidden; border: 0; padding: 0; background: var(--zg-deep); box-shadow: 0 22px 50px -18px rgba(0,77,71,.55); }
.zg-hero-vid > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); transition: transform .25s; }
.zg-play::before { content: ""; position: absolute; left: 26px; top: 22px; border-left: 20px solid var(--zg-deep); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.zg-hero-vid:hover .zg-play { transform: scale(1.08); }
.zg-quote { float: none; width: auto; margin: 14px 0 0; padding: 0; border: 0; background: none; font-style: normal; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.25; color: var(--zg-ink); font-weight: 600; text-wrap: pretty; }
.zg-quote::before { content: "\201C"; display: block; height: .55em; font-family: Georgia, 'Times New Roman', serif; font-size: 2.6em; line-height: 1; color: var(--zg-teal); margin-bottom: 4px; }
.zg-person { display: flex; gap: 12px; align-items: center; margin-top: 20px; clear: both; }
.zg-person > div { min-width: 0; }
.zg-person .zg-av { width: 46px; height: 46px; background: #fff; font-size: 14px; }
.zg-person b { display: block; color: var(--zg-ink); font-size: 16px; }
.zg-person span { font-size: 14px; }
.zg-more { margin-top: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.zg-more button { width: 44px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--zg-deep); }
.zg-more button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zg-more button[aria-current="true"] { border-color: var(--zg-deep); }
.zg-hero-txt .zg-sub { margin-top: 18px; }
@media (max-width: 680px) { .zg-hero { grid-template-columns: 1fr; } .zg-hero-vid { max-width: 230px; margin: 0 auto; } }

/* C) Krogi */
.zg-krogi-w { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; border: 1px solid var(--zg-line); border-radius: 18px; padding: 16px 20px; }
.zg-krogi-lbl { display: grid; gap: 2px; max-width: 240px; }
.zg-krogi-lbl b { font-size: 19px; color: var(--zg-ink); line-height: 1.2; font-weight: 600; }
.zg-krogi-lbl span { font-size: 13px; color: var(--zg-muted); }
.zg-krogi { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px; min-width: 0; flex: 1; scrollbar-width: thin; }
.zg-krog { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 4px; flex: none; width: 90px; font-size: 13px; text-align: center; }
.zg-ring { width: 80px; height: 80px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--zg-teal), var(--zg-coral), var(--zg-sand), var(--zg-teal)); transition: transform .25s; display: block; }
.zg-krog.is-seen .zg-ring { background: var(--zg-line); }
.zg-krog:hover .zg-ring { transform: scale(1.06); }
.zg-ring-in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: var(--zg-deep); position: relative; }
.zg-ring-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zg-krog-n { font-weight: 600; color: var(--zg-ink); line-height: 1.2; margin-top: 2px; }
.zg-krog small { color: var(--zg-muted); font-size: 11px; line-height: 1.2; }

/* D) Telefon */
.zg-tel { display: grid; grid-template-columns: auto minmax(0, 560px); gap: clamp(24px, 5vw, 72px); align-items: center; justify-content: center; }
.zg-phone { width: clamp(220px, 23vw, 270px); aspect-ratio: 9 / 18.5; border-radius: 40px; background: #111; padding: 9px; box-shadow: 0 30px 60px -22px rgba(0,40,36,.6); }
.zg-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--zg-deep); color: #fff; }
.zg-screen > img, .zg-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-screen .zg-bars { top: 16px; left: 14px; right: 14px; }
.zg-screen-cap { position: absolute; left: 14px; right: 14px; bottom: 16px; font-size: 13px; line-height: 1.3; font-weight: 600; z-index: 2; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.zg-screen-cap span { display: block; font-weight: 400; opacity: .88; font-size: 11.5px; margin-top: 4px; }
.zg-tlist { display: grid; gap: 4px; margin-top: 16px; }
.zg-titem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.zg-titem:hover { background: #f3f8f5; }
.zg-titem[aria-current="true"] { background: var(--zg-mint); }
.zg-titem .zg-av { width: 38px; height: 38px; }
.zg-titem-t b { display: block; color: var(--zg-ink); font-size: 15px; }
.zg-titem-t span { font-size: 13px; }
.zg-titem em { font-style: normal; font-size: 12px; color: var(--zg-muted); font-variant-numeric: tabular-nums; }
.zg-tel-txt .zg-btn { margin-top: 18px; }
@media (max-width: 760px) { .zg-tel { grid-template-columns: 1fr; } .zg-phone { margin: 0 auto; } }

/* E) Mehurček */
.zg--bubble { padding: 0; }
.zg-bubble { position: fixed; z-index: 900; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; animation: zg-in .5s cubic-bezier(.2,.8,.2,1) both .8s; }
.zg-bubble[hidden] { display: none; }
.zg-bubble-open { width: 90px; height: 90px; border-radius: 50%; padding: 3px; border: 0; background: conic-gradient(from 210deg, var(--zg-teal), var(--zg-coral), var(--zg-teal)); box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); }
.zg-bubble-open .zg-ring-in { border-width: 3px; }
.zg-bubble-lbl { background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); line-height: 1.25; color: var(--zg-text); }
.zg-bubble-lbl b { display: block; color: var(--zg-ink); }
.zg-bubble-x { position: absolute; top: -4px; left: 70px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #24302e; color: #fff; font-size: 15px; line-height: 1; }
@keyframes zg-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@media (max-width: 600px) { .zg-bubble-lbl { display: none; } .zg-bubble-open { width: 74px; height: 74px; } .zg-bubble-x { left: 56px; } }

/* Značka na kartici partnerja (regijska stran) */
.zg-badge { position: absolute; left: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.95); color: #004d47;
    padding: 5px 12px 5px 5px; border-radius: 99px; font: 600 12.5px/1.2 inherit; font-family: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; transition: transform .2s; }
.zg-badge:hover { transform: translateY(-1px); }
.zg-badge i { width: 24px; height: 24px; border-radius: 50%; background: #ff6961; position: relative; flex: none; }
.zg-badge i::before { content: ""; position: absolute; left: 9px; top: 7px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.zg-flash { animation: zg-flash 1.9s ease; }
@keyframes zg-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(83,192,172,0); } 25% { box-shadow: 0 0 0 5px #53c0ac; transform: translateY(-3px); } }

/* ---------- Predvajalnik ---------- */
.zg-viewer { position: fixed; inset: 0; z-index: 100000; background: rgba(8,16,14,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); animation: zg-fade .25s ease; font-family: inherit; line-height: 1.4; }
@keyframes zg-fade { from { opacity: 0; } }
.zg-stage { position: relative; flex: none; max-height: 100%; height: min(90vh, 840px); height: min(90dvh, 840px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 18px; overflow: hidden; background: #0d1715; touch-action: none; user-select: none; -webkit-user-select: none; animation: zg-pop .35s cubic-bezier(.2,.8,.2,1); color: #fff; }
@keyframes zg-pop { from { transform: scale(.94); opacity: .4; } }
.zg-stage > video, .zg-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d1715; }
.zg-stage .zg-shade { z-index: 1; }
.zg-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.zg-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.zg-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.zg-vh { position: absolute; top: 24px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.zg-vh .zg-av { width: 38px; height: 38px; }
.zg-vh-t { flex: 1; min-width: 0; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.zg-vh-t b { display: block; font-size: 15px; }
.zg-vh-t span { font-size: 12.5px; opacity: .85; }
.zg-ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.zg-ib:hover { background: rgba(255,255,255,.26); }
.zg-ib svg { width: 19px; height: 19px; }
.zg-vf { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 3; display: grid; gap: 14px; }
.zg-vf p { margin: 0; font-size: clamp(16px, 2.1vh, 19px); line-height: 1.35; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.zg-vf .zg-cta { justify-self: start; border: 0; border-radius: 99px; background: #fff; color: #004d47 !important; font-weight: 700; padding: 11px 18px; font-size: 14px; text-decoration: none; }
.zg-paused { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 99px; z-index: 3; }
.zg-spin { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: zg-rot .8s linear infinite; z-index: 2; }
@keyframes zg-rot { to { transform: rotate(360deg); } }
.zg-side { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.13); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.zg-side:hover { background: rgba(255,255,255,.24); }
.zg-side:disabled { opacity: .25; cursor: default; }
.zg-side--l { left: max(24px, calc(50% - min(90vh, 840px) * 9 / 32 - 84px)); }
.zg-side--r { right: max(24px, calc(50% - min(90vh, 840px) * 9 / 32 - 84px)); }
.zg-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.55); font-size: 12px; }
@media (max-width: 640px) {
    .zg-stage { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
    .zg-side, .zg-hint { display: none; }
}
html.zg-lock, html.zg-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
    .zg *, .zg-viewer, .zg-viewer *, .zg-badge, .zg-flash { animation: none !important; transition: none !important; }
}
