/* Version 19 visual refinements: fictional client brands, richer testimonials, and blog carousel. */

.trusted-slider {
  --items-per-view: 4;
  --slider-gap: 18px;
  padding: 0 58px 14px;
}

.trusted__track {
  align-items: stretch;
}

.trusted__brand {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(3,17,29,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.trusted__brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(3,17,29,.12);
}

.trusted__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.trusted__mark--1 { background: linear-gradient(135deg, #9a6a18, #d4a03a); }
.trusted__mark--2 { background: linear-gradient(135deg, #0a385f, #1b6aa1); }
.trusted__mark--3 { background: linear-gradient(135deg, #1a6f56, #34a27f); }
.trusted__mark--4 { background: linear-gradient(135deg, #3561a7, #6da1ec); }
.trusted__mark--5 { background: linear-gradient(135deg, #8b4d22, #d68646); }
.trusted__mark--6 { background: linear-gradient(135deg, #3c4b7b, #697fc0); }
.trusted__mark--7 { background: linear-gradient(135deg, #133449, #26708e); }
.trusted__mark--8 { background: linear-gradient(135deg, #346171, #58a8bf); }
.trusted__mark--9 { background: linear-gradient(135deg, #31445a, #6c8aac); }
.trusted__mark--10 { background: linear-gradient(135deg, #736214, #c4a42b); }

.trusted__name,
.trusted__mobile-name {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.prototype-note--trusted {
  margin-top: 14px;
  color: #7b838d;
}

.blog-carousel {
  --items-per-view: 3;
  --slider-gap: 24px;
  padding: 0 58px 42px;
}

.blog__track {
  gap: var(--slider-gap);
  padding: 4px 1px 10px;
}

.blog-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(3,17,29,.08);
  transition: transform .24s ease, box-shadow .24s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(3,17,29,.12);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  object-fit: cover;
}

.blog-card > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}

.blog-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
}

.blog-card time {
  margin-top: 12px;
  color: #7b838d;
  font-size: 13px;
}

.blog__excerpt {
  margin: 10px 0 0;
  color: #4e5a67;
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card a {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c0852f;
  font-size: 13px;
  font-weight: 800;
}

.testimonial-card cite img {
  width: 54px;
  height: 54px;
}

@media (max-width: 1180px) {
  .trusted-slider {
    --items-per-view: 3;
  }

  .trusted__brand {
    flex-basis: calc((100% - 36px) / 3);
  }

  .blog-carousel {
    --items-per-view: 2;
  }

  .blog-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 960px) {
  .testimonial-carousel {
    --items-per-view: 2;
  }

  .testimonial-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 820px) {
  .trusted-slider {
    display: none;
  }

  .trusted__mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .trusted__mobile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(3,17,29,.06);
  }

  .prototype-note--trusted {
    text-align: center;
  }

  .blog-carousel {
    padding: 0 52px 42px;
  }

  .blog-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .blog-carousel,
  .content-slider {
    padding-inline: 48px;
  }

  .blog-carousel {
    --items-per-view: 1;
  }

  .blog-card {
    flex-basis: 100%;
  }

  .blog-card img {
    min-height: 190px;
  }

  .testimonial-carousel {
    --items-per-view: 1;
  }

  .testimonial-card {
    flex-basis: 100%;
  }
}
