/* ==========================================================================
   Elit-Stal — „Dlaczego Warto Nam Zaufać?” (dopasowanie do referencji)
   ========================================================================== */

.trust {
  position: relative;
  isolation: isolate;
  padding: 72px 24px 112px;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 120px;
}

.trust__wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Tło */
.trust__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.trust__photo {
  position: absolute;
  inset: 0;
  background: url("../images/trust-bg.avif") center center / cover no-repeat;
  filter: saturate(1.4) contrast(1.15) brightness(1.02);
  transform: scale(1.03);
}

/* Lekki overlay tylko na krawędziach — środek zostaje wyrazisty */
.trust__sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.42) 0%, rgba(8, 17, 29, 0.06) 14%, transparent 32%, transparent 72%, rgba(8, 17, 29, 0.38) 100%),
    radial-gradient(ellipse 55% 80% at 0% 50%, rgba(255, 110, 25, 0.16) 0%, transparent 68%),
    radial-gradient(ellipse 55% 80% at 100% 50%, rgba(255, 110, 25, 0.16) 0%, transparent 68%);
}

.trust__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 35%, rgba(4, 8, 14, 0.35) 100%);
  pointer-events: none;
}

.trust__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("../images/noise.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.trust__sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.62;
}

.trust__ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 119, 0, 0.12) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 85%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 85%);
}

/* Nagłówek */
.trust__header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 80px;
}

.trust__title {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 4.3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.trust__title-accent {
  background: linear-gradient(90deg, #fde68a 0%, var(--gold) 38%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 119, 0, 0.4));
}

.trust__lensflare {
  position: relative;
  height: 28px;
  margin: 8px auto 16px;
  max-width: 820px;
}

.trust__lensflare-beam {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 150, 50, 0.06) 12%,
    rgba(255, 210, 130, 0.65) 50%,
    rgba(255, 150, 50, 0.06) 88%,
    transparent 100%);
}

.trust__lensflare-hot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 36px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 235, 180, 0.85) 0%, rgba(255, 119, 0, 0.4) 35%, transparent 70%);
  filter: blur(6px);
}

.trust__lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.55vw, 1.125rem);
  line-height: 1.65;
  color: #cbd5e1;
}

.trust__lead strong {
  color: var(--orange);
  font-weight: 700;
}

/* Grid kart */
.trust__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.trust-card {
  perspective: 1000px;
}

.trust-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 100%;
  padding: 28px 22px 24px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 22, 36, 0.72);
  border: 1px solid rgba(255, 140, 50, 0.22);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 28px rgba(255, 119, 0, 0.07);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);

  --rx: 0deg;
  --ry: 0deg;
  --sx: 50%;
  --sy: 35%;

  transform: translate3d(0, 0, 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform 400ms var(--ease),
    border-color 400ms var(--ease),
    box-shadow 400ms var(--ease);
}

.trust-card__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 400ms var(--ease);
}

.trust-card--quality .trust-card__inner::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.14) 0%, transparent 58%);
}

.trust-card--speed .trust-card__inner::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.12) 0%, transparent 58%);
}

.trust-card--experience .trust-card__inner::before {
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 58%);
}

.trust-card--custom .trust-card__inner::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.11) 0%, transparent 58%);
}

.trust-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -40px 56px rgba(0, 0, 0, 0.22);
  transition: box-shadow 400ms var(--ease);
}

/* Ikona wyśrodkowana nad tytułem — jak na referencji */
.trust-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 16px;
}

.trust-card__iconbox {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 400ms var(--ease);
}

.trust-card__iconbox::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 119, 0, 0.42) 0%, rgba(255, 119, 0, 0.12) 42%, transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.trust-card__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 400ms var(--ease);
  filter: drop-shadow(0 0 10px rgba(255, 119, 0, 0.65)) drop-shadow(0 0 22px rgba(255, 140, 40, 0.35));
}

.trust-card__heading {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
}

.trust-card__text {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #b8c4d0;
  text-align: center;
}

/* Hover karty */
.trust-card__inner:hover {
  transform: translate3d(0, -9px, 0) rotateX(var(--rx)) rotateY(var(--ry));
  border-color: rgba(255, 140, 50, 0.42);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.62),
    0 0 56px rgba(255, 119, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trust-card__inner:hover::before { opacity: 1; }

.trust-card__inner:hover::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(255, 119, 0, 0.06),
    inset 0 -40px 56px rgba(0, 0, 0, 0.18);
}

.trust-card__inner:hover .trust-card__iconbox {
  transform: scale(1.06);
}

.trust-card__inner:hover .trust-card__icon {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(255, 119, 0, 0.85)) drop-shadow(0 0 28px rgba(255, 140, 40, 0.45));
}

/* Shine przy tilt */
.trust-card__inner {
  background-color: rgba(14, 22, 36, 0.72);
  background-image: radial-gradient(circle 160px at var(--sx) var(--sy),
    rgba(255, 140, 50, 0.08) 0%,
    rgba(255, 140, 50, 0.02) 42%,
    transparent 68%);
}

@media (max-width: 1200px) {
  .trust__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trust {
    padding: 72px 18px 88px;
  }

  .trust__header {
    margin-bottom: 52px;
  }

  .trust__cards {
    grid-template-columns: 1fr;
  }

  .trust-card__top {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card__inner,
  .trust-card__iconbox,
  .trust-card__icon {
    transition-duration: 0.01ms !important;
  }
}
