/* hp-cats-v2 — модернизированный ховер блока «Наша продукция» */

.hp-cats.hp-cats-v2 {
  padding: 14px 0 56px;
}

.hp-cats-v2 .hp-cats-v2__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 20px;
  flex-wrap: nowrap;
}
.hp-cats-v2 .hp-cats-v2__head::before,
.hp-cats-v2 .hp-cats-v2__head::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #0f6ecd;
  opacity: 0.55;
  flex-shrink: 0;
}

.hp-cats-v2 .hp-cats-v2__title {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.1;
  font-weight: 700;
  color: #0a2e4d;
  letter-spacing: -0.005em;
}
.hp-cats-v2 .hp-cats-v2__title::after {
  display: none;
}

@media (max-width: 639px) {
  .hp-cats.hp-cats-v2 { padding: 10px 0 40px; }
  .hp-cats-v2 .hp-cats-v2__head {
    gap: 10px;
    margin-bottom: 16px;
  }
  .hp-cats-v2 .hp-cats-v2__head::before,
  .hp-cats-v2 .hp-cats-v2__head::after { width: 16px; }
  .hp-cats-v2 .hp-cats-v2__title { font-size: 17px !important; }
}

.hp-cats-v2 .hp-cats-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
@media (min-width: 960px) {
  .hp-cats-v2 .hp-cats-v2__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .hp-cats-v2 .hp-cats-v2__grid { grid-template-columns: repeat(6, 1fr); }
}

.hp-cats-v2 .hp-cat-v2 {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  background: transparent;
}

.hp-cats-v2 .hp-cat-v2__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.86) brightness(0.9) contrast(1.02);
  transition:
    transform 950ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 700ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, filter;
}

.hp-cats-v2 .hp-cat-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(11, 17, 34, 0.85) 0%,
    rgba(11, 17, 34, 0.45) 32%,
    rgba(11, 17, 34, 0.08) 58%,
    transparent 72%
  );
  opacity: 0.82;
  transition: opacity 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hp-cats-v2 .hp-cat-v2::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0);
  transition:
    inset 520ms cubic-bezier(0.19, 1, 0.22, 1),
    border-color 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hp-cats-v2 .hp-cat-v2__corners {
  position: absolute;
  inset: 14px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 420ms cubic-bezier(0.19, 1, 0.22, 1),
    inset 520ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hp-cats-v2 .hp-cat-v2__corners i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.hp-cats-v2 .hp-cat-v2__corners i:nth-child(1) { top: 0; left: 0;  border-right: 0; border-bottom: 0; }
.hp-cats-v2 .hp-cat-v2__corners i:nth-child(2) { top: 0; right: 0; border-left: 0;  border-bottom: 0; }
.hp-cats-v2 .hp-cat-v2__corners i:nth-child(3) { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.hp-cats-v2 .hp-cat-v2__corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

.hp-cats-v2 .hp-cat-v2__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 22px 18px 26px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  transform: translateY(4px);
  transition: transform 560ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hp-cats-v2 .hp-cat-v2__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff !important;
  line-height: 1;
  white-space: nowrap;
}
.hp-cats-v2 .hp-cat-v2__arrow {
  display: block;
  width: 16px;
  height: 10px;
  align-self: center;
  color: #fff;
  overflow: visible;
}
.hp-cats-v2 .hp-cat-v2__arrow-line,
.hp-cats-v2 .hp-cat-v2__arrow-tip {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.hp-cats-v2 .hp-cat-v2__arrow-line {
  transition: stroke-dashoffset 200ms cubic-bezier(0.19, 1, 0.22, 1);
}
.hp-cats-v2 .hp-cat-v2__arrow-tip {
  transition: stroke-dashoffset 140ms cubic-bezier(0.19, 1, 0.22, 1) 160ms;
}
.hp-cats-v2 .hp-cat-v2__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 2px;
  background: #0f6ecd;
  transform: translateX(-50%);
  transition: width 560ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* hover / focus */
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__img,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__img {
  transform: scale(1.09);
  filter: saturate(1.08) brightness(1) contrast(1);
}
.hp-cats-v2 .hp-cat-v2:hover::before,
.hp-cats-v2 .hp-cat-v2:focus-visible::before {
  opacity: 1;
}
.hp-cats-v2 .hp-cat-v2:hover::after,
.hp-cats-v2 .hp-cat-v2:focus-visible::after {
  inset: 10px;
  border-color: rgba(255, 255, 255, 0.16);
}
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__corners,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__corners {
  opacity: 1;
  inset: 12px;
}
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__label,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__label {
  transform: translateY(-4px);
}
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__arrow-line,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__arrow-line { stroke-dashoffset: 0; }
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__arrow-tip,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__arrow-tip { stroke-dashoffset: 0; }
.hp-cats-v2 .hp-cat-v2:hover .hp-cat-v2__label::after,
.hp-cats-v2 .hp-cat-v2:focus-visible .hp-cat-v2__label::after {
  width: 44px;
}

.hp-cats-v2 .hp-cat-v2:active .hp-cat-v2__img {
  transform: scale(1.06);
}

.hp-cats-v2 .hp-cat-v2:focus-visible {
  outline: 2px solid #0f6ecd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hp-cats-v2 .hp-cat-v2 *,
  .hp-cats-v2 .hp-cat-v2::before,
  .hp-cats-v2 .hp-cat-v2::after { transition: none !important; }
  .hp-cats-v2 .hp-cat-v2 .hp-cat-v2__img { transform: none; filter: none; }
}
