.group {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 14px clamp(12px, 2vw, 22px) 18px;
  border: 1px solid #c7cab9;
  border-radius: 12px;
  background: #efefe7;
}
.group header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  background: transparent;
  color: #191b15;
}
.group header small {
  border-radius: 4px;
  padding: 2px 7px;
  background: #e7ed9e;
  font-size: .62rem;
  letter-spacing: .08em;
}
.group header h3 { margin: 0; font-size: 1.1rem; line-height: 1.3 }
.parts {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 16px;
}
.parts article {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  padding: 0 12px 10px;
  border: 1px solid #dedfd4;
  border-radius: 7px;
  background: #fff;
}
.parts .photo {
  display: grid;
  place-items: center;
  height: clamp(100px, 10vw, 138px);
  width: auto;
  flex: none;
  margin: 0 -12px 8px;
  padding: 10px;
  border-radius: 7px 7px 0 0;
  border-bottom: 1px solid #eeeee7;
  overflow: hidden;
}
.parts .photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.parts article h3 { margin: 0 0 3px; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere }
.parts article b { margin: 0 0 7px; color: #53554b; font-weight: 400; font-size: .77rem; line-height: 1.35 }
.parts .buy { align-self: flex-start; margin-top: auto; padding: 4px 0; background: transparent; color: #30342a; font-size: .79rem; text-decoration: underline }
.parts .buy:hover, .parts .buy:focus-visible { color: #00635c }
.parts article + article:before {
  content: "+";
  position: absolute;
  z-index: 1;
  left: -18px;
  top: clamp(40px, 4vw, 59px);
  width: 18px;
  border-radius: 50%;
  background: #e7ed9e;
  color: #363a25;
  font: 700 14px/18px Arial, sans-serif;
  text-align: center;
}
.group:has(article[hidden]) article:before { display: none }
.parts article small, .parts article p, .parts article[hidden], .group[hidden] { display: none }
@media (min-width: 980px) {
  .grid:has(> .group) { grid-template-columns: repeat(4,minmax(0,1fr)) }
  .group:has(.parts > article:nth-child(2):last-child) { grid-column: span 2 }
}
@media (max-width: 720px) {
  .parts { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px }
  .parts article:nth-child(odd):before { display: none }
  .parts article + article:before { left: -15px; width: 16px; line-height: 16px }
  .parts article { padding-inline: 8px }
  .parts .photo { margin-inline: -8px }
}
