@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.nh-trust,
.nh-trust * {
  box-sizing: border-box;
  min-width: 0;
}

.nh-trust {
  position: relative;
  /* Растягиваем на всю ширину viewport, даже если родитель уже */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.nh-trust__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Шапка с заголовком ===== */
.nh-trust__head {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 90px) clamp(16px, 3vw, 40px) clamp(20px, 2vw, 28px);
  text-align: center;
}
.nh-trust__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Unbounded", "Manrope", system-ui, -apple-system, sans-serif;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: #0A595E;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== Тело с карточками ===== */
.nh-trust__body {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2vw, 30px) clamp(16px, 2vw, 24px) clamp(36px, 4vw, 50px);
}
.nh-trust__inner {
  max-width: 1600px;
  margin: 0 auto;
}
.nh-trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 30px);
}
.nh-trust__col {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.5vw, 30px);
  min-width: 0;
}

/* ===== Карточка (горизонтальная) ===== */
.nh-trust__card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.2vw, 18px);
  padding: 0 clamp(12px, 1.6vw, 30px) clamp(16px, 2vw, 30px) clamp(12px, 1.6vw, 30px);
  border-radius: 10px;
  background-color: transparent;
  min-width: 0;
}

/* Иконка слева. Размер fluid через clamp */
.nh-trust__icon {
  flex: 0 0 clamp(110px, 9vw, 165px);
  width: clamp(110px, 9vw, 165px);
  height: clamp(110px, 9vw, 165px);
  display: block;
}
.nh-trust__card.is-first {
  padding-top: 0;
}
.nh-trust__card.is-first .nh-trust__icon {
  margin-top: -25px;
}
.nh-trust__icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Текстовая часть */
.nh-trust__body-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.nh-trust__card-title {
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #0F0F0F;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.nh-trust__card-text {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* По умолчанию игнорируем жёсткие <br> из preset'а — они правильны только на самых широких экранах */
.nh-trust__card-text br { display: none; }

/* ===== Очень широкий десктоп: 1-строчные заголовки + жёсткие переносы в тексте как просил клиент ===== */
@media (min-width: 1400px) {
  .nh-trust__card-title { white-space: nowrap; }
  .nh-trust__card-text br { display: inline; }
}

/* ===== Средний десктоп / большой планшет (1024–1399): 2 колонки, текст плавно, иконка чуть меньше ===== */
@media (max-width: 1399px) and (min-width: 1024px) {
  .nh-trust__icon { flex-basis: 140px; width: 140px; height: 140px; }
  .nh-trust__card.is-first .nh-trust__icon { margin-top: -22px; }
}

/* ===== Маленький планшет / большой телефон (768–1023): 1 колонка, горизонтальная карточка ===== */
@media (max-width: 1023px) and (min-width: 768px) {
  .nh-trust__grid { grid-template-columns: 1fr; gap: 24px; }
  .nh-trust__col { gap: 24px; }
  .nh-trust__card {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 20px 16px;
    gap: 18px;
  }
  .nh-trust__icon { flex-basis: 130px; width: 130px; height: 130px; }
  .nh-trust__card.is-first .nh-trust__icon { margin-top: -20px; }
}

/* ===== Мобила <768: 1 колонка, иконка сверху, текст по центру ===== */
@media (max-width: 767px) {
  .nh-trust { background-attachment: scroll; }
  .nh-trust__body { padding: 18px 14px 36px; }
  .nh-trust__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nh-trust__col { gap: 28px; }
  .nh-trust__card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 0 14px 18px;
  }
  .nh-trust__icon {
    flex: 0 0 auto;
    width: clamp(120px, 36vw, 160px);
    height: clamp(120px, 36vw, 160px);
    margin: 0 auto;
  }
  .nh-trust__card .nh-trust__icon,
  .nh-trust__card.is-first .nh-trust__icon {
    margin-top: -10px;
  }
  .nh-trust__body-text { width: 100%; text-align: center; }
  .nh-trust__card-title {
    font-size: clamp(16px, 4.6vw, 19px);
    margin-bottom: 8px;
    text-align: center;
  }
  .nh-trust__card-text {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.5;
    text-align: center;
  }
}
