/* ============================================================
   cards-v2.css — Dark card-grid sections (explore + media).
   Reuses the same eyebrow / h2 / typography from metrics-v2 /
   capabilities so all dark sections feel cohesive.
   ============================================================ */

.cards-v2 {
  background: #04060a;
  padding: clamp(5rem, 10vh, 9rem) clamp(1.5rem, 6vw, 7rem);
  color: #eef4ff;
}

.cards-v2 .cv-header {
  max-width: 60rem;
  margin: 0 auto clamp(3rem, 6vh, 5rem);
  text-align: center;
}
.cards-v2 .cv-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.cards-v2 .cv-eyebrow::before,
.cards-v2 .cv-eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: #3b82f6;
}
.cards-v2 .cv-h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 1.4rem 0 0;
  text-wrap: balance;
}
.cards-v2 .cv-h2 .accent { color: var(--color-brand-500, #3b82f6); }
.cards-v2 .cv-sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #8ea2bf;
  margin-top: 1rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* ----- grid + card base ----- */
.cards-v2 .cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 84rem;
  margin: 0 auto;
}
.cards-v2 .cv-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: rgba(10, 19, 34, 0.5);
  border: 1px solid rgba(110, 140, 200, 0.16);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  min-height: 180px;
}
.cards-v2 .cv-card:hover {
  border-color: rgba(96, 165, 250, 0.6);
  transform: translateY(-2px);
}
.cards-v2 .cv-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}
.cards-v2 .cv-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8ea2bf;
  margin: 0;
  text-wrap: pretty;
}
.cards-v2 .cv-card .cv-arrow {
  font-family: 'JetBrains Mono', monospace;
  color: #60a5fa;
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.1rem;
  padding-top: 1.2rem;
  transition: transform 0.25s ease;
}
.cards-v2 .cv-card:hover .cv-arrow { transform: translateX(4px); }

/* ----- explore card variant: icon at top ----- */
.cards-v2 .cv-card--explore .cv-icon {
  color: #60a5fa;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

/* ----- media card variant: platform badge row ----- */
.cards-v2 .cv-card--media .cv-source {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cards-v2 .cv-card--media .cv-platform {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #93c5fd;
}
.cards-v2 .cv-card--media .cv-platform svg { width: 13px; height: 13px; }
.cards-v2 .cv-card--media .cv-type {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(110, 140, 200, 0.16);
  border-radius: 999px;
  color: #8ea2bf;
  font-size: 0.65rem;
}

/* ----- CTA row (Все публикации →) ----- */
.cards-v2 .cv-cta-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vh, 3rem);
}
.cards-v2 .cv-cta-row .cv-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #93c5fd;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cards-v2 .cv-cta-row .cv-cta:hover {
  border-color: #60a5fa;
  color: #fff;
}

@media (max-width: 880px) {
  .cards-v2 .cv-grid { grid-template-columns: 1fr; }
}
