/* ============================================================
   Trust section — «Кто делает Документатор»
   by bvmax (ООО БВМ)
   ============================================================ */

.trust {
  background:
    radial-gradient(1100px 320px at 50% -10%, rgba(67, 56, 202, 0.06), transparent 70%),
    var(--paper);
}

.trust__header {
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--s-12);
  text-align: center;
}

.trust__lead {
  color: var(--graphite-700);
  margin: 0;
}

/* ----- Grid ----- */
.trust__grid {
  margin-top: var(--s-8);
  align-items: stretch;
}

/* ----- Card ----- */
.trust-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-8);
  background: var(--graphite-100);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--indigo-500);
}

.trust-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-800);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 999px;
}

.trust-card__title {
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink-900);
  margin: 0;
}

.trust-card__note {
  margin: auto 0 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--graphite-300);
  font-size: 14px;
  line-height: 1.55;
  color: var(--graphite-700);
}

.trust-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo-700);
  text-decoration: none;
}

.trust-card__link:hover {
  color: var(--indigo-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Column 1 — Team
   ============================================================ */
.trust-people {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-person {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  background: var(--paper-pure);
  border: 1px solid var(--graphite-200);
  border-radius: var(--radius);
}

.trust-person__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.trust-person__avatar--indigo {
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
}

.trust-person__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.trust-person__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
}

.trust-person__role {
  font-size: 13px;
  color: var(--graphite-500);
  margin-top: 2px;
}

/* ============================================================
   Column 2 — Legal entity
   ============================================================ */
.trust-legal__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
}

.trust-legal__facts,
.trust-oss__facts {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: var(--s-4);
  row-gap: var(--s-3);
  margin: 0;
  padding: var(--s-4);
  background: var(--paper-pure);
  border: 1px solid var(--graphite-200);
  border-radius: var(--radius);
}

.trust-legal__row,
.trust-oss__row {
  display: contents;
}

.trust-legal__facts dt,
.trust-oss__facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-500);
  padding-top: 3px;
}

.trust-legal__facts dd,
.trust-oss__facts dd {
  margin: 0;
  font-size: 14px;
  color: var(--graphite-900);
  line-height: 1.45;
}

.trust-legal__facts .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.trust-legal__facts a {
  color: var(--indigo-700);
  font-weight: 500;
}

.trust-legal__facts a:hover { color: var(--indigo-900); }

/* ============================================================
   Column 3 — Open source
   ============================================================ */
.trust-oss__pkg {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-900);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 6px;
}

.trust-oss__facts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--indigo-700);
  font-weight: 500;
}

.trust-oss__facts a:hover {
  color: var(--indigo-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-oss__license {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--graphite-700);
  background: var(--graphite-100);
  border: 1px solid var(--graphite-200);
  border-radius: 999px;
}

/* ============================================================
   Reassurance bar
   ============================================================ */
.trust-bar {
  margin-top: var(--s-12);
  padding: var(--s-6) var(--s-8);
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  color: rgba(250, 250, 247, 0.85);
  position: relative;
  overflow: hidden;
}

.trust-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 0% 50%, rgba(67, 56, 202, 0.30), transparent 60%),
    radial-gradient(400px 200px at 100% 50%, rgba(67, 56, 202, 0.18), transparent 60%);
  pointer-events: none;
}

.trust-bar > * { position: relative; z-index: 1; }

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
}

.trust-bar__icon {
  flex: 0 0 auto;
  color: var(--indigo-100);
}

.trust-bar__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.55);
}

.trust-bar__legal a {
  color: var(--indigo-100);
  text-decoration: none;
}

.trust-bar__legal a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .trust-card { padding: var(--s-6); }
  .trust-bar {
    padding: var(--s-6);
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-bar__list { gap: var(--s-4); }
}

@media (max-width: 640px) {
  .trust__header { text-align: left; margin-bottom: var(--s-8); }
  .trust-legal__facts,
  .trust-oss__facts {
    grid-template-columns: 70px 1fr;
    row-gap: var(--s-2);
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .trust-card,
  .trust-card:hover {
    transform: none;
    transition: none;
  }
}
