/* ===========================================================================
   AQ-MED — Landing (LIGHT) — sekcje specyficzne
   =========================================================================== */

/* ===================== INTRO / SPLASH ===================== */
.intro {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 40%, var(--bg-blue), transparent 72%),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
}
html.intro-done .intro { display: none; }

/* --- tło: dryfujące orby światła + siatka --- */
.intro-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 78%); }
.intro-bg::after { content: ""; position: absolute; inset: -1px; opacity: .5;
  background-image: radial-gradient(rgba(13,27,51,0.05) 1px, transparent 1.4px);
  background-size: 30px 30px; }
.intro-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; }
.intro-orb--a { width: 460px; height: 460px; left: 14%; top: 12%; background: radial-gradient(circle, rgba(229,52,63,0.34), transparent 68%); }
.intro-orb--b { width: 520px; height: 520px; right: 8%; bottom: 6%; background: radial-gradient(circle, rgba(43,108,229,0.24), transparent 68%); }
.intro-orb--c { width: 360px; height: 360px; left: 46%; top: 52%; background: radial-gradient(circle, rgba(229,52,63,0.18), transparent 68%); }
/* poziomy promień światła przy odsłonie + winieta dla głębi */
.intro-beam { position: absolute; left: -30%; top: 50%; width: 60%; height: 42vmax; margin-top: -21vmax; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent); transform: skewX(-16deg); filter: blur(6px); display: none; }
.intro-vign { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 44%, transparent 52%, rgba(13,27,51,0.10) 100%); }

.intro-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 24px; text-align: center; }

/* --- logo mark + pierścienie radaru --- */
.intro-mark { position: relative; display: grid; place-items: center; }
/* pierścień ładowania (jak defibrylator) — halo dookoła ikony logo */
.intro-ico { position: relative; display: grid; place-items: center; width: 66px; height: 66px; }
.intro-ring { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; z-index: 0; transform: rotate(-90deg); pointer-events: none; }
.intro-ring circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.intro-ring .ring-track { stroke: rgba(13,27,51,0.08); }
.intro-ring .ring-arc { stroke: var(--red); stroke-dasharray: 478; stroke-dashoffset: 478;
  filter: drop-shadow(0 0 6px rgba(229,52,63,0.7)); }
.intro-ripple { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; border: 1.5px solid rgba(229,52,63,0.5); opacity: 0; pointer-events: none; }
.intro-logo { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 6px 4px; }
.intro-logo img { position: relative; z-index: 1; width: 66px; height: 66px; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(229,52,63,0.30)); }
.intro-word { position: relative; z-index: 1; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7.4vw, 68px); letter-spacing: -0.02em; color: var(--ink); }
.intro-word .mark-med { color: var(--red); }
/* przeciągnięty błysk światła po napisie (klipowany do wordmarku) */
.intro-sweep { position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-18deg); opacity: 0; display: none; }

/* --- EKG --- */
.intro-ekg { width: min(80vw, 480px); height: 66px; position: relative; }
.intro-ekg path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.intro-ekg .ekg-base { stroke: var(--red); filter: drop-shadow(0 0 8px rgba(229,52,63,0.55)); }
.intro-ekg .ekg-spark { stroke: #fff; stroke-width: 3.6; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(229,52,63,0.95)) drop-shadow(0 0 13px rgba(229,52,63,0.75)); }

.intro-tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink-3); }
.intro-tag .mark-med, .intro-tag b { color: var(--red); }

/* --- stopka: pasek + status --- */
.intro-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-bar { width: min(70vw, 320px); height: 3px; border-radius: 999px; background: rgba(13,27,51,0.08); overflow: hidden; }
.intro-bar i { display: block; width: 100%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ff8088); transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 12px rgba(229,52,63,0.6); }
.intro-status { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); opacity: .0; }
.intro-status .intro-ready { display: none; }
.intro-status.is-ready .intro-pct { display: none; }
.intro-status.is-ready .intro-ready { display: inline; }
.intro-status.is-ready::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.8); transform: translateY(1px); }

/* --- błysk defibrylacji przy wyjściu --- */
.intro-flash { position: absolute; left: 50%; top: 46%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; z-index: 3;
  border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.7) 30%, transparent 66%);
  opacity: 0; pointer-events: none; display: none; }
/* pozioma fala uderzeniowa (shock) przy wyjściu */
.intro-shock { position: absolute; left: 0; right: 0; top: 46%; height: 3px; z-index: 3; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, rgba(229,52,63,0.9), #fff, transparent);
  box-shadow: 0 0 22px rgba(229,52,63,0.9); }

