/* Porady blog — Agata-like card grid */

.fm-porady {
  padding: 24px 0 64px;
  background: #fafafa;
}

.fm-porady__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  color: #777;
}

.fm-porady__crumb a {
  color: #555;
  text-decoration: none;
}

.fm-porady__crumb a:hover {
  color: #d62828;
}

.fm-porady__head {
  margin: 0 0 32px;
}

.fm-porady__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.fm-porady__lead {
  margin: 0;
  font-size: 16px;
  color: #555;
  max-width: 520px;
}

.fm-porady__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.fm-porady-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.fm-porady-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.fm-porady-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.fm-porady-card:hover .fm-porady-card__media img {
  transform: scale(1.04);
}

.fm-porady-card__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.fm-porady-card__cat {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #d62828;
}

.fm-porady-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.fm-porady-card__title a {
  color: #1a1a1a;
  text-decoration: none;
}

.fm-porady-card__title a:hover {
  color: #d62828;
}

.fm-porady-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  flex: 1;
}

.fm-porady-card__more {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.fm-porady-card__more:hover {
  color: #d62828;
}

.fm-porady__pager {
  margin: 40px 0 0;
  text-align: center;
}

.fm-porady__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 3px;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.fm-porady__pager .page-numbers.current,
.fm-porady__pager .page-numbers:hover {
  background: #d62828;
  color: #fff;
}

.fm-porady__empty {
  padding: 48px 24px;
  text-align: center;
  color: #666;
  background: #fff;
  border-radius: 8px;
}

@media (max-width: 1000px) {
  .fm-porady__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fm-porady {
    padding: 12px 0 40px;
  }
  .fm-porady__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fm-porady__head {
    margin-bottom: 20px;
  }
  .fm-porady__title {
    font-size: clamp(24px, 7vw, 30px);
  }
}
