/* v3 partner_cards. Figma: 12113:27905 (1440, 3 cards in a row), mobile 12122:31718 (430, stacked). */
.v3-pcards {
  --pc-dash: repeating-linear-gradient(180deg, var(--v3-gray-400) 0 3px, transparent 3px 5px);
  --pc-line: calc(var(--v3-gutter) - 12px);   /* guide lines sit 12px outside the content (4px on mobile) */
  position: relative;
  padding-block: 32px;
  background: var(--v3-dark);
  color: var(--v3-gray-50);
  overflow-x: clip;
  isolation: isolate;
}
.v3-pcards::before,
.v3-pcards::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v3-pcards::before {
  max-width: var(--v3-container-max);
  margin-inline: auto;
  background:
    var(--pc-dash) var(--pc-line) 0 / 1px 100% no-repeat,
    var(--pc-dash) right var(--pc-line) top 0 / 1px 100% no-repeat;
}
.v3-pcards::after {
  opacity: 0.04;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 1024px;
}

.v3-pcards__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v3-pcards__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 162px;
  padding: 32px 32px 17px;        /* Figma: fixed 162px card (incl. border), the text sits 19px above the bottom edge */
  border: 1px solid var(--v3-gray-300);
  border-radius: var(--v3-radius-md);
  background: var(--v3-dark);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: border-color 0.2s;
}
.v3-pcards__card::before {         /* noise at 4% like the section background; a background layer cannot have its own opacity */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.04;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 1024px;
  pointer-events: none;
}
.v3-pcards__card:hover { border-color: var(--v3-gray-100); }
.v3-pcards__card:focus-visible { outline-offset: 3px; }

.v3-pcards__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}
.v3-pcards__logo { width: auto; max-width: 70%; height: 24px; }
.v3-pcards__logo--mynextcar { height: 22.12px; }
.v3-pcards__logo--unidok { height: 27.58px; }
.v3-pcards__logo--twojapolisa { height: 21.17px; }
.v3-pcards__logo-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--v3-gray-50);
}
.v3-pcards__arrow {
  flex: none;
  width: 46px;
  height: 46px;
  transition: transform 0.2s;
}
.v3-pcards__card:hover .v3-pcards__arrow { transform: translateX(3px); }

.v3-pcards__text {
  font-size: var(--v3-fs-body-m);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .v3-pcards__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .v3-pcards__card { min-height: 0; padding: 20px; gap: 16px; }
  .v3-pcards__logo--mynextcar { height: 25px; }
  .v3-pcards__logo--unidok { height: 32px; }
  .v3-pcards__logo--twojapolisa { height: 22.67px; }
}
@media (max-width: 768px) {
  .v3-pcards { padding-block: 48px; }
}
@media (max-width: 480px) {
  .v3-pcards { --pc-line: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-pcards__card,
  .v3-pcards__arrow { transition: none; }
  .v3-pcards__card:hover .v3-pcards__arrow { transform: none; }
}
