/**
 * Full-bleed trust strip.
 * Samodzielny komponent: usunięcie tego pliku i wpisu w asset-manifest.php
 * całkowicie wyłącza jego warstwę wizualną.
 */
.wg-trust {
  --wg-trust-ink: #111;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / .14);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: var(--wg-trust-ink);
}

.wg-trust__grid {
  display: flex;
  width: 100%;
}

.wg-trust__panel {
  --wg-pointer-x: 50%;
  --wg-pointer-y: 50%;
  --wg-drift-x: 0px;
  --wg-panel-hover: #1d638b;
  position: relative;
  display: block;
  min-width: 0;
  min-height: clamp(10rem, 12vw, 13rem);
  padding: clamp(1.5rem, 3vw, 3rem);
  flex: 1 1 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / .1);
  background: var(--wg-trust-ink);
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    flex-grow .65s cubic-bezier(.16,1,.3,1),
    background-color .45s ease,
    color .45s ease,
    opacity .55s ease,
    transform .7s cubic-bezier(.16,1,.3,1);
}

.wg-trust__panel:nth-child(2) {
  --wg-panel-hover: #b66543;
}

.wg-trust__panel:nth-child(3) {
  --wg-panel-hover: #3a8073;
}

.wg-trust__panel:first-child {
  border-left: 0;
}

.wg-trust__panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    circle clamp(9rem, 14vw, 15rem) at var(--wg-pointer-x) var(--wg-pointer-y),
    rgb(255 255 255 / .2) 0,
    rgb(255 255 255 / .08) 38%,
    transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.wg-trust.is-ready .wg-trust__panel {
  opacity: 0;
  transform: translateY(1.25rem);
}

.wg-trust.is-ready.is-visible .wg-trust__panel {
  animation: wg-trust-panel-in .7s cubic-bezier(.16,1,.3,1) calc(var(--wg-order) * 90ms) forwards;
}

.wg-trust__icon {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(1rem, 3vw, 4rem);
  display: block;
  width: clamp(8rem, 11vw, 14rem);
  color: currentColor;
  opacity: .11;
  pointer-events: none;
  transform: translate(var(--wg-drift-x), -50%) rotate(-7deg);
  transition: opacity .45s ease, transform .2s linear;
}

.wg-trust__icon svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: .7;
}

#footer .wg-trust__icon svg {
  fill: none;
}

.wg-trust__copy {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  left: clamp(1.5rem, 3vw, 3rem);
  transform: translateX(var(--wg-drift-x));
  transition: transform .18s linear;
}

#footer .wg-trust__copy h3,
.wg-trust__copy h3 {
  max-width: 12ch;
  margin: 0 0 .8rem;
  color: currentColor;
  font-size: clamp(1.25rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-transform: none;
}

#footer .wg-trust__description,
#footer .wg-trust__description p,
.wg-trust__description,
.wg-trust__description p {
  max-width: 31rem;
  margin: 0;
  color: currentColor;
  font-size: clamp(.72rem, .85vw, .88rem);
  line-height: 1.55;
  opacity: .55;
}

.wg-trust__action {
  position: absolute;
  z-index: 1;
  top: clamp(1.5rem, 3vw, 3rem);
  right: clamp(1.5rem, 3vw, 3rem);
  padding: 5px;
  background: #fff;
  color: var(--wg-trust-ink);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wg-trust__action > span {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  opacity: 0;
  transition: max-width .4s ease, opacity .3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .wg-trust__grid:hover .wg-trust__panel:not(:hover) {
    opacity: .52;
  }

  #footer .wg-trust__panel:hover,
  #footer .wg-trust__panel:focus-visible,
  .wg-trust__panel:hover,
  .wg-trust__panel:focus-visible {
    flex-grow: 1.22;
    background-color: var(--wg-panel-hover);
    color: #fff;
    outline: 0;
  }

  .wg-trust__panel:hover::before {
    opacity: 1;
  }

  .wg-trust__panel:hover .wg-trust__icon,
  .wg-trust__panel:focus-visible .wg-trust__icon {
    color: #fff;
    opacity: 1;
    transform: translate(calc(var(--wg-drift-x) - .6rem), -50%) rotate(-3deg) scale(1.04);
  }

  .wg-trust__panel:hover .wg-trust__action > span,
  .wg-trust__panel:focus-visible .wg-trust__action > span {
    max-width: 5rem;
    opacity: 1;
  }
}

@media (hover: none) {
  #footer .wg-trust__panel.is-active,
  #footer .wg-trust__panel:active,
  .wg-trust__panel.is-active,
  .wg-trust__panel:active {
    background-color: var(--wg-panel-hover);
    color: #fff;
  }

  .wg-trust__panel.is-active::before,
  .wg-trust__panel:active::before {
    opacity: 1;
  }

  .wg-trust__panel.is-active .wg-trust__icon,
  .wg-trust__panel:active .wg-trust__icon {
    color: #fff;
    opacity: .55;
    transform: translate(-.35rem, -50%) rotate(-3deg) scale(1.03);
  }
}

@media (max-width: 767.98px) {
  .wg-trust__grid {
    flex-direction: column;
  }

  .wg-trust__panel {
    min-height: 11rem;
    border-top: 1px solid rgb(255 255 255 / .1);
    border-left: 0;
  }

  .wg-trust__panel:first-child {
    border-top: 0;
  }

}

@keyframes wg-trust-panel-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wg-trust.is-ready .wg-trust__panel {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .wg-trust__panel,
  .wg-trust__icon,
  .wg-trust__copy,
  .wg-trust__action > span {
    transition: none;
  }
}
