/* XD v2: 1920px canvas, 1280px catalog, three 413px columns.
   Cards flow vertically so descriptions never overlap their detail links. */
.products-catalog {
  --catalog-unit: min(1vw, 19.2px);
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding: calc(142 * var(--catalog-unit) / 19.2) calc(320 * var(--catalog-unit) / 19.2) calc(126 * var(--catalog-unit) / 19.2);
  color: var(--blue);
}
.products-catalog > h2 {
  margin: 0 calc(-160 * var(--catalog-unit) / 19.2);
  font-size: calc(40 * var(--catalog-unit) / 19.2);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
}
.products-catalog-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(34 * var(--catalog-unit) / 19.2);
  margin: calc(48 * var(--catalog-unit) / 19.2) 0 calc(110 * var(--catalog-unit) / 19.2);
  font-size: calc(28 * var(--catalog-unit) / 19.2);
  line-height: calc(48 * var(--catalog-unit) / 19.2);
  font-weight: 700;
  text-align: center;
}
.products-catalog-label::before, .products-catalog-label::after {
  content: "";
  width: 2px;
  height: calc(48 * var(--catalog-unit) / 19.2);
  border-left: 2px dotted var(--blue);
  transform: rotate(-27deg);
}
.products-catalog-label::after { transform: rotate(27deg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(20 * var(--catalog-unit) / 19.2);
  row-gap: calc(100 * var(--catalog-unit) / 19.2);
}
.products-item { display: flex; flex-direction: column; min-width: 0; }
.products-item h3 {
  display: flex;
  align-items: center;
  position: relative;
  min-height: calc(33 * var(--catalog-unit) / 19.2);
  margin: 0 0 calc(28 * var(--catalog-unit) / 19.2);
  padding-left: calc(28 * var(--catalog-unit) / 19.2);
  font-size: calc(24 * var(--catalog-unit) / 19.2);
  line-height: 1.375;
  font-weight: 900;
}
.products-item h3::before {
  position: absolute;
  content: "";
  inset: 0 auto 0 0;
  width: calc(11 * var(--catalog-unit) / 19.2);
  border-radius: 3px;
  background: var(--blue);
}
.products-item > img, .products-hover-image, .products-image-crop, .products-company-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 413 / 240;
  border-radius: calc(60 * var(--catalog-unit) / 19.2) calc(19 * var(--catalog-unit) / 19.2) calc(20 * var(--catalog-unit) / 19.2) calc(20 * var(--catalog-unit) / 19.2);
  object-fit: cover;
}
.products-image-crop { overflow: hidden; }
.products-image-crop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products-company-image { display: grid; overflow: hidden; }
.products-company-image > img { grid-area: 1 / 1; }
.products-company-image > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.products-company-image .products-company-logo {
  place-self: center;
  width: 44.55%;
  height: auto;
}
.products-item > p {
  flex: 1;
  min-height: calc(218 * var(--catalog-unit) / 19.2);
  margin: calc(23 * var(--catalog-unit) / 19.2) calc(16 * var(--catalog-unit) / 19.2) calc(28 * var(--catalog-unit) / 19.2);
  color: #373a38;
  font-size: calc(18 * var(--catalog-unit) / 19.2);
  line-height: 1.888889;
  font-weight: 500;
  line-break: strict;
  overflow-wrap: anywhere;
}
.products-item-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 87.167%;
  min-height: calc(90 * var(--catalog-unit) / 19.2);
  margin-inline: auto;
  padding: calc(12 * var(--catalog-unit) / 19.2) calc(55 * var(--catalog-unit) / 19.2);
  border: calc(3 * var(--catalog-unit) / 19.2) solid var(--blue);
  border-radius: 100px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-size: calc(22 * var(--catalog-unit) / 19.2);
  line-height: 1.545455;
  font-weight: 800;
  text-align: center;
  box-shadow: 5px 5px 0 #1b4a8029;
  --press-shadow-x: 5px;
  --press-shadow-y: 5px;
  --press-shadow-color: #1b4a8029;
}
.products-item-button i {
  position: absolute;
  right: calc(26 * var(--catalog-unit) / 19.2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(30 * var(--catalog-unit) / 19.2);
  height: calc(30 * var(--catalog-unit) / 19.2);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.products-item-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.products-item-button--pending { cursor: default; }
@media (max-width: 1199px) {
  .products-catalog { padding: 48px 24px 64px; }
  .products-catalog > h2 { margin: 0; font-size: 28px; line-height: 1.6; }
  .products-catalog-label { gap: 26px; margin: 28px 0 44px; font-size: 22px; line-height: 1.6; }
  .products-catalog-label::before, .products-catalog-label::after { height: 32px; }
  .products-grid { max-width: 960px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  .products-item h3 { min-height: 36px; margin-bottom: 20px; padding-left: 20px; font-size: 22px; line-height: 1.6; }
  .products-item h3::before { width: 7px; }
  .products-item > img, .products-hover-image, .products-image-crop, .products-company-image { border-radius: 40px 16px 18px 18px; }
  .products-item > p { min-height: 0; margin: 20px 10px 24px; font-size: 16px; line-height: 1.9; }
  .products-item-button { width: calc(100% - 20px); min-height: 64px; padding: 14px 50px; border-width: 2px; font-size: 18px; line-height: 1.5; }
  .products-item-button i { right: 18px; width: 28px; height: 28px; }
}
@media (max-width: 767px) {
  .products-catalog { padding: 36px 20px 56px; }
  .products-catalog > h2 { font-size: 24px; }
  .products-grid { max-width: 480px; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .products-catalog-label { margin-bottom: 36px; }
}

.products-hover-image { overflow: hidden; }
.products-hover-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
