/* Превью статей блога на главной — в стиле категорий (glass + --primary), фон страницы без перекрытия */
.home-blog-preview {
  --hbp-muted: rgba(255, 255, 255, 0.62);
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 80px);
  background: transparent;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.home-blog-preview .container {
  /* Как у .container / why-us: одна колонка → правый край пилюли = край бента */
  width: min(1200px, 92%);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.home-blog-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 3.5vw, 36px);
  flex-wrap: nowrap;
  width: 100%;
}

.home-blog-preview-title {
  margin: 0;
  font-family: 'Onder', var(--font-main, sans-serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.home-blog-preview-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Onder', var(--font-main, sans-serif);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-blog-preview-all:hover,
.home-blog-preview-all:focus-visible {
  border-color: #ffffff;
  color: rgba(0, 0, 0, 0.9);
  background: #ffffff;
  box-shadow: none;
  outline: none;
}

.home-blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-blog-preview-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  color: var(--hbp-muted);
  font-size: 0.95rem;
}

.home-blog-preview-status a {
  color: var(--primary, #ffffff);
  font-weight: 600;
  text-decoration: none;
}

.home-blog-preview-status a:hover {
  text-decoration: underline;
}

/* Карточка как category-card: стекло, скругление 20px */
.home-blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
  min-width: 0;
  position: relative;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

.home-blog-card.is-clickable {
  cursor: pointer;
}

.home-blog-card.is-clickable:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.home-blog-card:hover {
  transform: translateY(-1px) translateZ(0);
  background: rgba(255, 255, 255, 0.042);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 18px rgba(255, 255, 255, 0.14),
    0 0 32px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.home-blog-card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: #1a1a20;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}

.home-blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-blog-card-emoji {
  position: relative;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.home-blog-card-body {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
  gap: 10px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.home-blog-card-tag-wrap {
  margin: 0 0 2px;
}

.home-blog-card-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(243, 244, 246, 0.95);
  background: linear-gradient(180deg, rgba(52, 22, 28, 0.92) 0%, rgba(35, 14, 18, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-family: inherit;
}

.home-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.home-blog-card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--hbp-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.home-blog-card-excerpt .home-blog-read {
  display: inline;
  color: var(--primary, #ffffff);
  font-weight: 600;
  text-decoration: none;
  margin-left: 2px;
}

.home-blog-card-excerpt .home-blog-read:hover {
  color: var(--primary, #ffffff);
  text-decoration: underline;
}

.home-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 12px 18px 16px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.52);
  position: relative;
  z-index: 2;
}

.home-blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.home-blog-meta-item svg {
  flex-shrink: 0;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 992px) {
  .home-blog-preview-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (min-width: 993px) and (max-width: 1100px) {
  .home-blog-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .home-blog-card-body {
    padding: 14px 14px 12px;
  }

  .home-blog-card-footer {
    padding: 10px 14px 14px;
    gap: 10px 14px;
  }
}
