.vis-home-posts {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1230px;
  padding: 0 15px;
  width: 100%;
}

.vis-home-posts__head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.vis-home-posts__title {
  color: #1a1f2e;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.vis-home-posts__more {
  align-items: center;
  color: #2b6ff8;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.vis-home-posts__more:hover {
  color: #1d56cf;
}

.vis-home-posts__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vis-home-posts__item {
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vis-home-posts__item:hover {
  border-color: #d5deea;
  transform: translateY(-2px);
}

.vis-home-posts__thumb {
  aspect-ratio: 16 / 9;
  background: #f2f4f8;
  display: block;
  overflow: hidden;
}

.vis-home-posts__thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vis-home-posts__thumb-placeholder {
  background: linear-gradient(135deg, #f4f7fb 0%, #e8edf6 100%);
  display: block;
  height: 100%;
  width: 100%;
}

.vis-home-posts__item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 10px 12px 12px;
}

.vis-home-posts__item-title a {
  color: #252d3d;
  display: -webkit-box;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vis-home-posts__item-title a:hover {
  color: #1e5fe0;
}

@media (max-width: 1120px) {
  .vis-home-posts__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .vis-home-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vis-home-posts__title {
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  .vis-home-posts__head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .vis-home-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vis-home-posts__item-title {
    font-size: 16px;
    margin: 8px 10px 10px;
  }
}

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