/* ---- Baza wiedzy /pomoc/ - archiwum + pojedynczy poradnik ----
 *
 * Ten sam jezyk wizualny co reszta flagowca (hero, cennik, uslugi):
 * gradient magenta->fiolet z KV, poswiaty w rogach, siatka w tle, twarde
 * cienie na przyciskach. Zmienne lokalne (--pomoc-*) zamiast --color-*
 * ogolnych z main.css, zeby nie zalezec od tego, co jeszcze te zmienne
 * nadpisze gdzie indziej - ta sekcja ma wygladac tak samo wszedzie.
 */

.pomoc-page,
.pomoc-single {
  --pomoc-primary:  #cc00a6;
  --pomoc-secondary: #7338ea;
  --pomoc-gradient: linear-gradient(135deg, #cc00a6 0%, #a01580 35%, #7338ea 70%, #4c1d9e 100%);
  --pomoc-gradient-hover: linear-gradient(135deg, #e01ac0 0%, #b01890 35%, #8a4ff5 70%, #5a25b8 100%);
  --pomoc-bg:       #000408;
  --pomoc-card-bg:  rgba(255, 255, 255, .03);
  --pomoc-border:   rgba(255, 255, 255, .12);
  --pomoc-text:     #ffffff;
  --pomoc-muted:    #a3a3ad;
  --pomoc-font-head: var(--font-heading, 'Poppins', sans-serif);
  --pomoc-font-body: var(--font-body, 'Inter', system-ui, sans-serif);

  position: relative;
  padding: 8rem 1.25rem 6rem;
  overflow: hidden;
  background: var(--pomoc-bg);
  color: var(--pomoc-text);
  font-family: var(--pomoc-font-body);
}

/* Siatka w tle, ten sam zabieg co w hero i w cenniku LP. */
.pomoc-page::before,
.pomoc-single::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 64px 100%;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* Dwie poswiaty zakotwiczone w rogach, tak jak w hero. */
.pomoc-page__glow,
.pomoc-single .pomoc-page__glow {
  position: absolute;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.pomoc-page__glow {
  top: -28%;
  left: -18%;
  background: radial-gradient(circle closest-side,
    rgba(204, 0, 166, .5) 0%,
    rgba(204, 0, 166, .26) 32%,
    rgba(204, 0, 166, .1) 55%,
    transparent 75%);
  animation: pomoc-aura-1 22s ease-in-out infinite;
}

.pomoc-page__glow::after {
  content: '';
  position: absolute;
  top: 60vh;
  right: -30vw;
  width: 55vw;
  max-width: 700px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(115, 56, 234, .48) 0%,
    rgba(115, 56, 234, .24) 32%,
    rgba(115, 56, 234, .09) 55%,
    transparent 75%);
  animation: pomoc-aura-2 28s ease-in-out infinite;
}

/* Powolny dryf poswiat w tle - ten sam trik co na stronie uslug, zeby
   tlo nie stalo w miejscu jak statyczna grafika. */
@keyframes pomoc-aura-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);        opacity: .6; }
  50%      { transform: translate3d(10%, 12%, 0) scale(1.12); opacity: .85; }
}

@keyframes pomoc-aura-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.1);      opacity: .8; }
  50%      { transform: translate3d(-12%, -10%, 0) scale(1);  opacity: .55; }
}