/* --- WYJŚCIE (JS dodaje .lift): shock + zoom --- */
.intro.lift { animation: introOut .92s var(--ease) forwards; }
.intro.lift .intro-inner { animation: introOutInner .6s var(--ease) forwards; }
@keyframes introShock { 0%{ opacity: 0; transform: scaleX(.2); } 30%{ opacity: 0; } 100%{ opacity: 0; transform: scaleX(1); } }
@keyframes introOut { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.07); } }
@keyframes introOutInner { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes introFlash { 0% { opacity: 0; transform: scale(.35); } 26% { opacity: .95; } 100% { opacity: 0; transform: scale(2.6); } }

/* animacje wejścia tylko gdy klatki płyną (html.anim-ready) */
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready .intro-orb { opacity: 0; animation: introOrbIn 1.2s var(--ease) forwards, introOrbDrift 9s ease-in-out 1.2s infinite alternate; }
  html.anim-ready .intro-orb--b { animation-delay: .15s, 1.35s; }
  html.anim-ready .intro-orb--c { animation-delay: .3s, 1.5s; }
  html.anim-ready .intro-logo img { opacity: 0; transform: translateY(14px) scale(.94);
    animation: introMarkIn .9s var(--ease) .15s forwards; }
  html.anim-ready .intro-word { opacity: 0; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); animation: introWord .95s var(--ease) .45s forwards; }
  html.anim-ready .intro-ekg .ekg-base { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: introEkg 1.5s var(--ease) .7s forwards; }
  html.anim-ready .intro-ekg .ekg-spark { stroke-dasharray: 26 1174; stroke-dashoffset: 1200; animation: introSpark 1.5s var(--ease) .7s forwards; }
  html.anim-ready .intro-ring .ring-arc { animation: introRing2 2.1s var(--ease) .35s forwards; }
  html.anim-ready .intro-tag { opacity: 0; transform: translateY(10px); animation: introIn .8s var(--ease) 1.25s forwards; }
  html.anim-ready .intro-bar i { animation: introBar 2.3s var(--ease) .7s forwards; }
  html.anim-ready .intro-status { animation: introStatus .6s var(--ease) 2.15s forwards; }
}
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes introOrbIn { to { opacity: .55; } }
@keyframes introOrbDrift { to { transform: translate3d(24px, -18px, 0) scale(1.08); } }
@keyframes introMarkIn { to { opacity: 1; transform: none; } }
@keyframes introWord { to { opacity: 1; -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); } }
@keyframes introSweep { 0% { left: -60%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 140%; opacity: 0; } }
@keyframes introSpark { 0%{ opacity: 0; } 12%{ opacity: 1; } 92%{ opacity: 1; } 100%{ stroke-dashoffset: 0; opacity: 0; } }
@keyframes introRipple { 0%{ opacity: .6; transform: scale(.55); } 70%{ opacity: 0; transform: scale(1.7); } 100%{ opacity: 0; transform: scale(1.7); } }
@keyframes introBar { 0%{ transform: scaleX(0); } 100%{ transform: scaleX(1); } }
@keyframes introStatus { to { opacity: .85; } }
@keyframes introBeat { 0%,100%{ transform: scale(1); } 22%{ transform: scale(1.16); } 44%{ transform: scale(0.97); } }
@keyframes introEkg { to { stroke-dashoffset: 0; } }
@keyframes introRing2 { to { stroke-dashoffset: 0; } }
@keyframes introBeam { 0%{ left: -30%; opacity: 0; } 20%{ opacity: 1; } 80%{ opacity: 1; } 100%{ left: 130%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* mobilne menu — style przeniesione do styles.css (dostępne na każdej stronie) */

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 96px; padding-bottom: 96px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%); }
.hero-bg { position: absolute; inset: -12%; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(30px); }
.hero-glow--red   { width: 46vw; height: 46vw; left: -8vw; top: -6vw; background: radial-gradient(circle, rgba(229,52,63,0.16), transparent 62%); }
.hero-glow--blue  { width: 52vw; height: 52vw; right: -14vw; top: 18vh; background: radial-gradient(circle, rgba(47,107,240,0.14), transparent 64%); }
.hero-glow--beige { width: 40vw; height: 40vw; left: 28vw; bottom: -16vw; background: radial-gradient(circle, rgba(214,182,140,0.20), transparent 64%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(13,27,51,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(13,27,51,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, #000 8%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 8%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(52px, 8.6vw, 128px); line-height: 0.94; margin: 8px 0 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; perspective: 700px; }
.hero-title .line > span { display: block; transform-origin: 50% 100%; }
.hero-title .accent { color: var(--red); }
.hero-lead { margin: 0 0 32px; max-width: 48ch; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-quick { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; }
.hero-quick a { color: var(--ink-3); text-decoration: none; letter-spacing: .02em; transition: color .2s var(--ease); }
.hero-quick a:hover { color: var(--red); }
.hero-quick span { color: var(--line); }

/* ---- najbliższe terminy: mini-liczniki ---- */
.upcoming { background: var(--bg-soft); }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.up-card { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.up-head { display: flex; align-items: center; gap: 10px; }
.up-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.up-meta { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.up-cd { display: flex; gap: 14px; margin-top: 4px; }
.up-cd span { display: grid; justify-items: center; gap: 2px; }
.up-cd b { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.up-cd i { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.up-link { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--red); text-decoration: none; margin-top: 6px; }
.up-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  html.anim-ready .hero-title .line > span { transform: translateY(110%) rotateX(-38deg); }
  html.anim-ready .hero.ready .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease); }
  html.anim-ready .hero.ready .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
  html.anim-ready .hero-copy .kicker,
  html.anim-ready .hero-lead,
  html.anim-ready .hero-actions { opacity: 0; transform: translateY(18px); }
  html.anim-ready .hero.ready .hero-copy .kicker { animation: fadeUp .9s var(--ease) .15s forwards; }
  html.anim-ready .hero.ready .hero-lead { animation: fadeUp .9s var(--ease) .42s forwards; }
  html.anim-ready .hero.ready .hero-actions { animation: fadeUp .9s var(--ease) .58s forwards; }
  /* twardy fallback: po zako\u0144czeniu wej\u015bcia wymu\u015b stan ko\u0144cowy (throttling-safe) */
  html.anim-ready .hero.settled .hero-title .line > span,
  html.anim-ready .hero.settled .hero-copy .kicker,
  html.anim-ready .hero.settled .hero-lead,
  html.anim-ready .hero.settled .hero-actions,
  html.anim-ready .hero.settled .dash { animation: none; opacity: 1; transform: none; transition: none; }
}

/* pływające elementy 3D w tle hero */
.float-chip {
  position: absolute; z-index: 1; display: grid; place-items: center;
  border-radius: 18px; background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  font-family: var(--font-display); font-weight: 700; color: var(--red);
}
.float-chip--1 { width: 74px; height: 74px; font-size: 34px; left: 46%; top: 22%; animation: float3dA 9s ease-in-out infinite alternate; }
.float-chip--2 { width: 52px; height: 52px; font-size: 22px; left: 38%; bottom: 18%; color: var(--blue); animation: float3dB 11s ease-in-out infinite alternate; }
@keyframes float3dA {
  0%   { transform: perspective(800px) translateY(0) rotateX(8deg) rotateY(-12deg); }
  100% { transform: perspective(800px) translateY(-26px) rotateX(-10deg) rotateY(14deg); }
}
@keyframes float3dB {
  0%   { transform: perspective(800px) translateY(-10px) rotateX(-12deg) rotateY(10deg); }
  100% { transform: perspective(800px) translateY(16px) rotateX(10deg) rotateY(-16deg); }
}
@media (max-width: 960px) { .float-chip { display: none; } }

.hero-scroll { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.3em; color: var(--ink-3); }
.hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--red); animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { to { top: 110%; } }

/* LICZNIK — jasny panel */
.dash {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.86); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); overflow: hidden;
}
.dash::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 85% 0%, rgba(229,52,63,0.08), transparent 60%); }
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready .dash { opacity: 0; transform: translateY(26px) scale(.98); }
  html.anim-ready .hero.ready .dash { animation: fadeUp 1s var(--ease) .5s forwards; }
}
.dash-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.dash-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.dash-led { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(25,184,134,0.5); animation: ledpulse 1.8s infinite; }
@keyframes ledpulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(25,184,134,0.45);} 50%{ box-shadow: 0 0 0 6px rgba(25,184,134,0);} }
.dash-id { color: var(--ink-3); font-size: 11px; letter-spacing: 0.12em; }
.dash-ekg { height: 46px; margin: 16px 0 10px; }
.dash-ekg svg { width: 100%; height: 100%; }
.ekg-trace { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(229,52,63,0.4));
  stroke-dasharray: 1300; stroke-dashoffset: 1300; animation: ekg 3.4s linear infinite; }
