/* ─── Trust section ──────────────────────────────────── */

.trust__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;

  @media (max-width: 1024px) {
    gap: 30px;
  }

  @media (max-width: 768px) {
    gap: 40px;
  }
}

/* ─── Header ─────────────────────────────────────────── */

.trust__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.trust__texts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;

  @media (max-width: 1024px) {
    gap: 30px;
  }

  @media (max-width: 768px) {
    gap: 20px;
    align-items: center;
  }
}

.trust__title {
  @media (max-width: 1024px) {
    max-width: 360px;
  }

  @media (max-width: 768px) {
    text-align: center;
  }

  @media (max-width: 480px) {
    max-width: 290px;
  }
}

.trust__subtitle {
  max-width: 690px;

  @media (max-width: 1024px) {
    max-width: 540px;
  }

  @media (max-width: 768px) {
    text-align: center;
    max-width: 630px;
  }

  @media (max-width: 480px) {
    max-width: 440px;
  }

  @media (max-width: 360px) {
    font-size: var(--fs-body-sm);
  }
}

/* ─── CTA visibility ─────────────────────────────────── */

.trust__cta--top {
  flex-shrink: 0;

  @media (max-width: 768px) {
    display: none;
  }
}

.trust__cta--bottom {
  display: none;
  align-self: flex-start;

  @media (max-width: 768px) {
    display: inline-flex;
    margin: 0 auto;
  }

  @media (max-width: 360px) {
    align-self: stretch;
    justify-content: space-between;
  }
}

/* ─── Cards grid ─────────────────────────────────────── */

.trust__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

/* ─── Card order swap at 1024/768 ────────────────────── */
/* Source: ЮЛ(1) НДС(2) оформление(3) паспорта(4)       */
/* At 2×2: ЮЛ(1) НДС(2) / паспорта(3) оформление(4)    */

@media (max-width: 1024px) {
  .trust__card--3 {
    order: 4;
  }

  .trust__card--4 {
    order: 3;
  }
}

@media (max-width: 480px) {
  .trust__card--3 {
    order: initial;
  }

  .trust__card--4 {
    order: initial;
  }
}

/* ─── Card ───────────────────────────────────────────── */

.trust__card {
  position: relative;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  min-height: 400px;

  @media (max-width: 1024px) {
    min-height: 220px;
  }

  @media (max-width: 768px) {
    min-height: 350px;
  }

  @media (max-width: 480px) {
    min-height: 206px;
  }

  @media (max-width: 360px) {
    min-height: 300px;

    .trust__card-desc {
      max-width: 190px;
    }
  }
}

.trust__card--dark {
  background: var(--color-blue-dark);
}

.trust__card--blue {
  background: var(--color-blue);
}

.trust__card--light {
  background: var(--color-grey);
  box-shadow: 0px 3px 10px 0px rgba(167, 168, 169, 0.35);
}

/* ─── Badge (number icon) ────────────────────────────── */

.trust__badge {
  display: block;
  width: 54px;
  height: 54px;
  flex-shrink: 0;

  @media (max-width: 1024px) {
    width: 40px;
    height: 40px;
  }

  @media (max-width: 768px) {
    width: 54px;
    height: 54px;
  }

  @media (max-width: 480px) {
    width: 40px;
    height: 40px;
  }
}

/* ─── Card text ──────────────────────────────────────── */

.trust__card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;

  @media (max-width: 1024px) {
    max-width: 280px;
  }
}

.trust__card-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
}

.trust__card--dark .trust__card-title,
.trust__card--blue .trust__card-title {
  color: var(--color-white);
}

.trust__card--light .trust__card-title {
  color: var(--color-text);
}

.trust__card-desc {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  opacity: 0.6;
}

.trust__card--dark .trust__card-desc,
.trust__card--blue .trust__card-desc {
  color: var(--color-white);
}

.trust__card--light .trust__card-desc {
  color: var(--color-text);
}

/* ─── Decorative images ──────────────────────────────── */

.trust__deco {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Shield — ЮЛ (dark blue card) */
.trust__deco--1 {
  left: 111px;
  top: 200px;
  width: 289px;
  height: 289px;

  @media (max-width: 1024px) {
    left: 290px;
    top: 24px;
    width: 246px;
    height: 246px;
  }

  @media (max-width: 768px) {
    left: 155px;
    top: 175px;
    width: 265px;
    height: 265px;
  }

  @media (max-width: 480px) {
    left: 287px;
    top: 35px;
    width: 223px;
    height: 223px;
  }

  @media (max-width: 360px) {
    left: 146px;
    top: 127px;
    width: 242px;
    height: 242px;
  }
}

/* Percent — НДС (grey card) */
.trust__deco--2 {
  left: 84px;
  top: 222px;
  width: 254px;

  @media (max-width: 1024px) {
    left: 288px;
    top: 36px;
    width: 214px;
  }

  @media (max-width: 768px) {
    left: 138px;
    top: 188px;
    width: 236px;
  }

  @media (max-width: 480px) {
    left: 288px;
    top: 45px;
    width: 203px;
  }

  @media (max-width: 360px) {
    left: 179px;
    top: 175px;
    width: 174px;
  }
}

/* Delivery — оформление (blue card) */
.trust__deco--3 {
  left: 51px;
  top: 190px;
  width: 331px;

  @media (max-width: 1024px) {
    left: auto;
    top: auto;
    right: -60px;
    bottom: -60px;
    width: 252px;
    transform: rotate(-10deg);
  }

  @media (max-width: 768px) {
    left: 108px;
    top: 178px;
    width: 287px;
    transform: rotate(0deg);
  }

  @media (max-width: 480px) {
    left: 277px;
    top: 43px;
    width: 213px;
    transform: rotate(-10deg);
  }

  @media (max-width: 360px) {
    left: 153px;
    top: 157px;
    width: 204px;
    transform: rotate(0deg);
  }
}

/* Folder — паспорта (grey card) */
.trust__deco--4 {
  left: 61px;
  top: 210px;
  width: 283px;
  height: 344px;

  @media (max-width: 1024px) {
    left: 267px;
    top: 32px;
    width: 227px;
    height: 276px;
  }

  @media (max-width: 768px) {
    left: 155px;
    top: 196px;
    width: 212px;
    height: 258px;
  }

  @media (max-width: 480px) {
    left: 267px;
    top: 32px;
    width: 213px;
    height: 259px;
  }

  @media (max-width: 360px) {
    left: 141px;
    top: 154px;
    width: 226px;
    height: 275px;
  }
}