.pomoc-page__head {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.pomoc-page__eyebrow {
  display: inline-block;
  font-family: var(--pomoc-font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pomoc-primary);
  margin: 0 0 1rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(204, 0, 166, .4);
  border-radius: 999px;
  background: rgba(204, 0, 166, .08);
}

.pomoc-page__title {
  font-family: var(--pomoc-font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.pomoc-page__title-accent {
  background: var(--pomoc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pomoc-page__lead {
  color: var(--pomoc-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 2.25rem;
}

.pomoc-search {
  position: relative;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.pomoc-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--pomoc-muted);
  pointer-events: none;
}

.pomoc-search__input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: 999px;
  border: 1px solid var(--pomoc-border);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  color: var(--pomoc-text);
  font-family: var(--pomoc-font-body);
  font-size: .9375rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pomoc-search__input::placeholder { color: var(--pomoc-muted); }

.pomoc-search__input:focus {
  outline: none;
  border-color: var(--pomoc-primary);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(204, 0, 166, .18);
}

.pomoc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  justify-content: center;
}

.pomoc-chip {
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--pomoc-border);
  background: rgba(255, 255, 255, .03);
  color: var(--pomoc-muted);
  font-family: var(--pomoc-font-head);
  font-weight: 600;
  font-size: .8125rem;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}

.pomoc-chip:hover { color: var(--pomoc-text); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }

.pomoc-chip.is-active {
  color: #fff;
  background: var(--pomoc-gradient);
  border-color: transparent;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(204, 0, 166, .5);
}

.pomoc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 78rem;
  margin: 3.5rem auto 0;
}

.pomoc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--pomoc-card-bg);
  border: 1px solid var(--pomoc-border);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

/**
 * ::after, nie ::before - obwodka musi malowac sie NAD miniaturka/wideo,
 * nie pod nia. ::before renderuje sie za dzieckami karty w tej samej
 * warstwie ukladania, wiec obrazek w .pomoc-card__media go zaslaniał
 * wszedzie poza dolnym paskiem z tekstem.
 */
.pomoc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: var(--pomoc-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 2;
}

.pomoc-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(204, 0, 166, .18);
}

.pomoc-card:hover::after { opacity: 1; }

.pomoc-card__media {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, #0d0512 0%, #050308 100%);
  display: block;
}

.pomoc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pomoc-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomoc-card__play svg {
  width: 50px;
  height: 50px;
  color: #fff;
  background: var(--pomoc-gradient);
  border-radius: 50%;
  padding: 13px;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, .4), 0 0 0 1px rgba(204, 0, 166, .6), 0 8px 24px rgba(204, 0, 166, .35);
  transition: transform .2s ease;
}

.pomoc-card:hover .pomoc-card__play svg { transform: scale(1.08); }

.pomoc-card__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
}

.pomoc-card__cat {
  font-family: var(--pomoc-font-head);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--pomoc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pomoc-card__title {
  font-family: var(--pomoc-font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--pomoc-text);
}

.pomoc-card__desc {
  font-size: .875rem;
  color: var(--pomoc-muted);
  line-height: 1.55;
}

.pomoc-empty {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--pomoc-muted);
  margin-top: 3rem;
}

.pomoc-card[hidden] { display: none; }

/* ---- Pojedynczy poradnik ---- */

.pomoc-single__container {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

.pomoc-single__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--pomoc-muted);
  text-decoration: none;
  font-family: var(--pomoc-font-head);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color .2s ease, gap .2s ease;
}

.pomoc-single__back:hover { color: var(--pomoc-primary); gap: .65rem; }

/* Przypiety przycisk powrotu - widoczny caly czas podczas scrolla, w
   odroznieniu od inline linku wyzej, ktory znika zaraz po przewinieciu. */