@keyframes ekg { to { stroke-dashoffset: -1300; } }
.dash-training { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; }
.dash-meta { font-size: 13px; color: var(--ink-2); margin: 6px 0 18px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-cell { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 13px; padding: 14px 6px; text-align: center; }
.cd-num { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-unit { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; }
.dash-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.dash-spots { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.dash-spots b { color: var(--red); }
.dash-cta { flex-shrink: 0; }
.dash.empty .countdown, .dash.empty .dash-foot { opacity: .45; }

@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } .dash { max-width: 480px; } }
@media (max-width: 420px) { .dash-foot { flex-direction: column; align-items: stretch; } .dash-cta { justify-content: center; } }

/* ============================ SCROLL STORY (ciągłe przewijanie) ============================ */
.story { position: relative; height: auto; background: var(--bg-soft); }
.story-stage { position: relative; height: auto; padding: 20px 0; overflow: visible; }
.story-track { position: static; width: 100%; }
.scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 12vh 28px; min-height: 80vh; }
.scene-copy { z-index: 2; }
.scene-index { font-size: 12px; letter-spacing: 0.22em; color: var(--red); display: block; margin-bottom: 18px; text-transform: uppercase; }
.scene-word { font-size: clamp(34px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.scene-text { font-size: clamp(16px, 1.9vw, 21px); color: var(--ink-2); margin: 22px 0; max-width: 42ch; }
.scene-words { display: flex; flex-wrap: wrap; gap: 9px; }
.scene-words span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scene.active .scene-words span.show { opacity: 1; transform: none; }

.scene-visual { position: relative; height: min(60vh, 480px); }
.viz { position: absolute; inset: 0; }

/* 3D wejścia scen (desktop) */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .scene-visual { opacity: 0; transform: perspective(1300px) rotateY(-16deg) translateX(70px) scale(.94); transition: opacity .8s var(--ease), transform .95s var(--ease); }
  .scene.active .scene-visual { opacity: 1; transform: perspective(1300px) rotateY(0deg) translateX(0) scale(1); }
  .scene-copy { opacity: 0; transform: perspective(1100px) translateY(36px) rotateX(8deg); transform-origin: 50% 100%; transition: opacity .7s var(--ease) .08s, transform .85s var(--ease) .08s; }
  .scene.active .scene-copy { opacity: 1; transform: perspective(1100px) translateY(0) rotateX(0); }
}

/* viz: szkolenie — filmowe zdjęcie (Ken Burns + szklana plakietka) */
.viz-ekg .ph, .viz-ekg .scene-photo { width: 100%; height: 100%; min-height: 0; }
.scene-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) {
  .scene.active .scene-photo img { animation: kenburns 16s ease-in-out infinite alternate; }
}
@keyframes kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -2%); }
}
.scene-badge { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink);
  border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .scene.active .scene-badge { animation: badgeFloat 6s ease-in-out infinite alternate; }
}
@keyframes badgeFloat { 0%{ transform: translateY(0);} 100%{ transform: translateY(-10px);} }
.ekg-overlay { position: absolute; left: 0; right: 0; bottom: 16%; height: 30%; }.viz-ekg-line { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 4px 10px rgba(229,52,63,0.35)); stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.scene.active .viz-ekg-line { animation: ekgDraw 2.6s var(--ease) infinite; }
@keyframes ekgDraw { 0%{stroke-dashoffset:1500;} 55%,100%{stroke-dashoffset:0;} }

