.products {
  background: var(--color-bg-deepest);
  position: relative;
  overflow: hidden;
}

/* Hex-pattern texture overlay */
.products::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(255,255,255,0.015) 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, rgba(255,255,255,0.015) 2px, transparent 2px);
  background-size: 100px 100px;
  pointer-events: none;
}

.products__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 600px;
}

.products__subtitle {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.products__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  color: var(--color-text-primary);
  line-height: 1.0;
  margin-bottom: 0.75rem;
}

/* ── Grid ──────────────────────────────────────────────── */

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── Card ──────────────────────────────────────────────── */

.product-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid), background var(--t-mid);
  cursor: default;
  min-height: 240px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--color-bg-deepest);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: background var(--t-mid);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 180, 220, 0.4);
  box-shadow: 0 14px 36px rgba(0, 180, 220, 0.09);
  background: var(--color-bg-card-hover);
}

.product-card:hover::before {
  background: var(--color-bg-card-hover);
}

/* ── Card: special "full catalog" ──────────────────────── */

.product-card--catalog {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  clip-path: none;
  border-radius: var(--r-md);
  align-items: flex-start;
  justify-content: center;
}

.product-card--catalog::before {
  display: none;
}

.product-card--catalog:hover {
  border-color: var(--color-border-accent);
  background: var(--color-accent-dim);
  box-shadow: none;
}

/* ── Card content ──────────────────────────────────────── */

.product-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.product-card__icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.product-card__desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-muted);
  flex: 1;
}

.product-card__rule {
  width: 100%;
  height: 1px;
  background: var(--color-border-subtle);
  margin-block: 0.25rem;
}

.product-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--t-fast), opacity var(--t-fast);
}

.product-card:hover .product-card__link {
  gap: 0.65rem;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

  .product-card {
    clip-path: none;
    border-radius: var(--r-md);
    min-height: auto;
  }

  .product-card::before {
    display: none;
  }
}
