.page-products {
  background: #fff;
  color: #13293d;
}

.page-products main {
  overflow: hidden;
}

.products-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #eef7ff;
  isolation: isolate;
}

.products-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(0, 126, 244, .55), transparent);
}

.products-hero__media {
  position: absolute;
  inset: 0 0 0 31%;
  z-index: -2;
}

.products-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 13%, rgba(255, 255, 255, .62) 32%, rgba(255, 255, 255, .02) 62%);
}

.products-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.products-hero__inner {
  min-height: 570px;
  display: flex;
  align-items: center;
}

.products-hero__content {
  width: min(660px, 55%);
  padding: 58px 0 42px;
}

.product-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #37607f;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.product-kicker span {
  width: 32px;
  height: 3px;
  background: #0780f5;
}

.products-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #0d2236;
  font-size: clamp(2.35rem, 4.25vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.products-hero h1 span {
  color: #087bf0;
}

.products-hero__content > p:not(.product-kicker) {
  max-width: 560px;
  margin: 20px 0 0;
  color: #526d83;
  font-size: 1.02rem;
  line-height: 1.72;
}

.products-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.products-hero__actions .button {
  min-height: 50px;
  padding-inline: 23px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 600;
}

.products-hero__actions svg {
  width: 18px;
  height: 18px;
}

.products-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 30px;
}

.products-hero__proof > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.products-hero__proof > div > span {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #087bf0;
  background: #e7f3ff;
}

.products-hero__proof svg {
  width: 21px;
  height: 21px;
}

.products-hero__proof p {
  margin: 0;
  min-width: 0;
}

.products-hero__proof strong,
.products-hero__proof small {
  display: block;
}

.products-hero__proof strong {
  color: #183047;
  font-size: .78rem;
  line-height: 1.3;
}

.products-hero__proof small {
  margin-top: 3px;
  color: #718599;
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 500;
}

.product-catalog {
  padding: 56px 0 78px;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 126, 244, .07), transparent 24%),
    linear-gradient(180deg, #fff, #f8fbff);
}

.catalog-heading {
  text-align: center;
  margin-bottom: 28px;
}

.catalog-heading .product-kicker {
  justify-content: center;
  color: #087bf0;
}

.catalog-heading h2 {
  margin: 0;
  color: #122b41;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.category-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1060px;
  margin: 0 auto 18px;
}

.category-switcher button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e6eef5;
  border-radius: 10px;
  color: #486073;
  background: #f4f8fb;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.category-switcher button:hover,
.category-switcher button:focus-visible {
  transform: translateY(-2px);
  color: #087bf0;
  border-color: #9dceff;
}

.category-switcher button.is-active {
  color: #fff;
  border-color: #087bf0;
  background: linear-gradient(135deg, #0786fb, #0069dd);
  box-shadow: 0 10px 24px rgba(0, 111, 231, .2);
}

.category-switcher svg {
  width: 18px;
  height: 18px;
}

.product-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) repeat(4, minmax(130px, .65fr));
  gap: 12px;
  padding: 15px;
  border: 1px solid #e4edf5;
  border-radius: 12px;
  background: #f3f8fc;
  box-shadow: 0 12px 32px rgba(25, 70, 105, .05);
}

.product-filters label {
  position: relative;
  min-width: 0;
}

.product-filters input,
.product-filters select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #dce7f0;
  border-radius: 8px;
  outline: none;
  color: #2d465b;
  background: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-filters input:focus,
.product-filters select:focus {
  border-color: #087bf0;
  box-shadow: 0 0 0 3px rgba(8, 123, 240, .12);
}

.product-search svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #70879a;
  transform: translateY(-50%);
}

.product-search input {
  padding-left: 45px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #deE9f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 67, 101, .08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.catalog-card:hover {
  transform: translateY(-7px);
  border-color: #b9dafe;
  box-shadow: 0 18px 44px rgba(20, 84, 134, .14);
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card__image {
  position: relative;
  height: 230px;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #f4f7f9, #eaf1f7);
}

.catalog-card__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(4, 31, 54, .12));
  pointer-events: none;
}

.catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.catalog-card:hover .catalog-card__image img {
  transform: scale(1.055);
}

.catalog-card__image--machine img,
.catalog-card__image--pipe img,
.catalog-card__image--fitting img { object-position: center; }

.catalog-card__body {
  padding: 18px 18px 16px;
}

.catalog-card__tag {
  margin: 0 0 8px;
  color: #087bf0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0;
  color: #142d43;
  font-size: 1.12rem;
  line-height: 1.3;
}

