.km-productsPage{
  padding: 72px 0 96px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.km-productsIntro{
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.km-productsIntro__title{
  margin-bottom: 14px;
  color: var(--km-secondary);
}

.km-productsIntro__text p{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--km-text);
}

.km-productsLayout{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.km-productsFilters{
  position: relative;
}

.km-productsFilters__inner{
  position: sticky;
  top: 120px;
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(30, 89, 137, .12);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .06);
}

.km-productsFilters__title{
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--km-secondary);
}

.km-filterBtn{
  appearance: none;
  border: 1px solid rgba(30, 89, 137, .14);
  background: #fff;
  color: #1e5989;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  transition: .25s ease;
  cursor: pointer;
}

.km-filterBtn:hover{
  border-color: #1e5989;
  transform: translateX(3px);
  box-shadow: 0 10px 22px rgba(30,89,137,.10);
}

.km-filterBtn.is-active{
  background: #1e5989;
  color: #fff;
  border-color: #1e5989;
  box-shadow: 0 14px 28px rgba(30,89,137,.18);
}

.km-productsGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.km-productCard{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(30, 89, 137, .10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16,24,40,.07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.km-productCard:hover{
  transform: translateY(-6px);
  border-color: rgba(30, 89, 137, .24);
  box-shadow: 0 24px 46px rgba(16,24,40,.11);
}

.km-productCard.is-hidden{
  display: none;
}

.km-productCard__media{
  position: relative;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef6fb 100%);
}

.km-productCard__badge{
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #b7ff2a;
  color: #16324b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.km-productCard__img{
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
}

.km-productCard__placeholder{
  width: 100%;
  aspect-ratio: 3 / 4.2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  color: #6b7280;
  border: 1px dashed #c7d4df;
}

.km-productCard__body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 24px;
}

.km-productCard__title{
  margin-bottom: 10px;
  font-size: 1.18rem;
  color: var(--km-secondary);
}

.km-productCard__desc{
  margin-bottom: 20px;
  color: var(--km-muted);
  line-height: 1.8;
  flex: 1;
}

.km-productCard__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #1e5989;
  color: #fff;
  font-weight: 700;
  transition: .25s ease;
}

.km-productCard__btn:hover{
  background: #17486f;
  transform: translateY(-2px);
}

.km-productsEmpty{
  padding: 28px;
  border: 1px dashed #c7d4df;
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 1199px){
  .km-productsGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px){
  .km-productsLayout{
    grid-template-columns: 1fr;
  }

  .km-productsFilters__inner{
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .km-productsFilters__title{
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px){
  .km-productsPage{
    padding: 56px 0 72px;
  }

  .km-productsIntro{
    margin-bottom: 28px;
    text-align: left;
  }

  .km-productsGrid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .km-productsFilters__inner{
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .km-filterBtn{
    text-align: center;
  }

  .km-productCard__body{
    padding: 18px 16px 20px;
  }
}

.km-productCard{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(30, 89, 137, .10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16,24,40,.07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.km-productCard__media{
  position: relative;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef6fb 100%);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-productCard__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 18px;
  background: #fff;
}

.km-productCard__placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  color: #6b7280;
  border: 1px dashed #c7d4df;
}