/* Katalog produktowy eJA: warstwa wizualna nad bazowym systemem stylów. */
.catalog-hero {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0 34px;
  overflow: hidden;
  background:
    linear-gradient(rgba(33, 85, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 85, 217, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(57, 111, 237, 0.18), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(25, 139, 129, 0.13), transparent 28%),
    #f4f7fd;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.catalog-hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -190px;
  bottom: -230px;
  border: 1px solid rgba(33, 85, 217, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(33, 85, 217, 0.03), 0 0 0 104px rgba(33, 85, 217, 0.025);
}

.catalog-hero .container,
.products-section .container {
  width: min(1320px, calc(100% - 48px));
}

.catalog-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 3.45vw, 3.05rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.052em;
  text-align: center;
  white-space: nowrap;
}

.products-section {
  padding: 0 0 clamp(76px, 8vw, 108px);
  background:
    radial-gradient(circle at 90% 0%, rgba(25, 139, 129, 0.1), transparent 24%),
    linear-gradient(180deg, #f4f7fd 0%, #ffffff 88%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  --accent: #2155d9;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(27, 54, 105, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(17, 42, 91, 0.09);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card::before { display: none; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 38%, white); box-shadow: 0 24px 55px rgba(17, 42, 91, 0.14); }
.accent-blue { --accent: #2155d9; }
.accent-teal { --accent: #0b8078; }
.accent-violet { --accent: #6652c7; }
.accent-indigo { --accent: #294fae; }
.accent-rose { --accent: #b44f72; }
.accent-orange { --accent: #b85b1c; }

.card-media { position: relative; background: #e8edf5; overflow: hidden; }
.card-image { display: block; margin: 0; border-radius: 0; overflow: hidden; }
.card-image picture { display: block; }
.card-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; transition: transform 420ms ease; }
.product-card:hover .card-image img { transform: scale(1.035); }
.card-overlays { position: absolute; inset: 14px 14px auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.card-overlays .status { box-shadow: 0 6px 16px rgba(15, 33, 70, 0.16); }
.card-overlays .card-index { min-width: 36px; padding: 7px 9px; border-radius: 999px; color: #fff; background: rgba(13, 27, 55, 0.78); text-align: center; backdrop-filter: blur(8px); }

.product-card-content { min-height: 225px; display: flex; flex-direction: column; padding: 22px; border-top: 4px solid var(--accent); }
.card-title { color: var(--navy); text-decoration: none; }
.card-title h2 { margin: 0 0 10px; font-size: 1.38rem; line-height: 1.14; letter-spacing: -0.03em; }
.product-card-content > p { flex: 1; margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.card-actions { margin-top: 20px; }

.section { padding-block: clamp(66px, 7vw, 96px); }
.why-section { border-top: 1px solid var(--line); background: #fff; }
.local-section { background: linear-gradient(145deg, #f5f8fd, #edf3fb); }
.split-media picture { display: block; }
.split-media img { height: auto; }
.labs-section { background: #fff; }
.section-heading { margin-bottom: clamp(32px, 4vw, 48px); }

.product-hero figure picture { display: block; }
.product-hero figure img { height: auto; aspect-ratio: 16 / 9; }

@media (max-width: 1119px) {
  .catalog-hero h1 { max-width: 920px; margin-inline: auto; font-size: clamp(2.5rem, 5.4vw, 3.65rem); line-height: 1.04; white-space: normal; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .catalog-hero { padding: 48px 0 27px; background-size: 24px 24px, 24px 24px, auto, auto, auto; }
  .catalog-hero .container,
  .products-section .container { width: min(100% - 32px, 1320px); }
  .catalog-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); text-align: left; }
  .products-section { padding-bottom: 68px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card-content { min-height: auto; padding: 20px; }
  .card-title h2 { font-size: 1.3rem; }
}

@media (max-width: 420px) {
  .catalog-hero h1 { font-size: 2.12rem; }
  .card-overlays { inset: 11px 11px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .card-image img { transition: none; }
  .product-card:hover { transform: none; }
  .product-card:hover .card-image img { transform: none; }
}
