@font-face {
  font-family: "WEC Inter";
  src: url("../browser-assets/d86f1c66061fba99.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --wec-red: #c8281e;
  --wec-dark: #222;
  --wec-body: #666;
  --wec-border: #e8e9e9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wec-dark);
  background: #fff;
  font-family: "WEC Inter", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.wec-products-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 12px 18px;
  background: #fff;
  color: #222;
  text-decoration: none;
  transform: translateY(-160%);
}

.wec-products-skip:focus {
  transform: translateY(0);
}

.wec-products-main {
  width: 100%;
  margin: 0;
}

.wec-products-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.wec-products-heading {
  max-width: 760px;
  margin: 0 0 42px;
}

.wec-products-heading p {
  margin: 0 0 14px;
  color: var(--wec-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.wec-products-heading h1 {
  margin: 0 0 14px;
  color: #1f2223;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.wec-products-heading > span {
  display: block;
  color: var(--wec-body);
  font-size: 16px;
  line-height: 1.7;
}

.wec-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.wec-category-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--wec-border);
  border-radius: 20px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.wec-category-card:hover {
  border-color: #dedede;
  box-shadow: 0 20px 45px rgba(26, 31, 32, .1);
  transform: translateY(-5px);
}

.wec-category-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.wec-category-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f6f6f6;
}

.wec-category-card__media img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
  transition: transform .35s ease;
}

.wec-category-card:hover .wec-category-card__media img {
  transform: scale(1.035);
}

.wec-category-card__content {
  min-height: 112px;
  padding: 22px 20px 24px;
  border-top: 1px solid var(--wec-border);
}

.wec-category-card__content h2 {
  margin: 0 0 12px;
  color: #202324;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.wec-category-card__content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wec-red);
  font-size: 14px;
  font-weight: 750;
}

.wec-category-card__content b {
  font-size: 19px;
  line-height: 1;
  transition: transform .2s ease;
}

.wec-category-card:hover .wec-category-card__content b {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .wec-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wec-products-section {
    width: min(100% - 36px, 680px);
    padding: 52px 0 72px;
  }

  .wec-products-heading {
    margin-bottom: 30px;
  }

  .wec-products-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .wec-products-section {
    width: min(100% - 28px, 460px);
    padding-top: 40px;
  }

  .wec-products-heading h1 {
    font-size: 34px;
  }

  .wec-products-heading > span {
    font-size: 15px;
  }

  .wec-category-card {
    border-radius: 16px;
  }

  .wec-category-card__media img {
    padding: 16px;
  }

  .wec-category-card__content {
    min-height: 112px;
    padding: 23px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
