.hm-blg-insights {
  padding: 78px 0 86px;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.hm-blg-insights__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hm-blg-insights__header h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hm-blg-insights__line {
  width: 34px;
  height: 3px;
  display: block;
  margin-top: 13px;
  background: var(--accent);
}

.hm-blg-insights__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(224, 80, 16, 0.46);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.hm-blg-insights__all i,
.hm-blg-card__link i {
  color: var(--accent);
  font-size: 15px;
  transition: transform 0.25s ease;
}

.hm-blg-insights__all:hover,
.hm-blg-insights__all:focus-visible,
.hm-blg-card__link:hover,
.hm-blg-card__link:focus-visible {
  color: var(--accent);
}

.hm-blg-insights__all:hover i,
.hm-blg-insights__all:focus-visible i,
.hm-blg-card__link:hover i,
.hm-blg-card__link:focus-visible i {
  transform: translateX(4px);
}

.hm-blg-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 10px 4px 16px;
}

.hm-blg-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 5px 0 rgba(0, 160, 160, 0.13), 0 14px 28px rgba(1, 43, 55, 0.12);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.hm-blg-card:hover {
  border-color: rgba(0, 160, 160, 0.55);
  box-shadow: 0 8px 0 rgba(1, 43, 55, 0.24), 0 22px 34px rgba(1, 43, 55, 0.2);
  transform: translateY(-8px);
}

.hm-blg-card__image {
  display: block;
  height: 190px;
  overflow: hidden;
  background: var(--border);
}

.hm-blg-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hm-blg-card:hover .hm-blg-card__image img {
  transform: scale(1.06);
}

.hm-blg-card__body {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 19px 19px;
}

.hm-blg-card__body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hm-blg-card__body h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hm-blg-card__body h3 a:hover,
.hm-blg-card__body h3 a:focus-visible {
  color: var(--secondary);
}

.hm-blg-card__body p {
  margin: 10px 0 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.hm-blg-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hm-blg-insights {
    padding: 60px 0 68px;
  }

  .hm-blg-insights__header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .hm-blg-insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 540px) {
  .hm-blg-insights__grid {
    grid-template-columns: 1fr;
    padding-right: 0;
    padding-left: 0;
  }

  .hm-blg-card__image {
    height: 210px;
  }
}