/* viz: sprzęt (obrót 3D) */
.viz-gear { perspective: 1100px; display: grid; place-items: center; }
.gear-item { position: absolute; width: 210px; height: 158px; }
.gear-item .ph, .gear-item .gear-photo { width: 100%; height: 100%; min-height: 0; box-shadow: var(--shadow); }
.gear-item .ph { background:
  repeating-linear-gradient(135deg, rgba(13,27,51,0.03) 0 2px, transparent 2px 12px), linear-gradient(160deg, #fff, var(--bg-blue)); }
.gear-photo { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; position: relative; }
.gear-photo::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 14px;
  background: linear-gradient(150deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 34%), linear-gradient(0deg, rgba(13,27,51,0.10), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.gear-photo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.5) 50%, transparent); }
.scene.active .viz-gear { animation: spin 24s linear infinite; transform-style: preserve-3d; }
@keyframes spin { to { transform: rotateY(360deg); } }
.viz-gear .gear-item:nth-child(1) { transform: rotateY(0deg) translateZ(190px); }
.viz-gear .gear-item:nth-child(2) { transform: rotateY(90deg) translateZ(190px); }
.viz-gear .gear-item:nth-child(3) { transform: rotateY(180deg) translateZ(190px); }
.viz-gear .gear-item:nth-child(4) { transform: rotateY(270deg) translateZ(190px); }

/* viz: mapa — pochylona płaszczyzna 3D */
.viz-map { width: 100%; height: 100%; position: relative; perspective: 1100px; }
.map-grid { position: absolute; inset: 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background:
  linear-gradient(rgba(13,27,51,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(13,27,51,0.04) 1px, transparent 1px), linear-gradient(160deg, #fff, var(--bg-blue));
  background-size: 40px 40px, 40px 40px, 100% 100%; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotateX(38deg) rotateZ(-3deg) scale(1.02); transform-origin: 50% 85%; transition: transform 1.1s var(--ease); }
.scene.active .map-grid { transform: rotateX(26deg) rotateZ(-2deg) scale(1.02); }
.map-point { position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.map-point i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); position: relative; }
.map-point i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--red); }
.scene.active .map-point i::after { border-color: rgba(229,52,63,0.5); }
@keyframes pulseRing { 0%{transform:scale(.5);opacity:.8;} 100%{transform:scale(1.7);opacity:0;} }
.map-point--1 { left: 12%; bottom: 26%; }
.map-point--2 { right: 12%; top: 20%; }
.map-point--3 { left: 50%; bottom: 12%; }
.map-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.map-link path { fill: none; stroke: var(--blue-soft); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300; opacity: 0; transition: opacity .6s var(--ease); }
.scene.active .map-link path { opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  .scene.active .map-link path { animation: mapDraw 1.5s var(--ease) forwards; }
  .scene.active .map-link path:nth-of-type(2) { animation-delay: .18s; }
  .scene.active .map-link path:nth-of-type(3) { animation-delay: .36s; }
}
@keyframes mapDraw { to { stroke-dashoffset: 0; } }
.map-rings ellipse { fill: none; stroke: rgba(229,52,63,0.22); stroke-width: 1; opacity: 0; transition: opacity .9s var(--ease); }
.scene.active .map-rings ellipse { opacity: 1; }
.scene.active .map-rings ellipse:nth-child(2) { transition-delay: .12s; }
.scene.active .map-rings ellipse:nth-child(3) { transition-delay: .24s; }
.map-ping { fill: none; stroke: rgba(229,52,63,0.5); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .scene.active .map-ping { animation: mapPing 3.6s ease-out infinite; }
}
@keyframes mapPing { 0%{ transform: scale(.4); opacity: .6; } 78%{ opacity: 0; } 100%{ transform: scale(3.4); opacity: 0; } }
/* połączenia rysują się raz i zostają (bez migotania) */