.pomoc-single__pin-back {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem .75rem .75rem;
  border-radius: 999px;
  background: rgba(10, 6, 14, .7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pomoc-border, rgba(255,255,255,.12));
  color: #fff;
  text-decoration: none;
  font-family: var(--pomoc-font-head, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: .8125rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.pomoc-single__pin-back svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
  background: var(--pomoc-gradient, linear-gradient(135deg, #cc00a6, #7338ea));
  border-radius: 50%;
  padding: 7px 7px 7px 9px;
  box-sizing: content-box;
}

.pomoc-single__pin-back span {
  white-space: nowrap;
}

.pomoc-single__pin-back:hover {
  border-color: rgba(204, 0, 166, .4);
  background: rgba(10, 6, 14, .9);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .pomoc-single__pin-back { display: none; }
}

.pomoc-single__cat {
  display: inline-block;
  font-family: var(--pomoc-font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(204, 0, 166, .1);
  border: 1px solid rgba(204, 0, 166, .35);
  background-image: var(--pomoc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 .75rem;
}

.pomoc-single__title {
  font-family: var(--pomoc-font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 .875rem;
}

.pomoc-single__lead {
  color: var(--pomoc-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 2.25rem;
}

.pomoc-single__video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--pomoc-border);
  margin-bottom: 3rem;
  background: #000;
  box-shadow: 0 20px 60px rgba(204, 0, 166, .12);
}

.pomoc-single__video video { width: 100%; display: block; }

.pomoc-single__video--embed { position: relative; aspect-ratio: 16/9; }
.pomoc-single__video--embed iframe { width: 100%; height: 100%; }

/* Przycisk powiekszenia - jedyna interakcja na cichym, petlowym wideo. */
.pomoc-single__video { position: relative; }

.pomoc-single__video-expand {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.pomoc-single__video-expand svg { width: 18px; height: 18px; }

.pomoc-single__video:hover .pomoc-single__video-expand,
.pomoc-single__video-expand:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.pomoc-single__video-expand:hover { background: var(--pomoc-gradient, #cc00a6); }

/* ---- Kroki: numerki polaczone pionowa linia, jak stepper ---- */

.pomoc-steps {
  position: relative;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pomoc-steps::before {
  content: '';
  position: absolute;
  top: 1.125rem;
  bottom: 1.125rem;
  left: calc(1.5rem + 1.125rem - 1px);
  width: 2px;
  background: linear-gradient(180deg, rgba(204, 0, 166, .5), rgba(115, 56, 234, .5));
  z-index: 0;
}

.pomoc-steps__item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: #06070c;
  border: 1px solid var(--pomoc-border);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.pomoc-steps__item:hover {
  border-color: rgba(204, 0, 166, .4);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(204, 0, 166, .12);
}

.pomoc-steps__num {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--pomoc-gradient);
  color: #fff;
  font-family: var(--pomoc-font-head);
  font-weight: 700;
  font-size: .9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, .4), 0 0 0 1px rgba(204, 0, 166, .5), 0 0 0 4px #06070c;
}

.pomoc-steps__title {
  font-family: var(--pomoc-font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  margin: 0 0 .375rem;
}

.pomoc-steps__desc {
  color: var(--pomoc-muted);
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0 0 .875rem;
}

/* Adresy, sciezki (/wp-admin) i maile - rzeczy ktore klient ma dokladnie
   przepisac, wyroznione gradientem z KV zamiast ginac w zdaniu. */
.pomoc-highlight {
  background: var(--pomoc-gradient, linear-gradient(135deg, #cc00a6 0%, #a01580 35%, #7338ea 70%, #4c1d9e 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.pomoc-steps__img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--pomoc-border);
}

/* ---- Bloki tresci (Flexible Content) ---- */

.pomoc-bloki {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0 0 3rem;
}

.pomoc-block--text {
  color: var(--pomoc-text, #fff);
  font-size: 1rem;
  line-height: 1.7;
}

.pomoc-block--text p { margin: 0 0 1em; }
.pomoc-block--text p:last-child { margin-bottom: 0; }
.pomoc-block--text strong { color: #fff; }
.pomoc-block--text a { color: var(--pomoc-primary, #cc00a6); }

.pomoc-block--image {
  margin: 0;
  text-align: center;
}

.pomoc-block--image img {
  /* Naturalny rozmiar pliku, nigdy wiekszy niz kontener - male zrzuty
     zostaja male zamiast rozciagac sie (i rozmywac) na cala szerokosc. */
  width: auto;
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 16px;
  border: 1px solid var(--pomoc-border, rgba(255,255,255,.12));
}

.pomoc-block--image figcaption {
  margin-top: .625rem;
  font-size: .8125rem;
  color: var(--pomoc-muted, #a3a3ad);
  text-align: center;
}

.pomoc-block--video {
  margin-bottom: 0;
}

.pomoc-bloki .pomoc-steps__item { margin: 0; }

.pomoc-single__disclaimer {
  font-size: .8125rem;
  color: var(--pomoc-muted);
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.pomoc-single__foot {
  position: relative;
  border-top: 1px solid var(--pomoc-border);
  padding-top: 2rem;
  text-align: center;
}

.pomoc-single__foot p {
  color: var(--pomoc-muted);
  margin: 0 0 1rem;
  font-size: .9375rem;
}

.pomoc-single__report {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  background: var(--pomoc-gradient);
  color: #fff;
  text-decoration: none;
  font-family: var(--pomoc-font-head);
  font-weight: 600;
  font-size: .875rem;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, .4), 0 0 0 1px rgba(204, 0, 166, .6);
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.pomoc-single__report:hover {
  background: var(--pomoc-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 rgba(0, 0, 0, .4), 0 0 0 1px rgba(204, 0, 166, .6);
}

.pomoc-single__report:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, .4), 0 0 0 1px rgba(204, 0, 166, .6);
}

@media (max-width: 640px) {
  .pomoc-page, .pomoc-single { padding: 6.5rem 1rem 4rem; }
  .pomoc-grid { grid-template-columns: 1fr; }
}
