* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterRegular.woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterBold.woff2");
  font-display: swap;
  font-weight: 700;
}

body {
  margin: 0;
  padding: 24px 0;
  background: #eef2f7;
  font-family: "Inter", sans-serif;
}

.stop-scroll {
  overflow: hidden;
}

.container {
  margin: 0 auto;
  padding: 0 15px;
  max-width: 1730px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 20px;
}

.content__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 3 span;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.08);
  background: #fff;
}

.content__close {
  position: absolute;
  right: 16px;
  top: 20px;
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.content__subtitle {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  color: #17212b;
}

.content__inner {
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 16px;
}

.content__caption {
  margin: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  color: #17212b;
}

.content__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content__btn {
  border: none;
  width: 100%;
  display: flex;
  padding: 6px 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  color: #5d6977;
  background: transparent;
  cursor: pointer;
}

.content__quantity {
  margin-left: auto;
}

.content__main {
  grid-column: 9 span;
}

.content__top {
  margin-bottom: 24px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.08);
  background: #fff;
}

.content__filter {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #687585;
  background: transparent;
  transition: color 0.3s;
  cursor: pointer;
}

.content__filter svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.content__title {
  margin: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  color: #17212b;
}

.content__count {
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #687585;
}

.content__products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.content__products-item {
  grid-column: 4 span;
}

.product {
  position: relative;
  border-radius: 24px;
  padding: 16px;
  height: 100%;
  box-shadow: 0 15px 50px 0 rgba(0, 0, 0, 0.08);
  background: #fff;
}

.product__badge {
  position: absolute;
  left: 32px;
  top: 32px;
  border-radius: 100px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  line-height: 120%;
  color: #fff;
  background: #ff6d4d;
}

.product__pic {
  display: block;
  margin-bottom: 12px;
  border-radius: 16px;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.product__title {
  margin: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: #17212b;
}

.product__link {
  color: inherit;
  text-decoration: none;
}

.product__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product__descr {
  margin: 0;
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #17212b;
}

.product__price {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  color: #17212b;
}

.product__btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: #fff;
  background: #17212b;
  cursor: pointer;
  transition: background 0.3s;
}

.product__btn:hover {
  background: #2b4055;
}

@media (max-width: 1200px) {
  .content__aside {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    overflow-y: auto;
    width: 100%;
    height: 100dvh;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .content__aside--visible {
    opacity: 1;
    visibility: visible;
  }

  .content__close {
    display: block;
  }

  .content__main {
    grid-column: 12 span;
  }

  .content__filter {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .content__products-item {
    grid-column: 6 span;
  }

  .product__pic {
    width: 100%;
  }
}

@media (max-width: 576px) {
  body {
    padding: 16px 0;
  }

  .content__products-item {
    grid-column: 12 span;
  }
}