/* RADAR: obracający się snop na pochylonej płaszczyźnie mapy + świecący hub */
.map-sweep { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0; mix-blend-mode: multiply;
  background: conic-gradient(from 0deg, rgba(229,52,63,0.22), rgba(229,52,63,0.06) 34deg, rgba(229,52,63,0) 78deg, rgba(229,52,63,0) 360deg);
  -webkit-mask: radial-gradient(circle, #000 30%, rgba(0,0,0,0.55) 62%, transparent 73%);
  mask: radial-gradient(circle, #000 30%, rgba(0,0,0,0.55) 62%, transparent 73%); }
.map-hub { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; z-index: 2;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,52,63,0.18), 0 0 12px rgba(229,52,63,0.8); opacity: 0; transition: opacity .6s var(--ease) .3s; }
.scene.active .map-hub { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .scene.active .map-sweep { opacity: 1; animation: mapRadar 3.8s linear infinite; }
}
@keyframes mapRadar { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ——— SZLIF SCEN 2026: więcej głębi i życia w rysunkach ——— */
@media (prefers-reduced-motion: no-preference) {
  /* MAPA: pierścienie zasięgu i ping rysowane w SVG (patrz .map-rings / .map-ping) */
  .map-grid::before { content: ""; position: absolute; top: 0; bottom: 0; width: 42%; left: -42%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55) 46%, rgba(47,107,240,0.10) 54%, transparent); }
  .scene.active .map-grid::before { animation: mapScan 5.5s var(--ease) infinite; }
  @keyframes mapScan { 0%{ left: -42%; } 60%,100%{ left: 100%; } }
  .map-point, .map-link { z-index: 1; }
  /* GEAR: świetlny rdzeń + miękka podłoga pod obracającym się zestawem */
  .viz-gear::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(229,52,63,0.12), transparent 66%); filter: blur(10px); pointer-events: none; }
  .viz-gear::after { content: ""; position: absolute; bottom: 4%; left: 50%; width: 260px; height: 46px;
    transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(13,27,51,0.16), transparent 70%);
    filter: blur(6px); pointer-events: none; animation: floorPulse 24s linear infinite; }
  @keyframes floorPulse { 0%,100%{ opacity:.5; transform: translateX(-50%) scaleX(1);} 50%{ opacity:.85; transform: translateX(-50%) scaleX(.82);} }
  .gear-item .gear-photo { transition: box-shadow .4s var(--ease); }
  /* specularny błysk przesuwający się po sprzęcie */
  .scene.active .gear-photo::after { animation: gearSheen 4.5s var(--ease) infinite; }
  .scene.active .gear-item:nth-child(2) .gear-photo::after { animation-delay: 1.1s; }
  .scene.active .gear-item:nth-child(3) .gear-photo::after { animation-delay: 2.2s; }
  .scene.active .gear-item:nth-child(4) .gear-photo::after { animation-delay: 3.3s; }
  @keyframes gearSheen { 0%{ left: -60%; } 55%,100%{ left: 120%; } }
  /* platforma-pierścień pod obracającym się zestawem */
  .viz-gear::after { box-shadow: 0 0 0 1px rgba(47,107,240,0.10), 0 0 34px rgba(47,107,240,0.10); }
  /* EKG scena: pływająca poświata pod zdjęciem szkolenia */
  .viz-ekg::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 40px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(13,27,51,0.14), transparent 72%); filter: blur(8px); pointer-events: none; }
  /* słowa-chipy: aktywny stan dostaje delikatny akcent marki */
  .scene.active .scene-words span.show { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
  .scene.active .scene-words span.show:nth-child(odd) { background: color-mix(in srgb, var(--red) 5%, #fff); }
}

.story-progress { display: none; }

@media (max-width: 860px) {
  .story { height: auto; background: var(--bg-soft); }
  .story-stage { position: relative; height: auto; padding: 40px 0; }
  .story-track { position: static; }
  .scene { position: relative; opacity: 1; visibility: visible; grid-template-columns: 1fr; gap: 30px;
    min-height: 0; padding: 50px 28px; border-bottom: 1px solid var(--line-soft); }
  .scene-visual { height: 40vh; order: -1; }
  .scene-words span { opacity: 1; transform: none; }
}

/* ============================ SZKOLENIA ============================ */
.trainings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.training-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.training-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.training-photo { aspect-ratio: 16/7; min-height: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.training-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.training-photo, .photo.team-photo { border-radius: 0; }
.training-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.training-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.training-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.training-desc { color: var(--ink-2); font-size: 15px; margin: 0; }
.training-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
.training-meta b { color: var(--ink); font-weight: 500; }
.training-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.training-actions .btn { padding: 11px 18px; font-size: 14px; }
.training-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--red); white-space: nowrap; }
@media (max-width: 760px) { .trainings-grid { grid-template-columns: 1fr; } }

/* ============================ SKLEP teaser ============================ */
.shopteaser { background: var(--bg-beige); }
.shopteaser-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.shopteaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.teaser-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease); }
.teaser-card:hover { transform: translateY(-5px); }
.teaser-card .ph { min-height: 96px; margin-bottom: 12px; }
.teaser-card .teaser-photo { height: 96px; min-height: 0; margin-bottom: 12px; }
.teaser-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.teaser-price { font-family: var(--font-mono); font-size: 13px; color: var(--red); margin-top: 4px; }
@media (max-width: 820px) { .shopteaser-inner { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 460px) { .shopteaser-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================ USŁUGI (flip) ============================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flip { perspective: 1400px; min-height: 400px; }
.flip-inner { position: relative; width: 100%; height: 100%; min-height: 400px; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip { cursor: pointer; }
/* gdy odwrócona: nieaktywny „przód" nie może przechwytywać kliknięć przycisku na rewersie */
.flip-front { pointer-events: auto; }
.flip-back { pointer-events: none; }
.flip.flipped .flip-front { pointer-events: none; }
.flip.flipped .flip-back { pointer-events: auto; }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.flip-front { background: linear-gradient(165deg, #fff, var(--bg-blue)); justify-content: flex-end; overflow: hidden; }
.flip-photo { position: absolute; inset: 0; z-index: 0; }
.flip-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.86) 62%, rgba(255,255,255,0.96) 100%); }
.flip-front.has-photo .flip-num { background: rgba(255,255,255,0.8); padding: 4px 9px; border-radius: 8px; }
.flip-front > .flip-num, .flip-front > .flip-title, .flip-front > .flip-short, .flip-front > .flip-hint { position: relative; z-index: 1; }
.flip-num { position: absolute; top: 26px; left: 30px; font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; letter-spacing: 0.18em; }
.flip-title { font-size: clamp(21px, 2.4vw, 27px); }
.flip-short { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }
.flip-hint { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.flip-back { background: var(--ink); color: #fff; transform: rotateY(180deg); justify-content: flex-start; gap: 10px; overflow-y: auto; }
.flip-back h3 { color: #fff; font-size: 19px; margin-bottom: 2px; }
.flip-row { display: flex; gap: 12px; }
.flip-row .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-soft); width: 78px; flex-shrink: 0; padding-top: 2px; }
.flip-row .val { font-size: 13.5px; color: rgba(255,255,255,0.86); }
.flip-back .btn { margin-top: auto; align-self: flex-start; flex-shrink: 0; }
@media (max-width: 920px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================ O NAS / ZESPÓŁ ============================ */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.about-photo { min-height: 360px; }
.photo.about-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.photo.about-photo img { min-height: 360px; }
.values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.values span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; padding: 8px 15px; border-radius: 999px; background: var(--bg-blue); color: var(--blue); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card { overflow: hidden; padding: 0; transition: transform .4s var(--ease), box-shadow .4s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* flip personelu (gdy wypełnione „krótko o mnie") */
.team-card.has-flip { perspective: 1000px; overflow: visible; background: transparent; box-shadow: none; border: 0; }
.team-card.has-flip:hover { transform: none; }
.team-flip { position: relative; width: 100%; transform-style: preserve-3d; transition: transform .65s var(--ease); }
.team-card.has-flip:hover .team-flip { transform: rotateY(180deg); }
.team-face { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.team-front { position: relative; }
.team-front .team-body { position: relative; }
.team-flip-hint { display: inline-block; margin-top: 10px; font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); }
.team-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column;
  justify-content: center; padding: 22px 22px; background: var(--ink); border-color: var(--ink); }
.team-back .team-name { color: #fff; }
.team-back .team-role { margin-bottom: 12px; }
.team-bio { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0 0 16px; }
.team-back .team-contact a { color: rgba(255,255,255,0.7); }
.team-back .team-contact a:hover { color: #fff; }
.team-photo { aspect-ratio: 1/1; min-height: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft); }
.ph--initials { display: flex; align-items: center; justify-content: center; position: relative; background: radial-gradient(120% 120% at 30% 20%, #fff, var(--bg-blue)); }
.ph--initials::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(13,27,51,0.028) 0 2px, transparent 2px 13px); }
.ph--initials::after { display: none; }
.ph-initials { position: relative; display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(13,27,51,0.10); font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: 0.02em; color: var(--red); }
.team-body { padding: 18px 18px 20px; }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.team-role { font-size: 12px; color: var(--red); font-family: var(--font-mono); letter-spacing: 0.02em; margin: 4px 0 10px; }
.team-scope { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; min-height: 38px; }
.team-contact { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.team-contact a { color: var(--ink-3); transition: color .25s; }
.team-contact a:hover { color: var(--red); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .about-grid { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================ OPINIE + PARTNERZY ============================ */
.social { background: var(--bg-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 50px; }
.review { padding: 28px; text-decoration: none; display: block; color: inherit; }
a.review:hover { border-color: var(--red); box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.review-stars { color: var(--red); letter-spacing: 3px; }
.rv-star { color: #d9dee6; }
.rv-star.on { color: var(--red); }
.review-src { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; color: var(--src, var(--ink-3)); background: color-mix(in srgb, var(--src, #888) 12%, transparent); white-space: nowrap; }
.review-text { font-family: var(--font-display); font-size: 19px; line-height: 1.42; margin: 0 0 18px; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.review.rv-expanded .review-text { -webkit-line-clamp: unset; overflow: visible; }
.rv-more { display: inline-block; background: none; border: 0; padding: 0; margin: -8px 0 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--red); cursor: pointer; }
.rv-more:hover { text-decoration: underline; }
.review-author { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; display: flex; flex-direction: column; gap: 2px; }
.review-who { display: flex; align-items: center; gap: 10px; }
.review-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line-soft); }
.review-meta { color: var(--ink-3); font-size: 11px; }
.review.rv-hidden { display: none; }
.reviews-more { display: inline-flex; margin: 26px auto 0; }

/* ——— SZLIF KART 2026: spójny zoom zdjęć przy hoverze (cała witryna) ——— */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .training-photo img, .teaser-photo img, .flip-photo img, .about-photo img,
  .team-front .team-photo img { transition: transform .7s var(--ease); will-change: transform; }
  .training-card:hover .training-photo img,
  .teaser-card:hover .teaser-photo img,
  .about-photo:hover img { transform: scale(1.06); }
  .flip:not(.flipped):hover .flip-photo img { transform: scale(1.05); }
  /* wartości (O nas): delikatny akcent marki przy najechaniu */
  .values span { transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
  .values span:hover { background: color-mix(in srgb, var(--red) 12%, #fff); color: var(--red); transform: translateY(-2px); }
}
.partners { display: block; border-top: 1px solid var(--line-soft); padding-top: 28px; }
.partners-viewport { overflow: hidden; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; gap: 18px; width: max-content; animation: partnersScroll 30s linear infinite; }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners-track { animation: none; flex-wrap: wrap; justify-content: center; } }
.partners-hint { text-align: center; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; opacity: .7; }
.partner { position: relative; flex-shrink: 0; width: 220px; height: 110px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-soft)); box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.partner-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px 26px; }
.partner-badge { position: absolute; top: 10px; right: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--red);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.partner-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-3); text-align: center;
  filter: grayscale(1); opacity: .7; transition: filter .35s var(--ease), opacity .35s var(--ease), color .35s; }
.partner-logo { max-width: 160px; max-height: 70px; width: auto; height: auto; object-fit: contain; border-radius: 8px;
  filter: grayscale(1); opacity: .68; transition: filter .35s var(--ease), opacity .35s var(--ease); }
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(229,52,63,0.35); }
.partner:hover .partner-logo { filter: none; opacity: 1; }
.partner:hover .partner-name { filter: none; opacity: 1; color: var(--ink); }
.partner--link:hover { border-color: var(--red); }
.partner--link:hover .partner-badge { opacity: 1; transform: none; }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } .partner { width: 184px; height: 98px; } .partner-logo { max-width: 134px; max-height: 62px; } }

/* ============================ KONTAKT ============================ */
.contact { background: var(--bg); }
.contact-top { margin-bottom: 48px; max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-mainwrap { margin-bottom: 22px; }
.contact-main { display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.2vw, 38px); color: var(--ink); }
.contact-main:hover { color: var(--red); }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-item .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contact-item a { display: block; font-size: 14px; color: var(--ink); transition: color .25s; word-break: break-word; }
.contact-item a:hover { color: var(--red); }

.contact-form { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form h3 { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(229,52,63,0.10); }
.field textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 14px; color: var(--mint); font-weight: 600; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 440px) { .contact-list { grid-template-columns: 1fr; } }

/* ============================ AKTUALNOŚCI — teaser ============================ */
.newsteaser { background: var(--bg-soft); }.newsteaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.nt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--red); }
.nt-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-blue); }
.nt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.nt-card:hover .nt-img img { transform: scale(1.05); }
.nt-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; }
.nt-meta { display: flex; align-items: center; gap: 11px; }
.nt-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--bg-blue); color: var(--red); }
.nt-cat.is-event { background: #fff1e6; color: #c8761a; }
.nt-cat.is-post { background: #e7f1ff; color: var(--blue); }
.nt-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.nt-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.18; color: var(--ink); }
.nt-ex { font-size: 14px; color: var(--ink-2); }
@media (max-width: 920px) { .newsteaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .newsteaser-grid { grid-template-columns: 1fr; } }

/* ============================ NEWSLETTER ============================ */
.newsletter { background: var(--bg-beige); }
.newsletter-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); }
.newsletter-title { font-size: clamp(26px, 3.2vw, 40px); margin: 6px 0 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 16px; }
.nl-row { display: flex; gap: 12px; }
.nl-row input { flex: 1; min-width: 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s; }
.nl-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,52,63,0.12); background: #fff; }
.nl-row .btn { flex-shrink: 0; }
.nl-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nl-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-3); max-width: 60ch; cursor: pointer; }
.nl-consent input { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; margin-top: 1px; }
.nl-consent a { color: var(--red); text-decoration: underline; }
.nl-foot .linklike { font-size: 13px; white-space: nowrap; }
.nl-note { margin: 0; font-size: 13.5px; font-weight: 600; padding: 12px 16px; border-radius: 12px; }
.nl-note.is-ok { color: #1f9d63; background: #e7f7f0; }
.nl-note.is-err { color: var(--red); background: rgba(229,52,63,0.08); }
@media (max-width: 800px) {
  .newsletter-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .nl-row { flex-direction: column; }
  .nl-row .btn { justify-content: center; }
}

/* kompaktowy wariant (np. strona Aktualności) */
.newsletter-card--compact { padding: clamp(20px, 2.5vw, 30px); gap: 28px; align-items: center; }
.newsletter-card--compact .newsletter-title { font-size: clamp(20px, 2.2vw, 26px); margin: 4px 0 8px; }
.newsletter-card--compact .lead { font-size: 14px; }
.newsletter-card--compact .kicker { margin-bottom: 8px; }
.newsletter-card--compact .newsletter-form { gap: 12px; }

/* ============================ MODAL SZCZEGÓŁY SZKOLENIA ============================ */
.tmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(13,27,51,0.45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s; }
.tmodal.show { opacity: 1; visibility: visible; }
.tmodal-card { position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 540px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.tmodal.show .tmodal-card { transform: none; }
.tmodal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.tmodal-close:hover { background: #fff; }
.tmodal-body { padding: 30px; }
.tmodal-photo { width: calc(100% + 60px); margin: -30px -30px 22px; height: 200px; border-radius: 0; min-height: 0; }
.tmodal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmodal-title { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 12px; }
.tmodal-desc { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.tmodal-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.tmodal-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.tmodal-row .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tmodal-row .val { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.tmodal-cta { width: 100%; justify-content: center; }
/* formularz w modalu — odstępy, by przycisk nie nachodził na pola */
#cmForm { display: flex; flex-direction: column; gap: 14px; }
#cmForm .field { gap: 6px; }
#cmForm textarea { resize: vertical; min-height: 84px; }
#cmForm .tmodal-cta { margin-top: 4px; }
#cmForm .nl-note { margin: 0; }

/* ============================================================================
   SZLIF 20/10 — blur-up zdjęć, głębia kart, spójny ruch (globalnie, addytywnie)
   ============================================================================ */

/* blur-up: zdjęcia treści (loading=lazy) wchodzą miękko po wczytaniu */
@media (prefers-reduced-motion: no-preference) {
  img[loading="lazy"] { opacity: 0; filter: blur(14px); transform: scale(1.035);
    transition: opacity .75s var(--ease), filter .75s var(--ease), transform .9s var(--ease); }
  img[loading="lazy"].is-loaded { opacity: 1; filter: none; transform: none; }
}

/* delikatny welon u dołu zdjęć w kartach — oddziela grafikę od tła, dodaje głębi */
.training-photo, .nt-img, .teaser-photo { position: relative; }
.training-photo::after, .nt-img::after, .teaser-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(13,27,51,0) 55%, rgba(13,27,51,0.14));
  opacity: 1; transition: opacity .5s var(--ease); }
.training-card:hover .training-photo::after,
.nt-card:hover .nt-img::after,
.teaser-card:hover .teaser-photo::after { opacity: .45; }

/* połysk przesuwający się po zdjęciu O nas przy najechaniu */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-photo { position: relative; }
  .about-photo::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%; z-index: 2;
    pointer-events: none; transform: skewX(-14deg);
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35) 50%, transparent); }
  .about-photo:hover::after { animation: photoShine 1.1s var(--ease); }
  @keyframes photoShine { from { left: -70%; } to { left: 130%; } }
}

/* sceny: nagłówek z akcentem, który „wjeżdża" razem ze sceną */
.scene .scene-index { position: relative; padding-left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scene .scene-word { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .1s, transform .8s var(--ease) .1s; }
  .scene.active .scene-word { opacity: 1; transform: none; }
  .scene .scene-text { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) .22s, transform .8s var(--ease) .22s; }
  .scene.active .scene-text { opacity: 1; transform: none; }
}

/* mini-liczniki i karty: spójne, sprężyste wejście gdy wjadą w kadr */
.reveal.in .cd-num, .reveal.in .nt-title { will-change: auto; }

/* połączenia mapy: po narysowaniu zostają, delikatny oddech opacity */
@media (prefers-reduced-motion: no-preference) {
  .scene.active .map-link path { animation: mapDraw 1.5s var(--ease) forwards, mapBreath 4.5s var(--ease) 1.6s infinite; }
}
@keyframes mapBreath { 0%,100% { opacity: .75; } 50% { opacity: .38; } }
