/* Strona główna: opinie trenerów (sekcja #opinie). Właściciel: templates/landing.html.
   Karuzelę (autoprzewijanie, klony, strzałki) obsługuje static/public_fx.js. */

.lp-reviews{ position:relative; overflow:hidden; isolation:isolate; }
.lp-reviews__glow{
  position:absolute; z-index:-1; left:50%; top:38%; width:min(1100px, 120vw); height:520px; transform:translate(-50%,-50%);
  background:radial-gradient(closest-side, rgba(240,87,45,.16), rgba(240,87,45,0)); pointer-events:none;
}

.lp-reviews__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.lp-reviews__head .lp-h2{ margin-bottom:8px; }
.lp-reviews__head .lp-sub{ margin:0; max-width:560px; }
.lp-reviews__eyebrow{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:10px;
  color:var(--orange2, #f0572d); font-size:.76rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
}
.lp-reviews__eyebrow span{ width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 0 5px rgba(240,87,45,.14); }
.lp-reviews__controls{ display:flex; gap:10px; flex:0 0 auto; }
.lp-reviews__arrow{
  width:48px; height:48px; display:grid; place-items:center; border-radius:50%;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:var(--text-95, #fff);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.lp-reviews__arrow svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lp-reviews__arrow:hover{ transform:translateY(-2px); border-color:rgba(240,87,45,.5); background:rgba(240,87,45,.14); }
.lp-reviews__arrow:focus-visible{ outline:3px solid rgba(240,87,45,.35); outline-offset:3px; }

/* ---------- karuzela ---------- */
.lp-testimonials-carousel{ position:relative; }
.lp-testimonials-track{
  display:flex; align-items:stretch; gap:18px; overflow-x:auto; padding:10px 4px 26px;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.lp-testimonials-track::-webkit-scrollbar{ display:none; }

/* ---------- karta ---------- */
.lp-testimonial{
  position:relative; overflow:hidden; display:flex; flex-direction:column;
  flex:0 0 calc((100% - 36px) / 3); min-width:280px; scroll-snap-align:start;
  padding:24px 24px 20px; border-radius:26px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(240,87,45,.13), rgba(240,87,45,0) 55%),
    linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 60%),
    var(--lp-bg-1, rgba(0,0,0,.18));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 22px 50px rgba(0,0,0,.26);
  transition:transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease;
}
@media (hover:hover) and (pointer:fine){
  .lp-testimonial:hover{ transform:translateY(-4px); border-color:rgba(240,87,45,.38); box-shadow:0 1px 0 rgba(255,255,255,.1) inset, 0 28px 60px rgba(0,0,0,.32), 0 0 0 1px rgba(240,87,45,.12); }
}
.lp-testimonial__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lp-testimonial__mark{ width:36px; height:27px; fill:#f0572d; opacity:.95; filter:drop-shadow(0 6px 14px rgba(240,87,45,.35)); }
.lp-testimonial .stars{
  font-size:.95rem; letter-spacing:.14em; line-height:1;
  background:linear-gradient(90deg, #ff8a3d, #f0572d); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lp-testimonial .q{
  flex:1 1 auto; margin:18px 0 0; padding:0; border:0;
  font-size:1.03rem; line-height:1.62; font-weight:500; letter-spacing:-.003em; color:var(--text-95, rgba(255,255,255,.92));
}
.lp-testimonial .q b{ color:#ff7a3d; font-weight:700; }
.lp-testimonial .tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.lp-testimonial .tag{
  padding:5px 11px; border-radius:999px; font-size:.75rem; font-weight:700; letter-spacing:.01em;
  color:#ff8a52; background:rgba(240,87,45,.10); border:1px solid rgba(240,87,45,.22);
}
.lp-testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:18px; padding-top:16px; border-top:1px solid rgba(255,255,255,.08); }
.lp-testimonial .av{
  width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:50%;
  font-weight:800; font-size:1rem; color:#fff;
  background:radial-gradient(circle at 32% 28%, #ffb48a 0, #ff6a2b 38%, #c93a0c 100%);
  box-shadow:0 8px 22px rgba(240,87,45,.38), inset 0 1px 0 rgba(255,255,255,.35);
}
.lp-testimonial .nm{ font-weight:800; line-height:1.15; color:var(--text-95, #fff); }
.lp-testimonial .rl{ margin-top:2px; font-size:.84rem; line-height:1.3; color:var(--muted-2, rgba(255,255,255,.6)); }

/* ---------- jasny motyw ---------- */
html[data-theme="light"] .lp-reviews__arrow{ border-color:rgba(17,24,39,.10); background:rgba(255,255,255,.85); color:#111827; box-shadow:0 12px 30px rgba(17,24,39,.08); }
html[data-theme="light"] .lp-testimonial{
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(240,87,45,.10), rgba(240,87,45,0) 55%),
    linear-gradient(165deg, #fff, #fffaf7);
  border-color:rgba(17,24,39,.08);
  box-shadow:0 1px 0 #fff inset, 0 22px 50px rgba(17,24,39,.08);
}
html[data-theme="light"] .lp-testimonial .q{ color:#1f2430; }
html[data-theme="light"] .lp-testimonial .q b{ color:#d9480f; }
html[data-theme="light"] .lp-testimonial .tag{ color:#c2410c; background:rgba(240,87,45,.08); }
html[data-theme="light"] .lp-testimonial .who{ border-top-color:rgba(17,24,39,.08); }
html[data-theme="light"] .lp-testimonial .nm{ color:#111827; }
html[data-theme="light"] .lp-testimonial .rl{ color:#6b7280; }

/* ---------- rozmiary ---------- */
@media (max-width:991.98px){ .lp-testimonial{ flex-basis:calc((100% - 18px) / 2); } }
@media (max-width:575.98px){
  .lp-reviews__head{ align-items:flex-start; margin-bottom:14px; }
  .lp-reviews__controls{ display:none; }
  .lp-testimonials-track{ gap:12px; padding-bottom:18px; -webkit-mask-image:none; mask-image:none; }
  .lp-testimonial{ flex-basis:86%; min-width:0; padding:20px 18px 16px; border-radius:22px; }
  .lp-testimonial .q{ font-size:.98rem; }
}
@media (prefers-reduced-motion: reduce){ .lp-testimonial{ transition:none; } }

/* =====================================================================
   Opinie wideo (sekcja #opinie-video). Logika karuzeli i odtwarzania: skrypt w landing.html.
   Pionowe karty z podpisem na filmie; kontrolki odtwarzacza pojawiają się po starcie.
   ===================================================================== */
.lp-video-reviews-section{position:relative;overflow:hidden}
.lp-video-reviews-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.lp-video-reviews-copy{max-width:640px}
.lp-video-reviews-copy .lp-h2{margin-bottom:8px}
.lp-video-reviews-copy .lp-sub{margin:0}
.lp-video-reviews-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--orange2,#f0572d);font-size:.76rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.lp-video-reviews-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px rgba(240,87,45,.14)}
.lp-video-reviews-controls{display:flex;gap:10px;flex:0 0 auto}
.lp-video-reviews-arrow{
  width:48px;height:48px;display:grid;place-items:center;border-radius:50%;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text-95,#fff);
  box-shadow:0 12px 30px rgba(0,0,0,.18);transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.lp-video-reviews-arrow svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lp-video-reviews-arrow:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(240,87,45,.5);background:rgba(240,87,45,.14)}
.lp-video-reviews-arrow:disabled{opacity:.35;cursor:default}
.lp-video-reviews-arrow:focus-visible,.lp-video-review-play:focus-visible,.lp-video-reviews-dot:focus-visible{outline:3px solid rgba(240,87,45,.4);outline-offset:3px}

.lp-video-reviews-carousel{position:relative}
.lp-video-reviews-track{
  display:flex;gap:16px;overflow-x:auto;padding:8px 4px 20px;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.lp-video-reviews-track::-webkit-scrollbar{display:none}

.lp-video-review-card{
  position:relative;flex:0 0 calc((100% - 48px) / 4);min-width:240px;scroll-snap-align:start;
  border-radius:26px;overflow:hidden;isolation:isolate;background:#0d0f14;
  box-shadow:0 0 0 1px rgba(255,255,255,.08),0 24px 56px rgba(0,0,0,.34);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;
}
@media (hover:hover) and (pointer:fine){
  .lp-video-review-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(240,87,45,.45),0 30px 64px rgba(0,0,0,.4)}
  .lp-video-review-card:not(.is-playing):hover video{transform:scale(1.03)}
}
.lp-video-review-media{position:relative;aspect-ratio:9 / 16;background:#0d0f14}
.lp-video-review-media video,.lp-video-review-media iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
/* przyciemnienie pod podpisem i przyciskiem (znika podczas odtwarzania) */
.lp-video-review-media::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(180deg,rgba(6,7,10,.35) 0%,rgba(6,7,10,0) 22%,rgba(6,7,10,0) 52%,rgba(6,7,10,.88) 100%);
  transition:opacity .3s ease;
}
.lp-video-review-card.is-playing .lp-video-review-media::after,.lp-video-review-media.is-drive-hosted::after{opacity:0}

.lp-video-review-badge{
  position:absolute;z-index:2;top:14px;left:14px;display:inline-flex;align-items:center;gap:7px;
  padding:6px 11px;border-radius:999px;font-size:.75rem;font-weight:700;color:#fff;
  background:rgba(10,11,15,.55);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:opacity .25s ease;pointer-events:none;
}
.lp-video-review-live-dot{width:7px;height:7px;border-radius:50%;background:#ff5a1f;box-shadow:0 0 0 3px rgba(255,90,31,.25)}

.lp-video-review-play{
  position:absolute;z-index:3;left:50%;top:44%;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;border:0;background:none;color:#fff;
  font-size:.9rem;font-weight:700;text-shadow:0 2px 12px rgba(0,0,0,.55);cursor:pointer;
  transition:opacity .25s ease,transform .25s ease;
}
.lp-video-review-play-icon{
  position:relative;width:72px;height:72px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(135deg,#ff7a3d,#f0572d);box-shadow:0 14px 36px rgba(240,87,45,.5);
  transition:transform .25s ease;
}
.lp-video-review-play-icon::before{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid rgba(255,255,255,.35);animation:lpVrPulse 2.4s ease-out infinite}
@keyframes lpVrPulse{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.25);opacity:0}}
.lp-video-review-play-icon svg{width:30px;height:30px;fill:currentColor;margin-left:3px}
.lp-video-review-play:hover .lp-video-review-play-icon{transform:scale(1.06)}
.lp-video-review-card.is-playing .lp-video-review-play{opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.9)}
.lp-video-review-card.is-playing .lp-video-review-badge{opacity:0}

/* podpis na filmie */
.lp-video-review-meta{
  position:absolute;z-index:2;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:16px 16px 18px;
  pointer-events:none;transition:opacity .25s ease,transform .25s ease;
}
.lp-video-review-card.is-playing .lp-video-review-meta{opacity:0;transform:translateY(8px)}
.lp-video-review-avatar{
  width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;
  font-weight:800;font-size:.85rem;color:#fff;
  background:radial-gradient(circle at 32% 28%,#ffb48a 0,#ff6a2b 38%,#c93a0c 100%);
  box-shadow:0 8px 20px rgba(240,87,45,.4),inset 0 1px 0 rgba(255,255,255,.35);
}
.lp-video-review-person{min-width:0;flex:1}
.lp-video-review-name{font-weight:800;font-size:1rem;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-video-review-city{display:flex;align-items:center;gap:4px;margin-top:2px;font-size:.84rem;color:rgba(255,255,255,.78)}
.lp-video-review-city svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lp-video-review-mark{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22)}
.lp-video-review-mark svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* karta z odtwarzaczem Google Drive: podpis pod filmem, żeby nie zasłaniał przycisków Drive */
.lp-video-review-card.is-drive .lp-video-review-meta{position:relative;pointer-events:auto;background:#12151c}
.lp-video-review-card.is-drive{display:flex;flex-direction:column}
.lp-video-review-card.is-drive .lp-video-review-media{flex:1 1 auto;aspect-ratio:auto;min-height:0}

.lp-video-reviews-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 2px 0}
.lp-video-reviews-dots{display:flex;align-items:center;gap:7px;min-height:24px}
.lp-video-reviews-dots .lp-video-reviews-dot,
html .lp-video-reviews-dots button.lp-video-reviews-dot[aria-label]{
  position:relative;min-width:0;min-height:0;width:8px;height:8px;padding:0;border:0;border-radius:999px;
  background:rgba(255,255,255,.22);transition:width .22s ease,background .22s ease,transform .22s ease;
}
.lp-video-reviews-dot::after{content:"";position:absolute;inset:-10px -4px}
.lp-video-reviews-dots .lp-video-reviews-dot.is-active,
html .lp-video-reviews-dots button.lp-video-reviews-dot.is-active[aria-label]{width:28px;background:linear-gradient(90deg,#f0572d,#ff7a3d)}
.lp-video-reviews-hint{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.58);font-size:.78rem;font-weight:600}
.lp-video-reviews-hint svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

html[data-theme="light"] .lp-video-reviews-arrow{border-color:rgba(17,24,39,.10);background:rgba(255,255,255,.85);color:#111827;box-shadow:0 12px 30px rgba(17,24,39,.08)}
html[data-theme="light"] .lp-video-review-card{box-shadow:0 0 0 1px rgba(17,24,39,.06),0 24px 56px rgba(17,24,39,.16)}
html[data-theme="light"] .lp-video-review-card.is-drive .lp-video-review-meta{background:#fff}
html[data-theme="light"] .lp-video-review-card.is-drive .lp-video-review-name{color:#111827}
html[data-theme="light"] .lp-video-review-card.is-drive .lp-video-review-city{color:#586171}
html[data-theme="light"] .lp-video-review-card.is-drive .lp-video-review-mark{background:rgba(240,87,45,.1);color:#d9480f;border-color:rgba(240,87,45,.25)}
html[data-theme="light"] .lp-video-reviews-dot{background:rgba(17,24,39,.18)}
html[data-theme="light"] .lp-video-reviews-hint{color:rgba(17,24,39,.55)}

@media (max-width:1199.98px){ .lp-video-review-card{flex-basis:calc((100% - 32px) / 3)} }
@media (max-width:991.98px){ .lp-video-review-card{flex-basis:calc((100% - 16px) / 2)} }
@media (max-width:575.98px){
  .lp-video-reviews-heading{display:block;margin-bottom:14px}
  .lp-video-reviews-controls{display:none}
  .lp-video-reviews-track{gap:12px}
  .lp-video-review-card{flex-basis:78%;min-width:0;border-radius:22px}
  .lp-video-review-play-icon{width:62px;height:62px}
  .lp-video-reviews-hint{display:none}
}
@media (prefers-reduced-motion:reduce){
  .lp-video-review-card,.lp-video-review-media video,.lp-video-review-play,.lp-video-reviews-arrow{transition:none}
  .lp-video-review-play-icon::before{animation:none}
  .lp-video-reviews-track{scroll-behavior:auto}
}