.catalog-card__body > p:not(.catalog-card__tag) {
  min-height: 65px;
  margin: 8px 0 16px;
  color: #61778a;
  font-size: .86rem;
  line-height: 1.55;
  font-weight: 500;
}

.catalog-card__body > a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  color: #087bf0;
  background: #edf6ff;
  font-size: .82rem;
  font-weight: 600;
}

.catalog-card__body > a:hover,
.catalog-card__body > a:focus-visible {
  color: #fff;
  background: #087bf0;
}

.catalog-card__body > a svg {
  width: 16px;
  height: 16px;
}

.product-empty {
  margin: 32px 0 0;
  padding: 30px;
  border: 1px dashed #b7d3eb;
  border-radius: 12px;
  color: #526d83;
  background: #f2f8fd;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

[data-product-reveal] {
  opacity: 1;
  transform: none;
}

.product-motion [data-product-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1);
}

.product-motion [data-product-reveal="left"] {
  transform: translateX(-34px);
}

.product-motion [data-product-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .products-hero,
  .products-hero__inner {
    min-height: 520px;
  }

  .products-hero__content {
    width: 62%;
  }

  .products-hero__media {
    inset: 0 0 0 26%;
  }

  .product-filters {
    grid-template-columns: 1.8fr repeat(2, 1fr);
  }

  .product-filters label:nth-last-child(-n+2) {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .page-products {
    padding-bottom: 0;
  }

  .products-hero {
    min-height: 610px;
    background: #f8fbff;
  }

  .products-hero__inner {
    min-height: 610px;
    align-items: flex-start;
  }

  .products-hero__media {
    inset: 235px 0 0;
  }

  .products-hero__media::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 13%, rgba(255,255,255,.05) 44%, rgba(2,25,44,.12) 100%);
  }

  .products-hero__media img {
    object-position: 67% center;
  }

  .products-hero__content {
    width: 100%;
    padding: 34px 0 28px;
  }

  .products-hero h1 {
    max-width: 390px;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .products-hero__content > p:not(.product-kicker) {
    max-width: 420px;
    margin-top: 14px;
    font-size: .93rem;
    line-height: 1.55;
  }

  .products-hero__actions {
    gap: 9px;
    margin-top: 18px;
  }

  .products-hero__actions .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: .78rem;
  }

  .products-hero__proof {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    z-index: 2;
    gap: 5px;
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 12px 28px rgba(7, 39, 65, .14);
    backdrop-filter: blur(9px);
  }

  .products-hero__proof > div {
    align-items: flex-start;
    gap: 6px;
  }

  .products-hero__proof > div > span {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .products-hero__proof svg {
    width: 16px;
    height: 16px;
  }

  .products-hero__proof strong {
    font-size: .75rem;
  }

  .products-hero__proof small {
    display: none;
  }

  .product-catalog {
    padding: 38px 0 60px;
  }

  .catalog-heading {
    margin-bottom: 20px;
  }

  .catalog-heading h2 {
    font-size: 1.65rem;
  }

  .category-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
  }

  .category-switcher button {
    min-height: 48px;
    gap: 5px;
    padding: 7px 5px;
    border-radius: 8px;
    font-size: .75rem;
    line-height: 1.15;
  }

  .category-switcher button span {
    max-width: 92px;
  }

  .category-switcher svg {
    width: 15px;
    height: 15px;
  }

  .product-filters {
    grid-template-columns: 1fr 108px;
    gap: 8px;
    padding: 9px;
  }

  .product-filters label:nth-child(n+3) {
    display: none;
  }

  .product-filters input,
  .product-filters select {
    min-height: 42px;
    font-size: .75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .catalog-card {
    border-radius: 10px;
  }

  .catalog-card__image {
    height: clamp(125px, 37vw, 170px);
  }

  .catalog-card__body {
    padding: 12px 11px 11px;
  }

  .catalog-card__tag {
    margin-bottom: 5px;
    font-size: .75rem;
    letter-spacing: .06em;
  }

  .catalog-card h3 {
    font-size: .94rem;
  }

  .catalog-card__body > p:not(.catalog-card__tag) {
    min-height: 58px;
    margin: 6px 0 10px;
    font-size: .75rem;
    line-height: 1.45;
  }

  .catalog-card__body > a {
    min-height: 34px;
    gap: 5px;
    font-size: .75rem;
  }
}

@media (max-width: 380px) {
  .products-hero__actions .button {
    padding-inline: 10px;
  }

  .product-grid {
    gap: 8px;
  }

  .catalog-card__body {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-motion [data-product-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .catalog-card,
  .catalog-card__image img,
  .category-switcher button {
    transition: none;
  }
}
